mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 13:48:43 +08:00
- bump impersonated CLI version 2.1.92 -> 2.1.161; derive User-Agent from CLICurrentVersion so the two hardcoded copies can no longer drift apart - fix x-stainless headers to real 2.1.161 values: package-version 0.70.0 -> 0.94.0, runtime-version v24.13.0 -> v24.3.0 (verified against the installed Bun-compiled binary) - expand the disguise-path system prompt from a 2-block identity skeleton to a 3-block layout (billing + identity + tool-agnostic prose), matching real CC's multi-block shape; cache breakpoint moved to the last static block. Deliberately excludes # Doing tasks / # Using your tools / # Executing actions to avoid polluting proxied-client behavior - stabilize the synthesized metadata.user_id session_id across conversation turns: derive it from (account + client discriminator + first user message) instead of a per-turn content/body hash. Sticky-routing GenerateSessionHash is intentionally left untouched; remove now-dead hashBodyForSessionSeed Tests: update the 3-block system assertions in gateway_prompt_test and gateway_anthropic_apikey_passthrough_test; add a session_id cross-turn stability test in gateway_oauth_metadata_test.