fix(opencode): declare file http query errors - #4
Conversation
|
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. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6999f3a325
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| HttpApiEndpoint.get("findText", FilePaths.findText, { | ||
| query: FindTextQuery, | ||
| success: described(Schema.Array(LegacyMatch), "Matches"), | ||
| error: HttpApiError.BadRequest, |
There was a problem hiding this comment.
Regenerate the SDK for the new file errors
This changes the public OpenAPI for the file routes (the added regression asserts effect_HttpApiError_BadRequest), but the checked-in generated SDK remains on the old BadRequestError contract for these same endpoints; for example packages/sdk/js/src/v2/gen/types.gen.ts still has FindTextErrors as 400: BadRequestError. If clients are built from the committed SDK, the /find and /file error types drift from the server's generated /doc spec until the SDK/OpenAPI outputs are regenerated.
Useful? React with 👍 / 👎.
|
Milestone 3 review follow-up receipts:
|
|
CI follow-up note:
|
|
CI rerun result:
|
|
Milestone 3 follow-up after the Windows unit rerun:
Local verification after the patch:
|
|
Additional Windows unit follow-up after
Local verification for this follow-up:
Note: I briefly tried the full local |
|
Merging on green evidence. Fresh local gates (worktree at head): Only |
Summary
Verification