Skip to content

Keystrokes typed during TUI startup are silently dropped #20933

@JosXa

Description

@JosXa

Description

opencode doesn't buffer input while it starts up. You stare at a blank terminal for several seconds (especially on Windows with lots of plugins), and by the time the UI comes up you've forgotten what you were going to type. Other tools like Pi let you start typing your prompt while the UI is still loading.

--prompt exists but doesn't support multiline input. The expectation is that you can just start typing immediately after running opencode and have everything appear in the prompt once it's ready.

Plugins

No response

OpenCode version

1.3.13

Steps to reproduce

  1. Run opencode
  2. Immediately start typing before the UI renders
  3. Once the prompt appears, none of your input is there

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

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