mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
## Why Normalizing whitespace before matching prevents thread search from producing snippets for queries containing repeated spaces, newlines, or tabs. ## What changed Match against the original conversation text and select the surrounding excerpt before normalizing whitespace for display. ## Testing Extend `thread_search_matches_json_escaped_content` to cover repeated spaces, newlines, and tabs alongside quotes and backslashes, and assert that the returned snippet has normalized whitespace. GitOrigin-RevId: fffdcc8d246e7603a52c32bb5239b9873f8179fc