Files
codex/codex-rs/tui/tests/suite
bkotsopoulos 89bc4351be Trace MCP runtime refresh contention (#64800)
## Why

MCP refresh traces show how long an operation waits for the refresh gate, but they lack the timing and operation labels needed to identify which refresh held it.

## What changed

- Tag refresh wait and hold spans with a shared gate ID and the operation name so overlapping spans show which operation held the gate while another waited.
- Carry the scheduling trace context into background MCP prewarm and add a span for the Apps catalog refresh.

## Testing

- Add a test that checks the exported wait and hold spans share a gate ID and overlap while a second operation waits for the permit.
- Make the worktree TUI test wait for the `Ready` run state before submitting input, since a directory change can appear while the composer is still busy.

GitOrigin-RevId: be2b6d2a82e4a5b553fb3f335850865f04a181ee
2026-11-30 20:09:18 +00:00
..