opencode
opencode copied to clipboard
fix(tui): defer prompt.set() to prevent crash when using --prompt flag
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.