Skip to content

--prompt is ignored when combined with --session --fork in TUI mode #21829

Description

@raine

Description

When launching opencode in TUI mode with --session <id> --fork --prompt "...", the session is forked correctly but the prompt is never sent as a message.

Reproduction:

# 1. Create a session, note the session ID
opencode

# 2. Fork it with a prompt - prompt is ignored, but you can see if you press arrow up
opencode --session ses_xxxx --fork --prompt "hello"

Expected: The forked session should open with "hello" automatically sent as the first new user message.

Actual: The forked session opens but no message is sent. The --prompt flag is silently ignored.

Plugins

No response

OpenCode version

1.4.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions