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
- Point References at canonical anthropics/claude-code#63147 (our #63172
was consolidated into it) + note the #63143 trigger variant.
- Add warning-half (this directive) vs recovery-half (in-place .jsonl
heal, tracked in restore-claude-history-linux) framing.
Docs-only related-links addition; no scope change.
Copy file name to clipboardExpand all lines: docs/directives/proxy-session-health-warning.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,12 @@
3
3
**Status:** Scope APPROVED by AI Team Lead 2026-05-28 (issue #158). Ready for directive-stage PR + Codex review. New feature → minor release (v3.8.0); per `docs/release-workflow.md` the maintenance-mode gate is at this directive stage and has been cleared.
4
4
**Author:** Proxy Builder (directive), AI Team Lead (scope approval + refinements)
-`anthropics/claude-code#63147` — canonical upstream root-cause bug (interleaved-thinking signature desync; our report #63172 was consolidated into it). `anthropics/claude-code#63143` is the `AskUserQuestion`-cancel trigger variant.
7
7
- cache-fix `#157` — defensive thinking-block guards (related but separate)
8
8
-`playbook_manual_compact_procedure.md` (shared memory) — the manual retirement procedure this warning feeds into
9
9
10
+
**Warning half vs recovery half:** this directive is the **pre-wedge early-warning** — it flags a session approaching the desync-trip scale so the operator can retire it deliberately. The complementary **post-wedge recovery** — healing a wedged session in place by stripping standalone thinking rows from the `.jsonl` and re-linking `parentUuid` (see `playbook_heal_thinking_wedged_session.md`) — is being tracked as a repair-tool in the `restore-claude-history-linux` project. Warn before; heal after.
11
+
10
12
## Problem statement
11
13
12
14
Long-running Opus 4.7 (`claude-opus-4-7[1m]`) sessions accumulate interleaved thinking blocks and grow their context window until Claude Code's own history management (compaction / context-editing / parallel-tool-cancellation reconstruction) desyncs a thinking-block signature. The result is a hard `400 messages.<N>.content.<M>: thinking blocks ... cannot be modified` on essentially every subsequent turn — the session becomes unusable and the only recovery is retiring it (see #63172 for the full mechanism).
0 commit comments