Skip to content

Commit 8e3eaee

Browse files
vsits-proxy-builder[bot]vsits-team-lead-agent[bot]
authored andcommitted
directive: add warning-half/recovery-half framing + correct canonical upstream ref
- 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.
1 parent f5f6f43 commit 8e3eaee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/directives/proxy-session-health-warning.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
**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.
44
**Author:** Proxy Builder (directive), AI Team Lead (scope approval + refinements)
55
**References:**
6-
- `anthropics/claude-code#63172` — upstream root-cause bug (interleaved-thinking signature desync on extreme-scale sessions)
6+
- `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.
77
- cache-fix `#157` — defensive thinking-block guards (related but separate)
88
- `playbook_manual_compact_procedure.md` (shared memory) — the manual retirement procedure this warning feeds into
99

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+
1012
## Problem statement
1113

1214
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

Comments
 (0)