[BUG] When context remaining is less than 10% (i.e. 70% usage), Claude Code stops working with an API timeout error.

Resolved 💬 30 comments Opened Dec 18, 2025 by ashaykubal Closed Mar 13, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code version: 2.0.72
Environment: Claude Code launched in terminal within VSCode

  1. When context remaining goes less than 9%, i.e. token usage is over 70%, Claude Code starts erroring out with an error: "Request timed out. Check your internet and proxy settings" followed by a retry loop of 10-30 attempts.
  2. Once the retry loop is complete, the "Request Timed Out" is replaced with another error that says: "API error. Connection error"
  3. From the time the Request Timed Out error comes up, the UX also degrades significantly. Typing any messages feels sluggish as keystrokes take time to render on the screen

Impact: Unfortunately, this leaves users with sessions that weren't handed off correctly.

Potential workaround: I observed that if I start a new session, exit out of Claude Code. Then start it again and resume the problematic session - I can at least complete some steps like handing off the session. However, I have tried this just once, so it may be anecdotal.

What Should Happen?

As with previous versions, the context remaining message should continue to show and Claude Code should continue the implementation or conversation without timeout errors.

Error Messages/Logs

1. Request Timed Out. Check your internet connection and proxy settings
2. API Error. Connection error.

Steps to Reproduce

  1. Launch a new Claude Code session
  2. Start working according to the plan and the ToDo List
  3. Continue working until the context remaining goes less than 10%, i.e. greater than 70% tokens used
  4. Observe the timeout error and then the api connection error after automated retry is complete
  5. Exit the session, start Claude code once more and resume the session again
  6. Send a message - observe that the timeout error appears once again and is then replaced with the api connection error after automated retry is complete
  7. Also observe the sluggishness in rendering of keystrokes on the UI

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.70 & 2.0.71

Claude Code Version

2.0.72

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

<img width="905" height="521" alt="Image" src="https://github.com/user-attachments/assets/a6eb77d3-5532-4a21-965f-16633b6f2bda" />

View original on GitHub ↗

30 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13109
  2. https://github.com/anthropics/claude-code/issues/13856
  3. https://github.com/anthropics/claude-code/issues/6572

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ashaykubal · 7 months ago

While these issues are all happening with vscode, they seem to be random corruption. In My case however, I have observed over 4 sessions that this consistently happens only after context remaining is less than 10%. Two sessions where I did not exceed 70% token consumption worked well. Two sessions where I exceeded 70% token usage gave this issue. I've also never faced this issue with a previous version of Claude Code.

BotsTesterTrader · 7 months ago

I have this exact same problem. Claude seems to be stuck in an infinite loop, as even without responding or processing requests, it loads the system by 20%. Apparently, this is a bug in one of the Automatic Conversation Compression modules. Could you please also tell me if I open a new conversation, the problem won't occur, right? And how do you run your version of Claude, on the server or on your local PC? Using the command IS_SANDBOX=1 claude --dangerously-skip-permissions?

Хотя все эти проблемы возникают в VS Code, похоже, они носят случайный характер. В моем случае, однако, я наблюдал в течение 4 сессий, что это постоянно происходит только после того, как оставшийся контекст становится менее 10%. Две сессии, в которых я не превышал 70% использования токенов, работали хорошо. Две сессии, в которых я превышал 70% использования токенов, вызвали эту проблему. Кроме того, я никогда не сталкивался с этой проблемой в предыдущих версиях Claude Code.
ywatanabe1989 · 7 months ago

Same here

  ⎿  Request timed out. Check your internet connection and proxy settings
Retrying in 7 seconds… (attempt 10/10)

  ⎿  API Error: Connection error.                                                                                 
trinanda · 7 months ago

<img width="704" height="317" alt="Image" src="https://github.com/user-attachments/assets/b5d1629b-2ee6-4d02-8c88-029b44102a4e" />

Repmov · 7 months ago

Exactly the same issue. Despite multiple reboots and restarts. It will work slowly but does complete for about 20 minutes and then "Request timed out. Check your internet connection and proxy settings " , after which it will no longer work until restart.

hubciorz · 7 months ago

Same problem here. It used to work fine 2 days ago.

Gigiart · 7 months ago

same here

LivXp · 7 months ago

Same here

lucasjstifano · 7 months ago

Same here. Been happening for hours ever since about 9 hours ago.

Connection and internet speed is 100% perfectly fine yet the chat just going into "Request timed out. Check your internet connection and proxy settings" and there's no getting out of it other than starting a new chat until that one ends in the same loop.

So far 10 out of 10 chats have ended this way since it started happening 9 hours ago on my end

lucasjstifano · 7 months ago

Actually yea exact same issue with the usage not loading. Likely connected since the chats corrupt and go into "retrying..." after a few messages.

Max $200 plan btw. Usage is 100% available.

<img width="614" height="303" alt="Image" src="https://github.com/user-attachments/assets/6bbbcb80-4052-479b-963b-34b607658ab4" />

jszos · 7 months ago

it's currently happening regardless of the contex window % left. I can start a fresh session and it just bugs out right away.

bimki · 7 months ago

the same for me, 8h lost

ywatanabe1989 · 7 months ago

Until this issue is resolved, I will continue using v2.0.70 with the following setup.

npm install -g @anthropic-ai/claude-code@2.0.70

$HOME/.config/claude/settings.json

{
    "autoUpdates": false
}
asteriskSF · 6 months ago

I'm also encountering the same issue which started in the last 16 hours. It has occurred after starting a fresh session when the context got to about 10%

weldonpc · 6 months ago

I too am experiencing this issue across Multiple Chats.

gjmorris · 6 months ago

Happening to me too. First symptom is keystrokes become very laggy; just pressing a single key (not submitting a query) causes the Claude process CPU usage to jump right up. Then the same network retry / API error as described above.

lucasjstifano · 6 months ago

Yea guys just downgraded to 2.0.70 and having all the same symptoms everyone is mentioning above they are completely gone now.

Downgrade and (depending on your system, I'm on WSL2 in windows) use echo 'export DISABLE_AUTOUPDATER=1' >> ~/.bashrc to make sure it doesn't auto update

LivXp · 6 months ago

I have now Claude Code v2.0.73 and I currently don't have the issue anymore (yesterday I had it really often).

breakpit · 6 months ago

I'm having it with Claude Code v2.0.73 at the moment, yesterday as well, i'm trying to downgrade to 2.0.70

breakpit · 6 months ago

In addition it's sometimes wait till 5 min before using the first token they are having problems

ashaykubal · 6 months ago

After the latest update to 2.0.73, this issue hasn't resurfaced for me yet. I'll continue to monitor.

Also for the session that was corrupted when I was on 2.0.72, I managed to compact it and salvage what was done into a session handoff doc for continuity.

jantman · 6 months ago

I just updated from 2.0.76 to 2.1.3 and am having the exact problem described here regardless of token usage. The first indicator of a problem is extreme latency when typing, followed by persistent API Error: Connection error and timeouts blaming my Internet connection (which is gigabit fiber, well monitored, and perfectly healthy). Also noted are a number of seemingly unusual messages in the debug log, such as repeated versions of the following:

  • 2026-01-11T11:28:36.873Z [ERROR] Error: Error: {"stack":"Error: Failed to export 146 events\n at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 146 events","name":"Error"}
  • 2026-01-11T11:29:12.752Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false) spammed over and over, even though I haven't issued an exit command in this session
  • 2026-01-11T11:31:23.862Z [ERROR] Error in non-streaming fallback: Connection error.
  • 2026-01-11T11:31:23.862Z [ERROR] Connection error details: code=ETIMEDOUT, message=
  • 2026-01-11T11:31:23.862Z [ERROR] Error: Error: Connection error.

The problem is fixed by downgrading to 2.0.76.

<details>
<summary>Full debug log</summary>

2026-01-11T11:28:36.873Z [ERROR] Error: Error: 1P event logging: 146 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:28:36.873Z [ERROR] Error: Error: {"stack":"Error: Failed to export 146 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 146 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:28:43.793Z [ERROR] Error: Error: 1P event logging: 6 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:28:43.794Z [ERROR] Error: Error: {"stack":"Error: Failed to export 6 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export6 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:28:53.291Z [ERROR] Error: Error: 1P event logging: 6 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:28:53.292Z [ERROR] Error: Error: {"stack":"Error: Failed to export 6 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export6 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:29:11.479Z [ERROR] Error: Error: 1P event logging: 6 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:29:11.480Z [ERROR] Error: Error: {"stack":"Error: Failed to export 6 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export6 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:29:12.752Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.752Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.752Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.752Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.753Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.753Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:12.753Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.692Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.693Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.693Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.693Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.693Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.694Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:17.694Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:29:45.849Z [ERROR] Error: Error: 1P event logging: 6 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:29:45.849Z [ERROR] Error: Error: {"stack":"Error: Failed to export 6 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export6 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:30:21.939Z [ERROR] Error: Error: 1P event logging: 5 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:30:21.940Z [ERROR] Error: Error: {"stack":"Error: Failed to export 5 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export5 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:30:28.563Z [ERROR] Error: Error: 1P event logging: 1 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:30:28.564Z [ERROR] Error: Error: {"stack":"Error: Failed to export 1 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export1 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:30:57.388Z [ERROR] Error: Error: 1P event logging: 4 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:30:57.389Z [ERROR] Error: Error: {"stack":"Error: Failed to export 4 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export4 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:31:06.423Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:31:06.423Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:31:23.862Z [ERROR] Error in non-streaming fallback: Connection error.
2026-01-11T11:31:23.862Z [ERROR] Connection error details: code=ETIMEDOUT, message=
2026-01-11T11:31:23.862Z [ERROR] Error: Error: Connection error.
    at qP.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:4542)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async g81.model (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4346:6290)
    at async g81 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97633)
    at async gH9 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4346:6444)
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4344:3799
    at async AG0 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)
    at async ZHA (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4344:3769)
    at async pN (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3265:11900)
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3041:2325
2026-01-11T11:31:24.529Z [DEBUG] Getting matching hook commands for Stop with query: undefined
2026-01-11T11:31:24.529Z [DEBUG] Found 0 hook matchers in settings
2026-01-11T11:31:24.529Z [DEBUG] Matched 0 unique hooks for query "no match query" (0 before deduplication)
2026-01-11T11:31:24.546Z [DEBUG] Writing to temp file: /home/jantman/.claude.json.tmp.588318.1768131084546
2026-01-11T11:31:24.546Z [DEBUG] Preserving file permissions: 100644
2026-01-11T11:31:24.546Z [DEBUG] Temp file written successfully, size: 24586 bytes
2026-01-11T11:31:24.546Z [DEBUG] Applied original permissions to temp file
2026-01-11T11:31:24.546Z [DEBUG] Renaming /home/jantman/.claude.json.tmp.588318.1768131084546 to /home/jantman/.claude.json
2026-01-11T11:31:24.546Z [DEBUG] File /home/jantman/.claude.json written atomically
2026-01-11T11:32:17.204Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.205Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.205Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.205Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.205Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.206Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:17.206Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.037Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.038Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.038Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.038Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.038Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.039Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:22.039Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:24.864Z [DEBUG] Getting matching hook commands for Notification with query: idle_prompt
2026-01-11T11:32:24.864Z [DEBUG] Found 1 hook matchers in settings
2026-01-11T11:32:24.864Z [DEBUG] Matched 1 unique hooks for query "idle_prompt" (1 before deduplication)
2026-01-11T11:32:26.862Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.863Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.863Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.863Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.864Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.864Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:26.864Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.265Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.267Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.267Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:31.267Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.364Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.365Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.365Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.365Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.366Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.366Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:33.366Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.174Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.175Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.175Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.175Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.175Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.176Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:34.176Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:32:36.904Z [DEBUG] Notification:idle_prompt [/home/jantman/bin/claude_notify.sh "$(basename $(pwd))"] completed with status 124
2026-01-11T11:32:36.904Z [DEBUG] Hook output does not start with {, treating as plain text
2026-01-11T11:34:10.070Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.070Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.070Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.071Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.071Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.072Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:10.072Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:19.730Z [ERROR] Error: Error: 1P event logging: 1 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:19.730Z [ERROR] Error: Error: {"stack":"Error: Failed to export 1 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export1 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:20.063Z [DEBUG] Writing to temp file: /home/jantman/.claude.json.tmp.588318.1768131260063
2026-01-11T11:34:20.063Z [DEBUG] Preserving file permissions: 100644
2026-01-11T11:34:20.063Z [DEBUG] Temp file written successfully, size: 24621 bytes
2026-01-11T11:34:20.063Z [DEBUG] Applied original permissions to temp file
2026-01-11T11:34:20.063Z [DEBUG] Renaming /home/jantman/.claude.json.tmp.588318.1768131260063 to /home/jantman/.claude.json
2026-01-11T11:34:20.063Z [DEBUG] File /home/jantman/.claude.json written atomically
2026-01-11T11:34:20.404Z [DEBUG] Getting matching hook commands for PreCompact with query: manual
2026-01-11T11:34:20.404Z [DEBUG] Found 0 hook matchers in settings
2026-01-11T11:34:20.404Z [DEBUG] Matched 0 unique hooks for query "manual" (0 before deduplication)
2026-01-11T11:34:20.411Z [DEBUG] Tool search disabled: MCPSearchTool is not available (may have been disallowed via disallowedTools).
2026-01-11T11:34:20.416Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-11T11:34:20.416Z [DEBUG] [API:auth] OAuth token check starting
2026-01-11T11:34:20.416Z [DEBUG] [API:auth] OAuth token check complete
2026-01-11T11:34:20.757Z [ERROR] Error streaming, falling back to non-streaming mode: Connection error.
2026-01-11T11:34:20.757Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-11T11:34:20.757Z [DEBUG] [API:auth] OAuth token check starting
2026-01-11T11:34:20.757Z [DEBUG] [API:auth] OAuth token check complete
2026-01-11T11:34:20.763Z [DEBUG] AutoUpdaterWrapper: Installation type: npm-global
2026-01-11T11:34:21.738Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:21.738Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:23.997Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:23.997Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:26.239Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:26.239Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:28.477Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:28.477Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:30.705Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:30.705Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:35.157Z [ERROR] Error: Error: 1P event logging: 200 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:35.157Z [ERROR] Error: Error: {"stack":"Error: Failed to export 200 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export 200 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:34:36.459Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.459Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.459Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.459Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.460Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.460Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:36.460Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:34:50.148Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:34:50.148Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:35:09.680Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:35:09.681Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:35:21.265Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.265Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.265Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.265Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:21.266Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.979Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.979Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.980Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.980Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.980Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.981Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:27.981Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:35:48.318Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:35:48.318Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:36:12.539Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.539Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.539Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.539Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.540Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.540Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:12.540Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.780Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.781Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.781Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.781Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.782Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.782Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:13.782Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:28.024Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:36:28.024Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:36:37.820Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.820Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.821Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.821Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.821Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.821Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:37.822Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.662Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.662Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.662Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.662Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.663Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.663Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:40.663Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.505Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.505Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.505Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.505Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.506Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.506Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:49.506Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.714Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.714Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.715Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.715Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.715Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.716Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:36:51.716Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:01.600Z [ERROR] Error: Error: 1P event logging: 2 events failed to export
    at wn1.queueFailedEvents (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:2038)
    at async wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1195)
2026-01-11T11:37:01.600Z [ERROR] Error: Error: {"stack":"Error: Failed to export 2 events\n    at wn1.doExport (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:262:1297)","message":"Failed to export2 events","name":"Error"}
    at XF0.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1899:34862)
    at ul1.error (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:10503)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:41528
    at Af3 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:256:42074)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:257:20245
2026-01-11T11:37:30.272Z [ERROR] Error in non-streaming fallback: Connection error.
2026-01-11T11:37:30.272Z [ERROR] Connection error details: code=ETIMEDOUT, message=
2026-01-11T11:37:30.272Z [ERROR] Error: Error: Connection error.
    at qP.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:4542)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async g81.model (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4346:6290)
    at async g81 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97633)
    at async gH9 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4346:6444)
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4344:3799
    at async AG0 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)
    at async ZHA (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:4344:3769)
    at async OE1 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3213:1225)
    at async Object.call (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3331:47)
2026-01-11T11:37:30.274Z [ERROR] Error: Error: API Error: Connection error.
    at OE1 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3213:1598)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.call (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3331:47)
    at async Ze5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3052:3198)
    at async k19 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3052:1025)
    at async Xe5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3058:2482)
    at async Gt (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3056:3461)
    at async So5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2877:2170)
    at async LV1 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2877:1332)
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3041:5657
2026-01-11T11:37:30.274Z [ERROR] Error: Error: Error during compaction: Error: API Error: Connection error.
    at Object.call (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3332:184)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ze5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3052:3198)
    at async k19 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3052:1025)
    at async Xe5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3058:2482)
    at async Gt (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3056:3461)
    at async So5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2877:2170)
    at async LV1 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2877:1332)
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3041:5657
    at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2873:4438
2026-01-11T11:37:30.279Z [DEBUG] FileHistory: Making snapshot for message 1e21edcd-d03e-469e-9976-fc0937016401
2026-01-11T11:37:30.279Z [DEBUG] FileHistory: Added snapshot for 1e21edcd-d03e-469e-9976-fc0937016401, tracking 14 files
2026-01-11T11:37:30.295Z [DEBUG] UserCommandMessage rendering: "compact" (args: "none", isSkillFormat: false)
2026-01-11T11:37:30.610Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-11T11:37:30.620Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-11T11:37:30.620Z [DEBUG] [API:auth] OAuth token check starting
2026-01-11T11:37:30.620Z [DEBUG] [API:auth] OAuth token check complete
2026-01-11T11:37:31.352Z [DEBUG] Stream started - received first chunk
2026-01-11T11:37:33.394Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.395Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.395Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.395Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.396Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.396Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.396Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:33.396Z [DEBUG] UserCommandMessage rendering: "compact" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.294Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "exit" (args: "none", isSkillFormat: false)
2026-01-11T11:37:39.295Z [DEBUG] UserCommandMessage rendering: "compact" (args: "none", isSkillFormat: false)

</details>

jalovisko · 6 months ago

Issue appears to happen not only in VS Code on Windows but also in terminal on Linux.

chandama · 6 months ago

Same issue here. Using WSL and I'll have 15-30 minutes of pain-free usage and even get 1-2 compacts in but then random API timeout errors. I also start to experience increased typing latency, missed keystrokes, "Enter" commands interpreted as newlines and all sorts of other bugginess. Using both sonnet and opus models in v2.1.7

/usage
⎿  You've used 96,649 tokens out of 200,000 (48.3% remaining).

Max plan, no where near usage limits. Happens regardless of token usage %

kito-cheng · 6 months ago

Same issue, I am using CLI version on Ubuntu, and resolved after I restart a whole new session on same working directory.

71walceli · 5 months ago

Does this have to do in any way with rendering on the client?

<img width="1090" height="798" alt="Image" src="https://github.com/user-attachments/assets/63fd60cf-6319-488f-903c-a18445063080" />

I see a lot of CPU usage while processing. I nerfed the CPU frequency, so CPU fan wouldn't be so loud. Then saw CPU activity, made 100% of it available, and voila!

Please LMK if I should open a new issue, or if this is to be reported on another.

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.