Tools #Coding agents#Anthropic Oct 11, 2026 · Originally published Oct 9

Claude Code 2.1.296 extends gateway policies to Claude Desktop’s Code tab and stops edits from mangling non-UTF-8 files such as GBK

Enterprise controls reach the desktop app, and several permission and encoding pitfalls are fixed.

Primary source Claude Code releases (GitHub) · github.com Read the original ↗

// Key points

  • The Claude apps gateway’s managed.policies[] gets a code key: the same settings as cli, also applied in Claude Desktop’s Code tab.
  • Subagents can set autoCompactWindow to auto-compact earlier than the main conversation, and CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL runs every workflow agent on one model.
  • Fixed: managed PreToolUse hooks that deny a call with "continue": false refused the call but did not end the turn; some commands that assign BASH_ARGV0 and then use it were auto-approved and now prompt.
  • Fixed: Edit and NotebookEdit replaced every non-ASCII character in files that are not valid UTF-8 (Windows-1252, Shift-JIS, GBK); such edits are now refused.

Builder's takePlenty of older Chinese repositories still hold GBK files, and an agent edit could have replaced all the Chinese text in them. Upgrade soon and take the chance to convert those repos to UTF-8. Teams managing settings through the gateway should add the code key too, or the desktop app becomes a gap in their controls.

// Background · from #Coding agents

Full timeline →
  1. Oct 11 Copilot for JetBrains lets admins set the default model and lets users turn off automatic MCP server startup
  2. Oct 10 Claude Code 2.1.295 lets hooks fail closed and lets the gateway limit models and time to first byte per upstream
  3. Oct 10 Codex CLI 0.162.0 adds managed Git worktree tools and tightens several Linux sandbox gaps