From 9e302984ccb13a65e3e504fa7692b223f546ff84 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 29 May 2026 20:38:55 +0300 Subject: feat: expose foreground cwd in pane info refs #345 --- src/api/schema.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/api') diff --git a/src/api/schema.rs b/src/api/schema.rs index cd82f99f..5d933af9 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -811,6 +811,8 @@ pub struct AgentInfo { pub focused: bool, #[serde(default, skip_serializing_if = "Option::is_none")] pub cwd: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub foreground_cwd: Option, pub revision: u64, } @@ -824,6 +826,8 @@ pub struct PaneInfo { #[serde(default, skip_serializing_if = "Option::is_none")] pub cwd: Option, #[serde(default, skip_serializing_if = "Option::is_none")] + pub foreground_cwd: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub agent: Option, @@ -1407,6 +1411,7 @@ mod tests { tab_id: "w_1:1".into(), focused: true, cwd: Some("/worktrees/herdr/worktree-api".into()), + foreground_cwd: None, label: None, agent: None, title: None, @@ -1457,6 +1462,7 @@ mod tests { tab_id: "w_1:2".into(), focused: false, cwd: Some("/tmp/review".into()), + foreground_cwd: None, label: None, agent: None, title: None, -- cgit v1.2.3