Files
sing-box/option
世界 53f832330d fix(ccm): adapt to Claude Code v2.1.78 metadata format, separate state from credentials
Claude Code v2.1.78 changed metadata.user_id from a template literal
(`user_${id}_account_${uuid}_session_${sid}`) to a JSON-encoded object
(`JSON.stringify({device_id, account_uuid, session_id})`), breaking
session ID extraction via `_session_` substring match.

- Fix extractCCMSessionID to try JSON parse first, fallback to legacy
- Remove subscriptionType/rateLimitTier/isMax from oauthCredentials
  (profile state does not belong in auth credentials)
- Add state_path option for persisting profile state across restarts
- Parse account.uuid from /api/oauth/profile response
- Inject account_uuid into forwarded requests when client sends it empty
  (happens when using ANTHROPIC_AUTH_TOKEN instead of Claude AI OAuth)
2026-03-21 10:45:24 +08:00
..
2025-07-08 13:12:14 +08:00
2025-04-29 20:45:19 +08:00
2026-03-01 12:30:43 +08:00
2026-01-17 05:44:29 +08:00
2025-07-08 13:14:41 +08:00
2025-01-13 15:14:29 +08:00
2025-01-13 15:14:29 +08:00
2025-01-13 15:14:30 +08:00
2026-03-01 12:30:43 +08:00
2026-02-27 19:39:52 +08:00
2025-01-13 15:14:29 +08:00
2026-03-01 12:30:43 +08:00
2025-01-13 15:14:29 +08:00
2022-07-25 16:18:11 +08:00
2026-03-15 17:57:53 +08:00
2026-03-15 17:57:53 +08:00
2026-01-17 05:44:29 +08:00
2026-03-15 17:57:53 +08:00
2025-07-08 13:14:41 +08:00
2025-07-08 13:14:42 +08:00
2022-09-12 18:35:36 +08:00
2025-07-08 13:12:27 +08:00
2025-07-08 13:12:28 +08:00
2025-01-13 15:14:29 +08:00
2025-07-08 13:14:44 +08:00
2026-01-17 20:52:43 +08:00
2022-09-03 12:55:10 +08:00
2025-01-13 15:14:29 +08:00
2025-01-13 15:14:29 +08:00
2026-03-15 17:57:53 +08:00
2025-07-08 13:12:14 +08:00
2024-01-03 12:21:36 +08:00