mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why A tool-list page can take multiple attempts. Tracing the whole page keeps retry warnings tied to the page that triggered them. ## What changed Wrap each `tools/list` page request in an `mcp.tools.list_page` span that covers the retry loop. Record whether the request has a cursor via `mcp.has_cursor`. ## Testing Extend the trace propagation test in both MCP protocol modes. Return HTTP 503 on the first request for the second page and verify that the requests carry the page span context, the cursor flag reflects the request, and the retry warning appears on the page span. GitOrigin-RevId: e4b695731d037f71c15660a826c9f2e59d02e55f