Context Persistence Broken: Ctrl+R Fails to Fully Restore Previous Interaction State

Resolved 💬 7 comments Opened Aug 17, 2025 by JoshuaSP Closed Jan 4, 2026

Bug Description
Claude has run commands, and it says "ctrl+r to expand" but when I type it, I get just a little window into the current context, and then everying the else is from the last context I compacted

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.83
  • Feedback ID: 4787b33a-8f59-4627-b710-b068e6d780b5

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1776:787\n    at Object.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:26368)\n    at OO9.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:49:15588)\n    at YC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1776:679)\n    at SR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at rb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at ab (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at wj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at aR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)\n    at xC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:35201)","timestamp":"2025-08-17T01:24:03.906Z"},{"error":"Error: Request was aborted.\n    at sP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-17T01:46:35.510Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at wS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1841:728)\n    at _N0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1841:104)\n    at Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1856:971)\n    at YkB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1986:2383)\n    at SR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at rb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at ab (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at wj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at aR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)\n    at xC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:35201)","timestamp":"2025-08-17T04:51:39.200Z"},{"error":"Error: Request was aborted.\n    at sP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-17T05:12:56.194Z"},{"error":"SyntaxError: Unexpected token 'T', \"This sound\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at USB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:29738)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-17T05:29:16.395Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1776:787\n    at Object.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:26368)\n    at OO9.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:49:15588)\n    at YC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1776:679)\n    at SR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at rb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at ab (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at wj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at aR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)\n    at xC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:35201)","timestamp":"2025-08-17T05:34:51.037Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at wS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1841:728)\n    at _N0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1841:104)\n    

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗