[PR #4706] fix: --prompt flag now auto-submits to begin session #11074

Closed
opened 2026-02-16 18:15:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4706

State: closed
Merged: No


Fixes #4700

  • added submit() method to allow external code to trigger submit
  • move submit function before ref assignment to avoid circular reference
  • add auto-submit logic in home component with 100ms delay

output: when --prompt is provided, it now both populates input AND auto-submits

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4706 **State:** closed **Merged:** No --- Fixes #4700 - added submit() method to allow external code to trigger submit - move submit function before ref assignment to avoid circular reference - add auto-submit logic in home component with 100ms delay output: when --prompt is provided, it now both populates input AND auto-submits
yindo added the pull-request label 2026-02-16 18:15:51 -05:00
yindo closed this issue 2026-02-16 18:15:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11074