What this thread does
Checked 2026-11-05: 2.1.309: claude ultrareview needs workspace trust (--trust-workspace for scripts); sed -i: Bash, no /rewind restore; enabled sandbox unavailable: excluded commands writing write-list paths need approval, unsandboxed fallback refused. 2.1.312: prompt/agent hooks: ≤24 concurrent +≤12 concurrent queued past event timeout, shared by session/subagents; timeout ≥1s. 2.1.311: JSON escapes DEL/C1/Unicode format chars; same parsed values. 2.1.314: -p startup failures exit 1.
The problem
Audit existing headless automation before updating: permissions, hooks, child completion and model defaults can change.
Versions and status
| Check | Official finding |
|---|---|
| GitHub release | As of November 2026: 2.1.330, 2026-11-20 |
| Upgrade boundary here | 2.1.302, released 2026-10-16 (checked 2026-10-20), changes headless defaults in its release notes |
| Scope | No package/price/licence or 2.1.312 prompt/refusal migration. |
What changed
- 2026-09-22, 2.1.280 (both checked 2026-10-20). The default on Pro and Team Standard moved from Sonnet to Opus. Agent-type
PermissionRequesthooks stopped running; use command or HTTP hooks. Official release. - 2026-10-02, 2.1.288 (both checked 2026-10-20). Failure to match or serialize input for
PreToolUse/PermissionRequesthooks now blocks the call./autocompactsaves its window per model. Official release. - 2026-10-08, 2.1.295 (both checked 2026-10-20). Command and HTTP hooks gain
onFailureset toblockfor startup failures, timeouts and unexpected exits. Official release. - 2026-10-16, 2.1.302 (both checked 2026-10-20). With no configured mode,
-pand Agent SDK sessions usedefaulton third-party providers, with telemetry off, or on a fresh installation. Explicit--permission-mode autopreserves auto. Fork subagents become available by default in headless/SDK, desktop and VS Code;CLAUDE_CODE_FORK_SUBAGENT=0opts out. Main-session subagents in desktop/VS Code run in the background; nested Agent calls in these hosts and headless/SDK default to foreground. Prompt and agent hooks run at most 12 per event concurrently. Official release. - 2026-10-19, 2.1.304 (both checked 2026-10-20). Fixes interrupted-compaction errors and headless plugins continuing beyond
--max-turns. A mod requestingdeciderset topersonrequires a human dialog or host callback; without either, it refuses the action. Official release.
What breaks
A headless job can deny an action needing unavailable approval. A parent can continue before a background child finishes. A broken hook can block instead of being skipped. These symptoms have no universal error string.
2.1.304: Prompt is too long/Context limit reached after stopping rejected-too-long compaction; no general fix.
Model and effort changes can alter output and cost. Check model precedence.
How to migrate
1. Record claude --version, claude doctor and the session's /status. Review the effective permission mode, model, settings sources and hook definitions. Do not copy credentials into an audit. 2. Update through your existing installation method. The setup guide gives claude update for native/npm installs. Homebrew uses brew upgrade claude-code or brew upgrade claude-code@latest, matching the installed cask. Restart and confirm claude --version; a stable channel may lag GitHub latest. 3. Make a deliberate mode choice in each wrapper. For human review, test claude -p --permission-mode default "Describe the repository without changing files". If the job is intended to use auto mode, test the same command with --permission-mode auto. Auto still can deny. Provide a host callback when approvals are required. 4. Replace agent-type PermissionRequest hooks with the command/HTTP forms in the hooks reference. For policy hooks, choose failure behavior explicitly and test missing scripts and timeouts. Avoid changing working policy just to remove a prompt. 5. Pin the main model only if reproducibility requires it. The official model IDs page lists claude-opus-5-5 (checked 2026-10-20); the CLI accepts claude --model claude-opus-5-5 (checked 2026-10-20) on the Anthropic API. Use your provider's documented ID elsewhere. Recheck /model and /effort; the classifier's model is separate from the coding model. 6. Test parent/child completion and nested ordering with harmless work. Use the documented fork opt-out temporarily if needed.
When to pick which rollout
| Constraint | Recommendation |
|---|---|
| Interactive developer machine | Upgrade one machine, inspect mode/model, then try a small task |
| Headless job with approval handling | Stage the update with explicit mode and its real callback |
| Strict policy hooks | Require deny, crash and timeout checks before rollout |
| Timing-sensitive multi-agent wrapper | Validate completion events before expanding deployment |
What to test
In a disposable fixture, test an allowed read, a denial and an approval. Test a missing guard with blocking enabled, unordered sibling hooks, nested completion, model/effort persistence and a small turn cap.
Community evidence
- VILA-Lab's independent changelog analysis discusses recent permission and hook changes. It is secondary analysis, not a compatibility guarantee; check the primary releases above.
- rgolding's permission-dialog report describes desktop approvals becoming persistent unexpectedly; multiple commenters report similar behavior. This is a community UI report, not proof of the headless default change. Inspect the selected approval and mode rather than clicking reflexively.
Pitfalls
Do not fix a denied job with a blanket permission bypass. Do not treat every hook failure as an API outage. Do not assume background agents are finished when the main reply ends. A release channel and an exact version pin are different controls; confirm what actually launched.
A prompt to give your agent
Your training data predates these changes. Read https://github.com/anthropics/claude-code/releases/tag/v2.1.302 and https://github.com/anthropics/claude-code/releases/tag/v2.1.304, then the linked setup, hooks and model configuration pages. Do not guess flags or model IDs. Inspect this project's wrapper and effective settings without reading secrets. Propose a minimal update and a harmless fixture proving mode, hook failure, child completion and turn-cap behavior. Do not upgrade or change policy until I accept the diff.
Not for
Conversation inheritance is covered by claude-code-subtask-fork-subagent-inherits-conversation-context; model selection by claude-5-5-family-which-tier-for-coding; API migration by haiku-5-5-api-migration-what-breaks-from-haiku-4-5. Guard-hook repair belongs to claude-code-hook-crashed-but-command-ran-onfailure-block.
Limits
Not run; community anecdotes; no retirement/shutdown. Unreviewed: 2.1.303, 2.1.305–308, 2.1.310, 2.1.313, 2.1.315–318.
Started from a post by @anthropics, packaged by the editor. Original post