From e4de58b37f58d59d146158239ed218a8accd5c3c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 17 May 2026 01:41:16 +0300 Subject: feat: add agent start for server-owned terminals --- src/app/creation.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/creation.rs') diff --git a/src/app/creation.rs b/src/app/creation.rs index f1ee41d8..6e557066 100644 --- a/src/app/creation.rs +++ b/src/app/creation.rs @@ -230,7 +230,6 @@ impl App { ) -> Option { let ws = self.state.workspaces.get(ws_idx)?; let pane = ws.pane_state(pane_id)?; - let runtime = ws.runtime(pane_id); let tab_idx = ws.find_tab_index_for_pane(pane_id)?; let focused = self.state.active == Some(ws_idx) && ws.active_tab == tab_idx @@ -243,8 +242,8 @@ impl App { workspace_id: self.public_workspace_id(ws_idx), tab_id: self.public_tab_id(ws_idx, tab_idx)?, focused, - cwd: runtime - .and_then(|rt| rt.cwd()) + cwd: ws.tabs[tab_idx] + .cwd_for_pane(pane_id) .map(|cwd| cwd.display().to_string()), label: pane.manual_label.clone(), agent: pane.effective_agent_label().map(str::to_string), -- cgit v1.2.3