mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why Searching raw user messages can return hits from Markdown link destinations that readers never see in the link label. ## What changed Use inline Markdown link labels for user-message matches and snippets while preserving surrounding whitespace and code blocks. Keep literal text for messages with byte-ranged inline elements. Reject cursors that counted raw-text matches because hidden URL hits could shift the index and cause pagination to skip a visible match. ## Testing Extend the thread search integration test to check match offsets, snippet formatting, pagination, and rejection of a raw-text cursor. GitOrigin-RevId: 19af5ab4aa16933e83b4eb2cb15e57cc92597b6b