GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — [Bug]: Forking a compacted Claude thread loads its full pre-compaction history (Agent SDK < 0.3.284) · Issue #27552 · pingdotgg/t3code Closed DescriptionBefore submitting
Related, but not the same problem: #13638 (rewind after a Areaapps/server Steps to reproduce
Expected behaviorThe fork's first turn sends the same context as the source thread: the latest compaction summary plus what came after it. It should not need to compact. Actual behaviorThe fork's first request sends the whole raw history from before every compaction. My source thread had 8 manual compactions and about 559K tokens of live context. The fork's first request had 5,685 messages (about 23 MB of JSON) reaching back to the session's first turn, with no compaction summary in it. Claude then auto-compacted four times in a row before it answered. That took about 5 minutes, and the thread showed: T3 shows these numbers correctly. They are Cause: Minimal repro without T3 (the fork step needs no API call):
Resuming the forked session on the same small repro: first-turn input was 77,951 tokens with 0.3.276 and 47,267 tokens with 0.3.314. Suggested fix: bump the Agent SDK to ≥ 0.3.284 (0.3.314 is current). Forks that were already created stay broken. They fix themselves after their first auto-compaction, which writes fresh boundaries. ImpactMajor degradation or frequent failure Version or commit0.1.6-nightly.20261030.3917 (bundled EnvironmentWindows 11, desktop app; Claude Code 2.1.314, Claude Opus 5.5 Logs or stack traces# compact_boundary entries in the forked transcript (8 copied manual boundaries, then the fork's first turn) manual preTokens=783603 preservedSegment head/anchor/tail -> not in transcript ... (all 8 copied boundaries the same) auto preTokens=559484 postTokens=1604570 preservedSegment.head -> message from the session's 2nd day auto preTokens=1604570 postTokens=1234082 auto preTokens=1234082 postTokens=637985 auto preTokens=637985 postTokens=36173 Screenshots, recordings, or supporting filesNo response WorkaroundDon't fork Claude threads that have been compacted; start a new thread instead. ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |