Claude Code 2.1.265 Ships Plugin Directories, Session Resume Overhaul, and a 1 GB Tool-Result Cap — Followed by Same-Day 2.1.266 Patch
Two Claude Code releases landed on September 9 in quick succession. Version 2.1.265 is a broad quality-and-platform update — the most substantial single-version release in weeks. Version 2.1.266 shipped the same day as a surgical regression fix after a gateway-configuration bug was discovered in 2.1.265.
What 2.1.265 adds
- Plugin directory support: You can now point the plugin loader at a folder containing multiple manifests. Claude Code automatically detects added or removed children within that directory without requiring a restart or manual reload. This makes managing large plugin inventories — or plugins that ship as sibling files — dramatically simpler.
- Improved session resume with prompt caching: Subagent and teammate sessions now restore their tool lists and system prompts correctly on resume, and resume operations are wired into the prompt-cache path, meaning the re-attachment turn is cheaper than before.
- 1 GB cap on tool results saved to disk: Long-running agents that accumulate large tool outputs no longer risk unbounded disk writes. Results exceeding 1 GB are truncated with a visible indicator in the session context, preventing silent failures in overnight or multi-hour runs.
- VS Code: 14-day auto-archiving: Inactive VS Code sessions are now automatically archived after 14 days (configurable), keeping the sessions panel uncluttered for teams that open many exploratory Claude Code sessions.
- Windows AppContainer/sandboxed environment fix: File permission issues that blocked Claude Code from reading or writing inside Windows sandboxed environments are resolved.
- Slash-command list matching: The command picker now uses list-based matching rather than a single suggestion, so partial command names surface all matching options rather than committing to the first alphabetical hit.
- Additional fixes: Remote Control end-of-turn message sequencing, MCP server fallback handling for legacy HTTP+SSE transport, model-switch commands (
/model opusplannow accepted), code syntax highlighting in permission prompts showing complete characters, and background session retirement prevented mid-turn.
The 2.1.266 regression fix
Within hours of 2.1.265 going out, Anthropic identified a regression in gateway and proxy handling. The undocumented CLAUDE_CODE_USE_GATEWAY environment variable began forcing Cloud-gateway sign-in on its own in 2.1.265 — even for teams using direct API keys or custom auth headers — producing "Not signed in to the Cloud gateway" errors. The 2.1.266 patch restores the previous behaviour: the variable is ignored unless accompanied by both ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Teams on self-hosted or proxied setups should upgrade to 2.1.266 immediately; teams on the default cloud path are unaffected.
If you maintain a shared Claude Code plugin library (e.g. per-team tool sets committed to a monorepo), switch to a folder-based layout with one directory per team instead of individual manifest paths in your config. The auto-detection means new plugins added to the directory are live on the next session without config edits — reducing the coordination overhead of plugin releases.
# ~/.claude/settings.json — new folder-based plugin config
{
"plugins": [
"./plugins/engineering-team", // auto-detects all manifests in folder
"./plugins/data-science-team"
]
}