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

Open
opened 2026-02-16 17:45:23 -05:00 by yindo · 1 comment
Owner

Originally created by @Jithin-Garapati on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @Jithin-Garapati on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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: <img width="1495" height="316" alt="Image" src="https://github.com/user-attachments/assets/b452a7e5-5cf2-4a92-8d4c-37d221bb9fc4" /> 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
yindo added the opentuibug labels 2026-02-16 17:45:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

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

  • #6653: Interrupting long session then resuming results in Internal Server Error
  • #5333: [FEATURE]: Graceful handling of queued messages after session interrupt
  • #7196: Undo stopped the running operation instead of removing just the last queued message
  • #1734: Esc not working on agent hangs
  • #5100: Infinite error message

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

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #6653: Interrupting long session then resuming results in Internal Server Error - #5333: [FEATURE]: Graceful handling of queued messages after session interrupt - #7196: Undo stopped the running operation instead of removing just the last queued message - #1734: Esc not working on agent hangs - #5100: Infinite error message Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4771