opencode
opencode copied to clipboard
Persistent error at bottom of screen when aborting session with queued message
Description
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
Screenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
Macos terminal