diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-26 17:10:28 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-26 17:10:28 +0300 |
| commit | 3750e0bae21c54da3947d337584f180a21d0bc67 (patch) | |
| tree | 4542d8af76b4fee0c428ca5e9378a06946ef62ca /src/app/creation.rs | |
| parent | 1b980eaa9d4cbc050b6b81525e4b6b72ae853be5 (diff) | |
feat: add pane metadata reporting
refs #36
Diffstat (limited to 'src/app/creation.rs')
| -rw-r--r-- | src/app/creation.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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, }) } |
