mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
Keep transcript Find expansion scoped to the current match (#50045)
## Why Starting Find expanded the entire transcript into detailed mode. Searching hidden content should preserve the compact view and manually expanded activities. ## What changed - Search full transcript content, including hidden live output, and temporarily expand only the current matching entry. - Preserve manual disclosure state and retained text revisions while reading or selecting a match. Allow activity controls while reading results. - Use `Enter` or `Ctrl+P` for older matches and `Ctrl+N` for newer matches, with matching footer hints. ## Testing Add regression tests and snapshots for selective expansion, manual disclosures, hidden live matches, retained selections across updates and resizing, and Find in compact transcript overlays. GitOrigin-RevId: 618ee47ba6c3f3a5138c9e3fe0961e7faa3383da
This commit is contained in:
@@ -336,7 +336,7 @@ impl TranscriptView {
|
||||
self.cache.clear();
|
||||
self.suppressed_prompt_header = None;
|
||||
self.live_key = None;
|
||||
// Search temporarily expands content without changing either presentation's position.
|
||||
// Keep search's origin independent of either presentation's saved position.
|
||||
if self.detailed != detailed && !self.search.is_active() {
|
||||
let previous = self.position;
|
||||
self.position = self.saved_position.take().unwrap_or(previous);
|
||||
|
||||
Reference in New Issue
Block a user