From 2552d101afe46b8622a7695f38f6cd1766dd1afc Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 27 Sep 2026 20:57:00 +0300 Subject: feat: let agents report their own resume command (#4687) * feat: let agents report their own resume command * fix: keep reported resume commands tied to accepted sessions and current owners --- src/events.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/events.rs') diff --git a/src/events.rs b/src/events.rs index 0e61f5f8..c87a50a3 100644 --- a/src/events.rs +++ b/src/events.rs @@ -120,6 +120,19 @@ pub enum AppEvent { session_ref: Option, session_start_source: Option, }, + /// A reporter supplied the command that resumes its own session. + AgentResumeReported { + pane_id: PaneId, + source: String, + agent_label: String, + seq: Option, + argv: Vec, + }, + /// A pane held by a self-reported agent is back at its idle shell. + ReportedAgentShellReturned { + pane_id: PaneId, + observed_at: std::time::Instant, + }, /// Display-only agent metadata was reported for a pane. HookMetadataReported { pane_id: PaneId, -- cgit v1.2.3