| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Issue for this PR
Closes #30553
Type of change
What does this PR do?
OpenAI rejects some tool parameter schemas containing regex pattern constraints, which can surface as a generic server_error during tool calls. This strips those pattern constraints only for @ai-sdk/openai models while preserving non-OpenAI schemas and legitimate properties named pattern.
Repro / context
With Backstage MCP enabled and an OpenAI-backed GPT-5.5 model, requests could fail before tool execution with a generic server_error / response.failed.
The trigger was MCP tool schemas containing many JSON Schema pattern regex constraints, such as Backstage entity refs and catalog filters. OpenAI's tool schema validator rejects that shape in practice, while Anthropic/Bedrock accept it.
Validated locally against the real opencode config with Backstage enabled:
How did you verify your code works?
Screenshots / recordings
N/A
Checklist