Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Nov 26, 2025

Fix read_file native tool schema to include line_ranges in the required array when partialReadsEnabled is true.

OpenAI's strict mode requires all properties to be in the required array - optional properties should use type: ["array", "null"].

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Nov 26, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 26, 2025

Rooviewer Clock   See task on Roo Cloud

Re-review found 1 new issue:

  • Schema-implementation mismatch: removing required array allows LLM to omit mandatory action parameter
  • Inconsistent strict mode usage: should use strict: true with all properties in required array like other native tools
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 26, 2025
Fix read_file native tool to include line_ranges in required array when partialReadsEnabled.
OpenAI strict mode requires all properties in required array (nullable ones use type: [string, null]).
@daniel-lxs daniel-lxs force-pushed the fix/openrouter-gpt5-strict-schema branch from d69e5c4 to e5e3a6c Compare November 26, 2025 23:53
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 26, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Review] in Roo Code Roadmap Nov 26, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 26, 2025
@hannesrudolph hannesrudolph added PR - Needs Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Nov 27, 2025
@daniel-lxs daniel-lxs merged commit 867a5c7 into main Nov 27, 2025
10 checks passed
@daniel-lxs daniel-lxs deleted the fix/openrouter-gpt5-strict-schema branch November 27, 2025 00:37
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Nov 27, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer PR - Needs Review size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants