[Bug] No assistant message found error on first chat message after /new command

Resolved 💬 3 comments Opened Oct 23, 2025 by mscott-versa Closed Oct 23, 2025

Bug Description
I got the following after sending the first message of a new chat (after using /clear to clear context). The session proceeded normally after this exception showed up:

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Dd (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:12905)

Screenshot:

<img width="1530" height="978" alt="Image" src="https://github.com/user-attachments/assets/db3c7066-63c1-4a97-83ba-09154b1d8a24" />

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.25
  • Feedback ID: 5d1a6736-f6d8-4c32-9aa4-2c72c6c6b8be

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at HR (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:24:1136)\n    at IncomingMessage.<anonymous> (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:9841)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at M71.request (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2129)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async JHB (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1540:25937)","timestamp":"2025-10-22T14:35:55.922Z"},{"error":"Error: Request was aborted.\n    at by.makeRequest (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:3662)","timestamp":"2025-10-23T15:30:49.658Z"},{"error":"Error: Request was aborted.\n    at by.makeRequest (file:///Users/mscott/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:357:3662)","timestamp":"2025-10-23T15:30:50.003Z"}]

View original on GitHub ↗

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