[Bug] /clear command processes asynchronously, accepting input before completion

Resolved 💬 4 comments Opened Apr 19, 2026 by francisco1844 Closed Apr 20, 2026

Bug Description
I did /clear then pasted some work. I got a note:
Session cleared. What would you like to work on?

It is as if the /clear had not worked until after I had pasted the text even though I see clearly the note for the initial clear
/clear
⎿  (no content)

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.1.112
  • Feedback ID: 8c955e27-a8b5-41e4-a5ab-51834ab03fe6

Errors

[{"error":"MaxFileReadTokenExceededError: File content (25575 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at fM7 (/$bunfs/root/src/entrypoints/cli.js:4720:12550)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T03:45:50.195Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/francisco-home/srht/pureawesome'\n    at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T03:58:26.340Z"},{"error":"Error: File does not exist. Note: your current working directory is /francisco-home/srht/pureawesome.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4729:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T03:38:42.399Z"}]

View original on GitHub ↗

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