Skip to content

opencode --prompt does not begin the session #4700

@dgunay

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

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