Claude Code v2.1.326 Fixes PID Recycling Bugs, Deep Settings Crashes, and Tool Decision Logging
What changed
Anthropic has released Claude Code version v2.1.326, focusing on runtime stability, settings validation, and environment safety across multi-agent and CLI workflows.
Agent Teams and Execution Modes
- Code Mode for Teams: Code Mode can now be toggled on while agent teams are active. Existing team sessions configured for Code Mode will launch directly into it.
- Process & Session Handling: Fixed a critical background service issue where recycled process IDs (PIDs) could cause Claude Code to terminate unrelated user processes, such as active SSH sessions. Background sessions also maintain exported LLM gateway variables across shell crashes or directory re-opens, halting before execution if the gateway is missing.
- Linux Sandbox Updates: Resolved issue where sandboxed Linux commands failed when home or configuration paths resolved via symlinks into
/net. Addressed leftover lock files (such as.git/config.lock) when interrupted during sandboxed runs.
Command Inspection and Permissions
- Bash Execution Auditing: Commands that modify or delete files—such as
find -delete,cat a > b, andsort -o—are no longer miscategorized in transcripts as simple search or read operations. Spurious “Dangerous rm operation” prompts on unreadable commands withoutrmwere also resolved. - File Denial Rules: The
cptool is no longer blocked when anEditdeny rule applies strictly to the source file. - Settings Validation: Configuration files nested deeper than 64 levels will now be truncated with a warning rather than causing crashes or partial applications. Unwritable settings files resulting from
/permissionsor/add-dircommands now generate explicit terminal warnings.
Observability and UI Polish
- OpenTelemetry Enhancements: Introduced the
OTEL_RESOURCE_INCLUDE_HOSTenvironment variable (disabled by default) to attachhost.nameandhost.idto resource attributes. Fixed missingtool_decisionevents andpermission_denialsentries when managedPreToolUsehooks reject a direct tool request. - Diagnostic Tools: Running
/statusnow explicitly lists features disabled by providers or environment variables likeDISABLE_TELEMETRY. - Interface Updates: Users can press
Ctrl+Oto display hidden startup notices, and subagent views now display anesc to stopfooter hint when cancellation is available.
Following earlier releases such as Claude Code v2.1.325 and Claude Code v2.1.309, this patch continues refining safety boundaries and administrative controls.
Why it matters
Misclassifying destructive terminal commands in transcripts poses serious security risks for automated agent sessions. By correctly capturing file overwrites (cat a > b) and deletions (find -delete), v2.1.326 ensures audit logs accurately reflect agent actions.
Fixing process ID reuse prevents background agent services from abruptly killing unrelated system tasks, which is critical for developers running multi-tenant or multi-session shell environments. Additionally, capping configuration file nesting at 64 levels eliminates subtle crash vectors in large, managed enterprise deployments.
What to do next
- Update Claude Code: Fetch the latest release via your standard package setup or binary installer.
- Check Observability Setup: If host-level tracking is required for telemetry pipelines, export
OTEL_RESOURCE_INCLUDE_HOST=truein your shell environment. - Verify Permissions Status: Run
/statusinside your Claude Code session to inspect active environment variables and managed policy overrides.
Sources
Share Article
If this article helped you, please share it with others!