Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tui: --prompt no longer auto-submits in 2.0

Open Beginner friendly
#51,135 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start at the home route's auto-submit effect and inspect its checks for local.model.ready, sync.ready, and the submit() call; compare the change with commit 0fa9e5039e. Reproduce with opencode --prompt "hello" in a new session, and confirm the prompt submits automatically once the required agent data is available.

Written by the indexing model from the issue text.

Description

Description

In 2.0, opencode --prompt "some text" puts the text in the composer on the home screen but no longer submits it. You have to press Enter. In 1.x it submitted automatically.

The home route's auto-submit effect only waits for local.model.ready, which just means the local model.json preferences were read. The server usually hasn't returned agents/models yet, so submit() bails at if (!agent) return false, and the effect never retries. It used to also wait for sync.ready; that check was dropped in 0fa9e5039e.

OpenCode version

2.0.16

Steps to reproduce
  1. Run opencode --prompt "hello" in a new session (no --session)
  2. The text appears in the prompt box but isn't sent until you press Enter
Dominant language
TypeScript
Stars
210k
Forks
27.8k
Avg merge
8h 43m
Merged PRs (30d)
380

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anomalyco/opencode

All issues in anomalyco/opencode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.