opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Persistent error at bottom of screen when aborting session with queued message

Open Jithin-Garapati opened this issue 3 days ago • 1 comments

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:

Image

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

  1. Start a chat with the AI
  2. While AI is processing, type another message and press Enter (queues it)
  3. Press Escape twice to abort
  4. Error appears at the bottom and stays there permanently

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Macos terminal

Jithin-Garapati avatar Jan 11 '26 19:01 Jithin-Garapati