Skip to content

TUI: Prompt gets submitted when switching sessions #8019

Closed

Description

@LeonMueller-OneAndOnly

Description

In case content is present in the input and the user switches to another session, this prompt gets directly submitted in the new session when using the keyboard shortcuts. A video is attached here:

Plugins

No response

OpenCode version

1.1.14

Steps to reproduce

  1. go into a non-empty session
  2. type something into the chat input
  3. switch to another non-empty session

Screenshot and/or share link

undesired-behaviour.mp4

Operating System

macOS v15

Terminal

Cursor / VSCode

Activity

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

    @github-actions
    Contributor

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

    Also, since this issue mentions keyboard shortcuts, please check our pinned keybinds documentation: #4997

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

  3. yosit commented on Jan 13, 2026

    @yosit

    +1 on this

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