diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-17 23:55:08 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-17 23:59:56 +0300 |
| commit | e0758c32118f2aa006db3d8fa4b41833fe6e7ead (patch) | |
| tree | 2b29dd61ebf870db8d0ac95cc0b4515178c834c4 /src/app/runtime.rs | |
| parent | 040956531f673c8fb7720037494ed4e61b123c6c (diff) | |
feat: harden named agent cli workflows
refs #1525
Diffstat (limited to 'src/app/runtime.rs')
| -rw-r--r-- | src/app/runtime.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs index cad49372..97edc471 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -261,6 +261,21 @@ impl App { } if self + .state + .next_managed_agent_deadline() + .is_some_and(|deadline| now >= deadline) + { + let panes = self.state.reconcile_managed_agents_at(now); + if !panes.is_empty() { + for (ws_idx, pane_id) in panes { + self.emit_pane_updated(ws_idx, pane_id); + } + self.schedule_session_save(); + changed = true; + } + } + + if self .copy_feedback_deadline .is_some_and(|deadline| now >= deadline) { @@ -593,6 +608,7 @@ impl App { self.config_diagnostic_deadline, self.toast_deadline, self.state.next_pending_agent_notification_deadline(), + self.state.next_managed_agent_deadline(), self.copy_feedback_deadline, self.next_animation_tick, include_git_refresh |
