Skip to content

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

Closed as not planned

Description

@Jithin-Garapati

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 11, 2026
  2. github-actions commented on Jan 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. added a commit that references this issue on Jan 11, 2026
    cb079ef
  4. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions