diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-22 19:54:10 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-22 19:55:07 +0300 |
| commit | 062259ba3e060c7463b4896a6f761cdf66d2f8ff (patch) | |
| tree | df034626fad636e06cc558b3771c3d96914da06f /src/events.rs | |
| parent | 623a1288a7719f53f7829b9fdbab33665e2ccc57 (diff) | |
fix: arbitrate stale agent state evidence
refs #249
Diffstat (limited to 'src/events.rs')
| -rw-r--r-- | src/events.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/events.rs b/src/events.rs index 90a65957..4416d00d 100644 --- a/src/events.rs +++ b/src/events.rs @@ -3,6 +3,8 @@ //! Background tasks (PTY child watchers, future hook listeners, etc.) send //! events to the main loop through this channel. No polling needed. +use std::time::Instant; + use crate::detect::{Agent, AgentState}; use crate::layout::PaneId; use crate::workspace::WorkspaceGitStatus; @@ -30,6 +32,11 @@ pub enum AppEvent { pane_id: PaneId, agent: Option<Agent>, state: AgentState, + visible_blocker: bool, + visible_idle: bool, + visible_working: bool, + process_exited: bool, + observed_at: Instant, }, /// Hook-authoritative agent state was reported for a pane. HookStateReported { |
