[PR #7869] fix(tui): defer prompt.set() to prevent crash when using --prompt flag #12544

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

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

State: closed
Merged: No


What does this PR do?

Fixes a regression caused by #7702 that causes a crash when using the --prompt flag.

Fixes #7818
Fixes #7850

How did you verify your code works?

I ran tests with --prompt populated and without, as well as tested that you can still successfully fork from the first message so as to not cause any regression from the original PR.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7869 **State:** closed **Merged:** No --- ### What does this PR do? Fixes a regression caused by #7702 that causes a crash when using the `--prompt` flag. Fixes #7818 Fixes #7850 ### How did you verify your code works? I ran tests with `--prompt` populated and without, as well as tested that you can still successfully fork from the first message so as to not cause any regression from the original PR.
yindo added the pull-request label 2026-02-16 18:17:27 -05:00
yindo closed this issue 2026-02-16 18:17:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12544