mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
Open subagent transcripts from activity links in the TUI (#62159)
## Why When a transcript mentions a subagent, readers have to find it in the sidebar chooser to inspect its work. ## What changed Underline subagent labels in transcript activity when the sidebar is available. Clicking a label opens that agent's transcript beside the parent conversation, including when the link is in an unfocused pane. Use backend ancestry to confirm that the linked agent belongs to the current conversation. If a click arrives while agent discovery is in progress after resume, resolve it when discovery finishes. ## Testing Cover clicks from the parent transcript and a nested-agent link in an unfocused pane, along with clicks during discovery and inherited activity from a fork. Snapshot the underline across a wrapped label. GitOrigin-RevId: 75b343c56eac4a009d644f0cfc135b6d9bfbe3a0
This commit is contained in:
@@ -94,6 +94,7 @@ struct VisibleRow {
|
||||
/// Shared scrolling and interaction state for compact and detailed transcript presentations.
|
||||
pub(crate) struct TranscriptView {
|
||||
pub(crate) image_protocol: Option<crate::pets::ImageProtocol>,
|
||||
pub(crate) agent_links: Option<crate::backend_id::BackendId>,
|
||||
pub(crate) document_links: bool,
|
||||
pub(crate) mouse_scroll_speed: f64,
|
||||
pending_mouse_scroll: f64,
|
||||
@@ -137,6 +138,7 @@ impl Default for TranscriptView {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
image_protocol: None,
|
||||
agent_links: None,
|
||||
document_links: false,
|
||||
mouse_scroll_speed: 1.0,
|
||||
pending_mouse_scroll: 0.0,
|
||||
@@ -325,6 +327,9 @@ impl TranscriptView {
|
||||
};
|
||||
let row_area = Rect::new(area.x, y, area.width, /*height*/ 1);
|
||||
layout.render(row_area, buf, row);
|
||||
if self.agent_links.is_some() {
|
||||
layout.underline_agent_links(row_area, buf, row);
|
||||
}
|
||||
self.render_disclosure(&activity_ids, &layout, row, row_area, buf);
|
||||
if self.highlight == Some(index) && self.selection.is_none() && !self.search.is_active()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user