Skip to content

Conversation

@pakrym-oai
Copy link
Collaborator

Remove useless mount_sse_once_match

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

Comment on lines 39 to 40
let first_response = sse(vec![ev_response_created("resp-1"), ev_completed("resp-1")]);
mount_sse_once_match(&server, any(), first_response).await;
mount_sse_once(&server, first_response).await;

Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Import mount_sse_once in items tests

This file now calls mount_sse_once directly, but the only import that was left in place is use core_test_support::responses::mount_sse_once_match;. Because the symbol is neither imported nor referenced through the responses:: module, the code no longer compiles—the compiler raises cannot find function mount_sse_once in this scope the moment this line is compiled. Bring mount_sse_once into scope (or qualify the call) wherever you replaced the matcher.

Useful? React with 👍 / 👎.

… unused imports

Standardize on mount_sse_once in test suites instead of mount_sse_once_match(any(), ...), simplifying mock setup. Update AGENTS.md to advise using mount_sse_once by default. Remove unnecessary wiremock::matchers::any imports where no longer needed. Also fix call in tools.rs to use submit_turn_with_policies.
@pakrym-oai pakrym-oai force-pushed the pakrym/prefer-mount-sse-once branch from e5f2966 to 25d3d97 Compare November 14, 2025 01:34
@pakrym-oai pakrym-oai merged commit 6c384eb into main Nov 14, 2025
44 of 46 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/prefer-mount-sse-once branch November 14, 2025 02:04
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants