What changed
Claude Code 2.1.191 extends /rewind to restore from before /clear and brings performance work that cuts CPU during streaming and memory growth in long sessions. Alongside reliability improvements — transient-error retries for MCP connections and remembered sandbox network permissions — it cleans up bugs across background agents, hooks, permissions, and terminal rendering.
New features
-
/rewindsupport for resuming from before/clearOnce
/clearwas run, there was no way back to the prior conversation, so an accidental clear meant losing that context./rewindcan now resume a conversation from before/clearwas run.
Key improvements
-
Sandbox network permission dialog remembers allowed hosts
Hosts you allowed with “Yes” still re-prompted on every connection. They are now remembered for the rest of the session instead of re-prompting each time.
-
MCP server reliability — capability discovery retries
Capability discovery (
tools/list,prompts/list,resources/list) dropped on a single transient network error. It now retries transient network errors with short backoff. -
MCP OAuth retries and headless support
MCP OAuth discovery and token requests stalled on transient network errors, and headless environments got stuck trying to open a browser popup. Discovery and token requests now retry once after transient network errors, and headless environments skip the browser popup and go straight to the paste-the-URL prompt.
-
Clearer MCP error messages
An MCP HTTP 404 error gave little to go on. It now shows the URL and points to your MCP config.
-
vim mode prompt-history search hint
Searching prompt history with NORMAL-mode
/in vim mode gave no cue for reaching slash commands. It now hints how to get to slash commands. -
~37% less CPU during streaming responses
Streaming responses re-rendered on every text change, driving high CPU. Coalescing text updates to 100ms reduces CPU usage during streaming responses by ~37%.
-
Reduced long-session memory growth
The terminal output cache accumulated as sessions ran long, growing memory over time. Long-session memory growth from that cache is now reduced.
Bug fixes
Background agents
- Background agents resurrecting after being stopped — stopping an agent from the tasks panel is now permanent.
claude agentssending builtin slash commands like/usageto background sessions as prompt text — it now shows a hint instead of sending the command as text.claude agentsjob rows showing full filesystem paths for pasted images — they now show the[Image #N]placeholder.
Permissions & settings
- Hooks with comma-separated matchers (e.g.
"Bash,PowerShell") silently never firing — fixed. /permissionsRecently-denied tab discarding an approved denial on close — approving a denial now persists instead of being silently discarded.- Managed settings
forceRemoteSettingsRefreshnot taking effect when set via MDM or file policy — fixed; the fetch now sendsCache-Control: no-cacheto prevent proxies from serving stale responses. /voiceshowing a generic “not available” message when disabled by an organization’s policy — it now explains the restriction.
Terminal & display
- Scroll position jumping to the bottom while reading earlier output during a streaming response — fixed.
/loginURL opening truncated in Windows Terminal when it wraps across lines — fixed.- Cmd+click on links not working in fullscreen mode for Ghostty over ssh/tmux — fixed.
- The agent panel jumping by one row when scrolling the roster past the overflow cap — fixed.
- The welcome splash art overflowing the default 80×24 macOS Terminal window — fixed.
Notes
- The streaming CPU win comes from coalescing text updates to 100ms — it batches the render cadence; response speed itself is unchanged.
- Re-check comma-separated matcher hooks — hooks with matchers like
"Bash,PowerShell"that silently never fired will start running after the upgrade. Confirm they fire as intended. - Sandbox host approvals are session-scoped — an allowed host is remembered only for that session. Starting a new session prompts again.