Skip to content

docs: Claude Code v2.1.310 - mods can intercept settings reads, 3 new Agent SDK query methods, Desktop SSH via OpenSSH on Windows - #1412

Merged
claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.310-20261025-1439
Oct 25, 2026
Merged

claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.310-20261025-1439

Conversation

@claude-yolo

@claude-yolo claude-yolo Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Night shift report

WHY THIS MATTERS: Mods gain their most powerful hook yet: a new settings.read event lets a mod see, rewrite, or refuse any setting Claude Code reads. That puts configuration itself inside what plugins can control, so people who build mods and admins who audit them both need to know. The TypeScript Agent SDK also gets three new control methods. One of them lets embedders keep a single MCP server under stricter permissions while the rest of the session runs in bypassPermissions or auto. That closes a real gap for unattended agents. Desktop SSH on Windows can now use the real OpenSSH client and ~/.ssh/config (including ProxyJump and CertificateFile). Windows tasks also survive a Desktop restart starting in v3.1623.0. No deletions, tombstone changes, or discovery changes.

HIGHLIGHTS:

  • Mods: settings.read hook (plugins/mods/events.md, reference.md, api.md, troubleshoot.md). It can change one setting, refuse a read, and tell Claude Code's own reads from a mod's reads (e.layers / e.source). api.md adds a way to read all settings, one source, or one key. New troubleshooting entries cover calls refused in claude -p and Agent SDK sessions, and a claude -p run that never exits because of a mod. Hook docs now say a hook that throws or times out is skipped, so a held command still runs unless you chain a .catch handler that denies it. That matters for any mod used as a security gate. Interface docs add rules for which controls need a key.
  • Agent SDK (TypeScript), new Query methods:
    • setMcpPermissionModeOverride(serverName, 'default' | 'auto' | null) sets a stricter permission mode for one MCP server's tools. It only takes effect in bypassPermissions or auto sessions, so it can never widen what the session allows.
    • seedReadState(path, mtime) marks a file as already read, so a later Edit doesn't fail with File has not been read yet. Requires SDK v0.2.83 or later.
    • backgroundTasks(toolUseId?) does from code what Ctrl+B does in the terminal: it moves running Bash commands and subagents to the background.
    • getSessionMessages gains includeSystemMessages (for example, compact boundaries).
  • Desktop SSH on Windows (desktop.md): Desktop can connect through Microsoft's OpenSSH 9.4+ (needs Desktop v2.2553.0+, not the Microsoft Store build). A new section explains what the built-in client supports when OpenSSH isn't available. MaxSessions 1 servers work from macOS/Linux on v3.1623.0+. Long tasks on Windows now come back after Desktop quits or restarts, starting in v3.1623.0.
  • Sandbox failIfUnavailable behavior made clearer: if the sandbox passes the startup check but later fails to initialize, the session keeps running and refuses every sandboxed command (Sandbox is required ...). It also ignores dangerouslyDisableSandbox retries. errors.md adds two new error strings. On Linux/WSL2, leftover sandbox placeholder files can now break later settings writes.
  • PreToolUse hook timeout fix (docs): when one hook times out, a deny from another hook still reaches Claude instead of being replaced by the timeout message.
  • Claude projects: a local session connected through Remote Control can now hand its work into a project from the claude.ai/code sidebar.
  • Self-hosted runners: new PromQL recipe that joins idle-session time to claude_code_cost_usage_total on ccr_session_id, to show what idle sessions are costing.
  • Small edits: glossary (compaction), features-overview (skills preloaded into subagents), plugin docs cross-links. About 45 support articles had wording and image-token refreshes.

Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning

… Agent SDK query methods, Desktop SSH via OpenSSH on Windows

Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
@claude-yolo
claude-yolo Bot merged commit 75f18f6 into main Oct 25, 2026
1 check passed
@claude-yolo
claude-yolo Bot deleted the docs/claude-code-v2.1.310-20261025-1439 branch October 25, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants