diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-28 04:11:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-28 04:12:53 +0300 |
| commit | bf9cc201244946496b4d950046bf7edcc4892994 (patch) | |
| tree | 920c866e67783cf31d2feff9642457204999c8eb /src/app/agents.rs | |
| parent | 789738cada5afaa20bbd77a0d479fb689c455bfe (diff) | |
fix: preserve live handoff terminal state
Diffstat (limited to 'src/app/agents.rs')
| -rw-r--r-- | src/app/agents.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/agents.rs b/src/app/agents.rs index b9534ce2..8868fb9c 100644 --- a/src/app/agents.rs +++ b/src/app/agents.rs @@ -332,6 +332,8 @@ impl App { self.state.terminals.insert(terminal.id.clone(), terminal); self.state.workspaces.push(ws); let ws_idx = self.state.workspaces.len() - 1; + self.state + .remove_alias_shadowed_by_new_pane(self.state.workspaces[ws_idx].tabs[0].root_pane); if focus || self.state.active.is_none() { self.state.switch_workspace(ws_idx); self.state.mode = Mode::Terminal; @@ -380,6 +382,8 @@ impl App { self.terminal_runtimes .insert(result.1.terminal.id.clone(), result.1.runtime); self.state + .remove_alias_shadowed_by_new_pane(result.1.pane_id); + self.state .terminals .insert(result.1.terminal.id.clone(), result.1.terminal); if focus { |
