[Bug] Auto-compact fails with "Conversation too long" error in CLI, loses context despite successful compaction command
Status Closed — duplicate
Reported on v2.1.39
Maintainer reply None cached
Activity 3 comments · opened Feb 11, 2026 · closed Feb 15, 2026
Bug Description
For some reason, the autocompacting doesn't work in the terminal as expected. While it was in the middle of editing, I just got error context limit reached . /compact or /clear to continue, however, which every option I do, it tells me: Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again. This means that the context of my conversation is gone and I have to start from scratch. However, I didn't have this problem in vs extenstion for some reason
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.1.39
- Feedback ID: f86dccb0-3a37-484d-a31d-c0c24b7c4e13
Errors
[{"error":"TelemetrySafeError: No Chrome extension connected.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:27:06.029Z"},{"error":"TelemetrySafeError: ### Error\nError: Another browser context is being closed.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:28:58.616Z"},{"error":"TelemetrySafeError: ### Error\nError: Another browser context is being closed.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:29:00.322Z"},{"error":"TelemetrySafeError: ### Error\nError: Another browser context is being closed.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:29:01.281Z"},{"error":"TelemetrySafeError: ### Error\nError: Another browser context is being closed.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:29:03.588Z"},{"error":"TelemetrySafeError: ### Error\nError: Another browser context is being closed.\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:29:03.881Z"},{"error":"TelemetrySafeError: ### Error\nError: page.goto: net::ERR_ABORTED at https://howtorhino.com/blog/software-for-architects/\nCall log:\n\^[[2m - navigating to \"https://howtorhino.com/blog/software-for-architects/\", waiting until \"domcontentloaded\"\^[[22m\n\n at Da4 (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:7361)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3152:22483)\n at async tdY (file:///C:/Users/Dusan/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3554:14093)","timestamp":"2026-02-11T12:29:32.839Z"},{"error":"Error: EPERM: operation not permitt…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗