From 062259ba3e060c7463b4896a6f761cdf66d2f8ff Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 22 May 2026 19:54:10 +0300 Subject: fix: arbitrate stale agent state evidence refs #249 --- src/events.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/events.rs') 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, 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 { -- cgit v1.2.3