Skip to content

fix: use GET query params for You.com search - #203

Merged
franciscojavierarceo merged 3 commits into
mainfrom
codex/fix-you-search-get
Aug 24, 2026
Merged

franciscojavierarceo merged 3 commits into
mainfrom
codex/fix-you-search-get

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator

Summary

  • switch You.com /v1/search requests from POST JSON bodies to GET query parameters
  • preserve the X-API-Key header and update web-search integration mocks/tests

Test Plan

  • cargo test -p agentic-server-core --test web_search_tool_test (21 passed)
  • cargo clippy -p agentic-server-core --all-targets -- -D warnings (passed)
  • cargo fmt -- --check and git diff --check (passed)
  • full cargo test attempted; linking was blocked by the environment with No space left on device
  • live You.com curl reached the endpoint but returned 403 with the available environment key

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>

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.

Pull request overview

Switches You.com search requests to GET query parameters while preserving authentication.

Changes:

  • Replaces POST JSON requests with GET query serialization.
  • Updates integration mocks and assertions for GET requests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
crates/agentic-server-core/src/tool/web_search.rs Sends You.com searches using GET query parameters.
crates/agentic-server-core/tests/web_search_tool_test.rs Updates mocks and tests for GET requests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

.client
.post(url)
.get(format!("{base_url}/v1/search"))
.query(&request)
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
@franciscojavierarceo
franciscojavierarceo merged commit c21e18d into main Aug 24, 2026
5 of 6 checks passed
franciscojavierarceo added a commit that referenced this pull request Aug 25, 2026
## Summary

- align the remaining You.com test mocks with the GET query-parameter
contract introduced in #203
- bound mock request captures so future contract mismatches fail within
five seconds instead of hanging CI
- verify the intentional 500 search mock is actually reached and cap the
Rust job at 30 minutes

## Test Plan

- cargo fmt --all -- --check
- cargo clippy --all-targets -- -D warnings
- cargo build
- cargo test
- cargo test -p agentic-server-core --test dispatch_loop_cassette_test
- cargo test -p agentic-server-core --test messages_loop_test
- cargo test -p agentic-server-core --test messages_stream_test

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
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.

2 participants