From 3750e0bae21c54da3947d337584f180a21d0bc67 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 26 May 2026 17:10:28 +0300 Subject: feat: add pane metadata reporting refs #36 --- src/app/creation.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/app/creation.rs') diff --git a/src/app/creation.rs b/src/app/creation.rs index 5bb14953..a034fdc4 100644 --- a/src/app/creation.rs +++ b/src/app/creation.rs @@ -274,6 +274,7 @@ impl App { && ws .focused_pane_id() .is_some_and(|focused| focused == pane_id); + let presentation = terminal.effective_presentation(); Some(crate::api::schema::PaneInfo { pane_id: self.public_pane_id(ws_idx, pane_id)?, terminal_id: terminal.id.to_string(), @@ -285,8 +286,11 @@ impl App { .map(|cwd| cwd.display().to_string()), label: terminal.manual_label.clone(), agent: terminal.effective_agent_label().map(str::to_string), + title: presentation.title, + display_agent: presentation.display_agent, agent_status: pane_agent_status(terminal.state, pane.seen), - custom_status: terminal.effective_custom_status().map(str::to_string), + custom_status: presentation.custom_status, + state_labels: presentation.state_labels, revision: terminal.revision, }) } -- cgit v1.2.3