You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Restored reliable auto-compaction for long-lived Claude Agent SDK sessions.
Claude Threads now checks the SDK's live context telemetry before each user turn and proactively compacts when the projected turn approaches the SDK threshold.
The user's message waits until compaction finishes, avoiding terminal input-too-long failures while preserving background-task delivery and session continuity.
Verification
TypeScript typecheck
1,230 unit/integration tests
Production build
Regression coverage for compact-before-send ordering and hidden maintenance-turn completion