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 3 days 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