Skip to content

[BUG]: Simultaneously having --prompt and --session does not auto-run the prompt #14349

@EvanZhouDev

Description

@EvanZhouDev

Description

If you run OpenCode as such:

opencode --session ses_something --prompt "continue."

It doesn't actually put the prompt into the session and continue running.

Plugins

opencode-pty

OpenCode version

1.2.8

Steps to reproduce

  1. Start a session, and get its session ID
  2. Run opencode --session ses_something --prompt "continue."

Observe that the session just opens, but no prompt is submitted to run.

Screenshot and/or share link

N/A

Operating System

macOS 26.0

Terminal

VSCode Integrated Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions