opencode
opencode copied to clipboard
fix(tui): prevent crash when input is undefined in prompt set
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.