Description
When I run opencode in a a loop it sometimes causes the Agent to ask questions,
question_tool_error.json
i use opencode run --agent ... , so questions are useless too, causing my loop/script to get stuck.
→ Asked 2 questions
Error: The question tool was called with invalid arguments: [
{
"origin": "string",
"code": "too_big",
"maximum": 30,
"inclusive": true,
"path": [
"questions",
0,
"options",
0,
"label"
],
"message": "Too big: expected string to have <=30 characters"
},
{
"origin": "string",
"code": "too_big",
"maximum": 30,
"inclusive": true,
"path": [
"questions",
1,
"options",
0,
"label"
],
"message": "Too big: expected string to have <=30 characters"
}
].
Please rewrite the input so it satisfies the expected schema
Plugins
No response
OpenCode version
OpenCode 1.1.31
Steps to reproduce
- I was unable to force the error, i hope the exported session helps.
attempt, here it worked fine everytime:
we are debugging a opencode issue, it fails to propperly handle/ask very long choice question.
write a 2 paragraph stories and ask which is better to verify this issue.
ask using the question too.
Screenshot and/or share link
https://opncd.ai/share/uF0512WZ
Operating System
MacOS Tahoe 26
Terminal
Ghostty, but was running in a shellscript loop
Description
When I run opencode in a a loop it sometimes causes the Agent to ask questions,
question_tool_error.json
i use
opencode run --agent ..., so questions are useless too, causing my loop/script to get stuck.Plugins
No response
OpenCode version
OpenCode 1.1.31
Steps to reproduce
attempt, here it worked fine everytime:
Screenshot and/or share link
https://opncd.ai/share/uF0512WZ
Operating System
MacOS Tahoe 26
Terminal
Ghostty, but was running in a shellscript loop