
I made a plugin so OpenCode questions don't wait forever
I run OpenCode while I'm away from my desk, and a couple of times I came back to find it had been waiting on a question the whole time. I still want a chance to answer when I'm around, just not an unlimited wait.
I made a small V2 plugin that gives the built-in question tool a five-minute timeout. You can change the delay with timeoutMs. Answer in time and everything behaves normally. Otherwise the question closes, and the agent gets a clear "no answer" result so it can continue where it's safe to do so. It doesn't answer on your behalf or approve anything. Permission prompts are separate and untouched.
One odd thing I ran into while building it: my first wrapper made the question options disappear from the TUI. The released version fixes that, and I tested the choices and timeout flow on V2.0.18. I haven't tested other versions yet.
GitHub: https://github.com/balakumardev/opencode-question-timeout
Install: opencode plugin add 'github:balakumardev/opencode-question-timeout#v0.1.0'
If you've had runs stuck on questions, I'd be curious what timeout you would use.