You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Persistent error at bottom of screen when aborting session with queued message #7851
When a message is queued (sent while AI is processing) and the user presses Escape to abort, an error appears at the bottom of the screen:
This error is annoying because it's persistent - it stays at the bottom of the terminal and cannot be dismissed or scrolled past.
Root cause
The sdk.client.session.abort() call in packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx doesn't have a .catch() handler, causing an unhandled promise rejection.
Fix
Add .catch(() => {}) to the abort call since it's a fire-and-forget operation.
Plugins
No response
OpenCode version
1.1.13
Steps to reproduce
Start a chat with the AI
While AI is processing, type another message and press Enter (queues it)
Press Escape twice to abort
Error appears at the bottom and stays there permanently
Activity
github-actions commentedon Jan 11, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
fix: handle unhandled promise rejection when aborting session
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.