[Bug] Terminal output from background loops erases Claude conversation history
Resolved 💬 3 comments Opened Apr 23, 2026 by JulianWell Closed Apr 26, 2026
Bug Description
Having a loop running in a terminal and have conversation with claude in the same terminal. when the loop fires, it erases claude's output from the conversation i had in the meantime
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.117
- Feedback ID: 29a80ae4-f66b-4ba6-930c-6f6aa4ea9bb9
Errors
[{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid authentication credentials\"},\"request_id\":\"req_011CaLCV73HwKrGJHntqvTTo\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54339)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:05:02.447Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async NiH (/$bunfs/root/src/entrypoints/cli.js:253:275640)\n at async cx6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:08:11.057Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async NiH (/$bunfs/root/src/entrypoints/cli.js:253:275640)\n at async cx6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:08:12.149Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async NiH (/$bunfs/root/src/entrypoints/cli.js:253:275640)\n at async cx6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:08:12.380Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async NiH (/$bunfs/root/src/entrypoints/cli.js:253:275640)\n at async cx6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:08:13.935Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid authentication credentials\"},\"request_id\":\"req_011CaLCjF1QjxaQbv3UgHi7h\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54339)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:08:13.962Z"},{"error":"AxiosError: Request failed with status code 401\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:13:57.229Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T06:13:57.357Z"},{"error":"AxiosError: Request failed with status code 400\n at yd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12752)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAnd…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗