Prompt Navigation and Editing Causes Unintended Text Loss

Resolved 💬 3 comments Opened Mar 9, 2025 by leplik Closed Nov 29, 2025

Bug Description
User can lost big prompt. Replay: 1) start to type prompt; 2) accidently user press enter - processing begin; 3) press Esc to stop; 4) with arrow button return previous prompt on screen; 5) start to update prompt, make it bigger; 6) during navigation with arrows through text, when user reach first line, next Up button makes that text changed to previous prompt. Text user have typed don't saved and it is no way to return to it. This is how user can lost his prompt

Environment Info

  • Platform: macos
  • Terminal: vscode
  • Version: 0.2.35
  • Feedback ID: 4e1ea80c-5701-472d-af78-d60813a2244c

Errors

[{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg --files --glob *.md /Users/leplik/.claude/commands\nrg: /Users/leplik/.claude/commands: IO error for operation on /Users/leplik/.claude/commands: No such file or directory (os error 2)\n\n    at genericNodeError (node:internal/errors:984:15)\n    at wrappedFn (node:internal/errors:538:14)\n    at ChildProcess.exithandler (node:child_process:422:12)\n    at ChildProcess.emit (node:events:518:28)\n    at ChildProcess.emit (node:domain:488:12)\n    at maybeClose (node:internal/child_process:1105:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:518:28)\n    at Socket.emit (node:domain:488:12)\n    at Pipe.<anonymous> (node:net:337:12)","timestamp":"2025-03-08T11:29:57.141Z"},{"error":"TypeError: path must not be empty\n    at Tq3 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:68729)\n    at I_ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:68838)\n    at aM2._test (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:69442)\n    at aM2.ignores (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:69944)\n    at tM2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:647:230)\n    at xq3 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:645:470)\n    at Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:109)\n    at call.next (<anonymous>)\n    at Z_ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:998:91)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1057:842","timestamp":"2025-03-08T11:29:57.452Z"},{"error":"Error: Request was aborted.\n    at Bu._createMessage (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:518:24060)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-03-08T14:05:07.599Z"},{"error":"SyntaxError: Unexpected non-whitespace character after JSON at position 64\n    at JSON.parse (<anonymous>)\n    at Hw (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:443:9971)\n    at QS2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1059:645)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-03-08T14:06:49.930Z"},{"error":"Language not supported while highlighting code, falling back to markdown: ","timestamp":"2025-03-08T23:53:16.853Z"},{"error":"Error: Request was aborted.\n    at V5.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:518:7692)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-03-09T13:23:56.454Z"}]

View original on GitHub ↗

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