mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Open subagent transcripts in the TUI sidebar (#62157)
## Why Selecting a subagent from the sidebar switched the active conversation to that agent. Keeping the parent conversation visible makes it easier to review the agent's work in context. ## What changed - Open the selected subagent in a sidebar tab alongside its parent conversation. Switch focus between the two panes as needed. - Show parent-owned subagents in a watch-only reader with transcript navigation, search, and selection. - Press `Esc` from the reader to return to the subagent list with the same agent selected. The tab also supports the sidebar's close button and close shortcut. ## Testing Add a TUI integration test that opens a saved subagent through the sidebar, snapshots the watch-only view, and covers transcript navigation, search, resizing, and tab dismissal. GitOrigin-RevId: 60da0759b7c046c33b665abdbb063153c5beafa4
This commit is contained in:
@@ -109,6 +109,9 @@ pub(crate) fn normalize_agent_center_snapshot(text: impl AsRef<str>) -> String {
|
||||
.replace(&windows_path, unix_path)
|
||||
.replace(&windows_path.replace('\\', "/"), unix_path);
|
||||
}
|
||||
if normalized.trim() == r"C:\" || normalized.trim() == "C:/" {
|
||||
normalized = normalized.replace(normalized.trim(), "/");
|
||||
}
|
||||
// Only ASCII path bytes change, so this is also the removed cell width.
|
||||
let padding = pane.len().saturating_sub(normalized.len());
|
||||
normalized.push_str(&" ".repeat(padding));
|
||||
|
||||
Reference in New Issue
Block a user