[PR #9201] feat(tool): increase question header and label limits #13026

Closed
opened 2026-02-16 18:17:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9201

State: closed
Merged: Yes


What does this PR do?

fixes #8650

Attempts to resolve the frequent Error: "The question tool was called with invalid arguments"
this error is logged as Issue 8650
https://github.com/anomalyco/opencode/issues/8650#event-22075484811

Increased the max length for the 'header' and 'label' fields in the Question tool schema from 12 to 30 characters.

How did you verify your code works?

Added a new test suite for the Question tool to validate this new behavior and protect against regressions.

other contributions

@shoaibansari5398 mentions a commit that references this issue, it only fixes the limitation on the 'header' but not the 'label' fields.
https://github.com/anomalyco/opencode/issues/8650#event-22075484811

shoaibansari5398's commit 0bdddde only increased the header limit to 30 characters, while my commit 73213c8c6 also fixed the label field and added a test suite, making my changes more comprehensive.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9201 **State:** closed **Merged:** Yes --- ### What does this PR do? fixes #8650 Attempts to resolve the frequent Error: "The question tool was called with invalid arguments" this error is logged as Issue 8650 https://github.com/anomalyco/opencode/issues/8650#event-22075484811 Increased the max length for the 'header' and 'label' fields in the Question tool schema from 12 to 30 characters. ### How did you verify your code works? Added a new test suite for the Question tool to validate this new behavior and protect against regressions. ### other contributions @shoaibansari5398 mentions a commit that references this issue, it only fixes the limitation on the 'header' but not the 'label' fields. https://github.com/anomalyco/opencode/issues/8650#event-22075484811 shoaibansari5398's commit 0bdddde only increased the header limit to 30 characters, while my commit 73213c8c6 also fixed the label field and added a test suite, making my changes more comprehensive.
yindo added the pull-request label 2026-02-16 18:17:54 -05:00
yindo closed this issue 2026-02-16 18:17:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13026