Skip to content

opencode --prompt does not begin the session #4700

Closed

Description

@dgunay

Description

The --prompt flag used to begin the session with the given prompt, but at some point it started only prefilling the prompt box. I now have to hit Enter to actually begin the session.

OpenCode version

1.0.108

Steps to reproduce

opencode --prompt 'tell me a joke'

Expected:

Opencode launches and the model tells me one of the same 3 terrible jokes they all tell.

Actual:

Opencode launches and I just see "tell me a joke" in the prompt box.

Screenshot and/or share link

Image

Operating System

macOS 26.0.1

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 24, 2025
  2. added a commit that references this issue on Nov 24, 2025
    cc53149
  3. self-assigned this
    on Nov 25, 2025
  4. dgunay commented on Dec 15, 2025

    @dgunay
    Author

    This appears to have started working again as of some more recent version of opencode.

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