File System Error: ENOENT on Workspace JSONL File During `/clear`
Resolved 💬 2 comments Opened Jul 17, 2025 by Yuki994 Closed Jul 17, 2025
Bug Description
The /clear command may occasionally terminate unexpectedly due to the following error:
> /clear
⎿ (no content)
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
? for shortcuts
node:fs:596
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open '/home/vscode/.claude/projects/-workspaces/***.jsonl'
at Object.openSync (node:fs:596:3)
at Object.writeFileSync (node:fs:2322:35)
at Module.appendFileSync (node:fs:2384:6)
at Object.appendFileSync (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:594:65509)
at Ic0.appendEntry (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:642:45)
at async Ic0.insertMessageChain (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:34586)
at async wX1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:1902) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/home/vscode/.claude/projects/-workspaces/***.jsonl'
}
Node.js v18.19.1
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.53
- Feedback ID: 41711fab-c95e-4bb8-a5b8-40c0c04d621f
Errors
[{"error":"Error: Error opening file /home/vscode/.claude/projects/-workspaces/***.jsonl: Error: ENOENT: no such file or directory, open '/home/vscode/.claude/projects/-workspaces/***.jsonl'\n at Zv1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:636:176)\n at async Ya1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:3325)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:3739\n at async Ic0.appendEntry (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:641:43)\n at async Ic0.insertMessageChain (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:34586)\n at async wX1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:1902)","timestamp":"2025-07-17T05:05:35.238Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗