diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 01:41:16 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 01:41:16 +0300 |
| commit | e4de58b37f58d59d146158239ed218a8accd5c3c (patch) | |
| tree | 6bb35b8c9aaec969110ff51a58814dd8099617c0 /src/app/creation.rs | |
| parent | 86adf88351e17c6a11cac253714b169eac0db233 (diff) | |
feat: add agent start for server-owned terminals
Diffstat (limited to 'src/app/creation.rs')
| -rw-r--r-- | src/app/creation.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<crate::api::schema::PaneInfo> { 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), |
