Skip to content

fix codex-core late-suite failures in remote model and search-tool flows #26

Description

@dzianisv

Summary

During package-level validation for issue #12, cargo test -p codex-core -- --nocapture did not come back clean. The failures cluster in late-suite remote-model, RMCP, search-tool, truncation, sqlite-state, and view-image paths.

Repro

  • cargo test -p codex-core -- --nocapture
    • Result observed locally on 2026-03-16: 712 passed; 32 failed; 27 ignored

Representative focused repros:

  • cargo test -p codex-core --test all suite::remote_models::remote_models_truncation_policy_with_tool_output_override -- --nocapture --exact
    • Fails with: timed out waiting for the remote model codex-test-truncation-override to appear
  • cargo test -p codex-core --test all suite::search_tool::search_tool_selection_persists_across_turns -- --nocapture --exact
    • Fails because the mocked /responses sequence receives 0 requests instead of 3

Failure cluster observed in the full run

  • suite::remote_models::*
  • suite::rmcp_client::*
  • suite::search_tool::*
  • suite::sqlite_state::mcp_call_marks_thread_memory_mode_polluted_when_configured
  • suite::truncation::*
  • suite::view_image::view_image_tool_returns_unsupported_message_for_text_only_model

Why this matters

These failures showed up while validating the provider/model-switching work, but they are outside the two files changed for #12. They indicate a broader break in late-suite remote-model availability and tool-selection behavior that needs its own investigation and fix.

Acceptance criteria

  • cargo test -p codex-core -- --nocapture passes cleanly
  • the representative focused repros above pass cleanly
  • root cause is identified and covered by regression tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions