opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(tui): defer prompt.set() to prevent crash when using --prompt flag

Open ryanrhughes opened this issue 4 weeks ago • 1 comments

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.

ryanrhughes avatar Jan 11 '26 22:01 ryanrhughes

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

github-actions[bot] avatar Jan 11 '26 22:01 github-actions[bot]

Regression was fixed in 3a30773874ccb92d085eddbab66d053c5d4e6326

markjaquith avatar Jan 12 '26 04:01 markjaquith