Skip to content

fix: make web search action construction fallible - #230

Merged
franciscojavierarceo merged 4 commits into
mainfrom
codex/fix-parallel-tool-followups
Sep 1, 2026
Merged

franciscojavierarceo merged 4 commits into
mainfrom
codex/fix-parallel-tool-followups

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator

Summary

  • Follow up on review feedback from feat: add parallel tool calling support #214 by replacing the panic-prone WebSearchActionSearch::new and WebSearchCall::new constructors with fallible try_new(...) APIs backed by a typed WebSearchActionError.
  • Preserve the existing valid web-search wire shape and adapt gateway output construction to the fallible API.
  • Align the Codex integration docs and Rustdoc with the preferred client-executed and gateway-executed tool terminology.
  • Record the constructor migration and terminology cleanup in the Unreleased changelog.

Test Coverage

All 13 changed code paths are covered, including empty-query rejection, valid serialization, gateway start/completion output, and streaming/non-streaming integration flows.

Pre-Landing Review

No blocking issues found. The adversarial review noted one unreachable swallowed-error path guarded by the existing non-empty query fallback.

Documentation

  • CHANGELOG.md: clarified tool-execution terminology and documented the fallible constructor migration.
  • output.rs: aligned Rustdoc with gateway-executed built-in tool terminology.
  • codex-integration.md: clarified client-executed continuation behavior.

Coverage is adequate for the shipped public surface; no architecture diagram drift was found.

Test Plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • pre-commit run --all-files
  • mkdocs build --strict

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator Author

@copilot review

Copilot AI commented Sep 1, 2026

Copy link
Copy Markdown

@copilot review

Re-reviewed the changes: cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace all pass cleanly. The WebSearchActionSearch::try_new/WebSearchCall::try_new fallible constructors and WebSearchActionError are correctly wired through web_search.rs and output.rs, error cases are covered by tests, and no issues were found.

@franciscojavierarceo
franciscojavierarceo merged commit f20cd2b into main Sep 1, 2026
14 of 15 checks passed
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.

3 participants