summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-29 20:38:55 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-29 20:38:55 +0300
commit9e302984ccb13a65e3e504fa7692b223f546ff84 (patch)
tree52808a27bd82c05f55117ad129137fe3ef46a8cb /src/api
parent77242943ba65a80cbc1180258dd64f06635233f9 (diff)
feat: expose foreground cwd in pane info
refs #345
Diffstat (limited to 'src/api')
-rw-r--r--src/api/schema.rs6
1 files changed, 6 insertions, 0 deletions
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<String>,
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub foreground_cwd: Option<String>,
pub revision: u64,
}
@@ -824,6 +826,8 @@ pub struct PaneInfo {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub cwd: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
+ pub foreground_cwd: Option<String>,
+ #[serde(default, skip_serializing_if = "Option::is_none")]
pub label: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub agent: Option<String>,
@@ -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,