chore(agent-tools): bump Claude Code pin to 2.1.220 + fix stale live dialog-recipe assertions #236
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab!236
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/235"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #235
Two coupled changes, per the issue — the fixed tests are the re-verification vehicle the bump procedure (docs/ops.md § "Agent-tools images", ADR-0051) leans on.
1. Live-recipe assertions aligned with the #56 answered-dialog model (pre-existing bug, not drift)
TestCompat_Live_askUserQuestionRecipeandTestCompat_Live_exitPlanModeApprovalended by assertingReadChatdemotes a resolved dialog to a tool chip — stale since issue #56 made a resolved dialog stay a dialog message carrying its recordedOutcome. They now assert that model: a question-kind dialog message whoseOutcome.Resultsrecord "Blue" and {"Apple", "Cherry"} (order-insensitive via the existingsortedLabelshelper, matched by question text), resp. a plan-kind dialog withApproved. The recipe-driving andtoolUseResultstages are untouched.2. The bump (documented procedure; re-verification precondition satisfied per the issue body, 2026-07-25)
containers/agent-tools/versions.env:CLAUDE_CODE_VERSION=2.1.220+ linux-x64-musl sha256, moved in one commit with the compat-record update.internal/compat/compat.md: pin header → 2.1.220 (full live re-drive 2026-07-25, issue #235); §5/§12 rewritten for the one real drift — the §12 reversal: 2.1.220 defers the pending-dialogtool_useflush to flush-on-resolve on BOTH spawn arms, so the transcript-scan path is dead as a live dialog source and the §9 hook spool is the sole live source (no port-code change:pendingDialog's suppression rule already models flush-on-resolve; the transcript-scan fallback stays dormant-but-kept). Per-section provenance re-dated on the accumulate-don't-erase convention; incidental 2.1.220 notes added (§1--permission-modedefault→manualrename +--forward-subagent-text; §5 six new ignored transcript event types + theCLAUDE_CODE_CHILD_SESSIONfootnote; §9prompt_id/permission_modehook keys); the four deferred verifications recorded as open host-side follow-ups under "Live re-verification".Verification done on this branch
downloads.claude.ai/claude-code-releases/2.1.220/manifest.json(linux-x64-muslf1c20514…c3c5b— exact match).go test ./...fully green (hermetic; no fixture or port-code changes needed, as the issue predicted);go vet ./...andgofmt -lclean.LAB_COMPAT_LIVE=1.versions.envstill sources cleanly in plainsh(its KEY=VALUE contract).Not runnable in this environment
The
LAB_COMPAT_LIVE=1live probes need tmux and a logged-in claude at 2.1.220; this instance has neither (sandbox binary is 2.1.198, no tmux). The bump's re-verification precondition is satisfied by the 2026-07-25 in-session re-drive recorded in the issue body; please run the two fixed recipe tests host-side underLAB_COMPAT_LIVE=1against 2.1.220 to close that acceptance box.CI: this PR touches
containers/**, so the agent-tools gate builds the claude image and runs the injection smoke test; merge to main publishesagent-tools:claude-2.1.220and moves the NixOStoolsImagesdefault (ADR-0054).🤖 Generated with Claude Code
[autoland] verdict: pass
Clean PASS. Checks green: agent-tools/smoke (built the claude image, sha256-verifying the pinned 2.1.220 binary, + injection smoke — the reach-relevant containers/** gate), ci/native (hermetic Go suite). Title is valid Conventional Commits; body carries Closes #235; diff scope (versions.env, compat.md, live_recipes_test.go) matches the issue exactly with no drive-by changes. The two live-recipe assertions correctly re-target the #56 answered-dialog model (DialogOutcome.Results / Approved), and compat.md accurately documents the flush-on-resolve reversal on both arms with the four deferred host-side follow-ups recorded.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.