opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(tui): prevent crash when input is undefined in prompt set

Open Zhanbingli opened this issue 5 days ago • 5 comments

I added defensive checks for the input object in set() and onSelect callbacks. While this specific race condition is hard to reproduce locally, this change directly addresses the undefined error reported in #7528 by ensuring setText is only called on a valid object.

Zhanbingli avatar Jan 10 '26 03:01 Zhanbingli