Skip to content

fix(api): accept bounded long tool descriptions - #887

Open
seonghobae wants to merge 2 commits into
mainfrom
fix/opencode-long-tool-description
Open

fix(api): accept bounded long tool descriptions#887
seonghobae wants to merge 2 commits into
mainfrom
fix/opencode-long-tool-description

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the unsupported 1,024-character cap on tool.function.description
  • retain the 64 KiB request-body bound and all tool name, type, parameters, strictness, and unknown-field validation
  • accept an OpenCode-shaped 4,096-character description over the HTTP boundary

Runtime evidence

PR #876's exact-head hourly run installed and launched OpenCode successfully, then the gateway rejected OpenCode's built-in tool schema with invalid_tools because a description exceeded 1,024 characters. This fixes that shared gateway boundary rather than changing the installer.

Validation

  • focused request/body/provider contract set: 41 passed
  • all test_*tool*.py suites: 293 passed
  • git diff --check: clean

Open in Devin Review

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 3 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 27bdc392-cec9-401b-a521-bfa8867f4468

📥 Commits

Reviewing files that changed from the base of the PR and between 5a01759 and 5e07bc6.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • contextual_orchestrator/server.py
  • tests/test_tool_description_length_http_honesty.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae enabled auto-merge (squash) August 26, 2026 16:24
devin-ai-integration[bot]

This comment was marked as resolved.

@seonghobae

Copy link
Copy Markdown
Contributor Author

Exact-head local verification for 5e07bc6: uv run --with pytest pytest -q tests/test_tool_description_length_http_honesty.py completed with 2 passed. Hosted Actions and independent protected-branch review remain required; this is supporting evidence only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant