diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-27 20:57:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-27 20:57:00 +0300 |
| commit | 2552d101afe46b8622a7695f38f6cd1766dd1afc (patch) | |
| tree | e560c2cc8ef02689711af0865a5b541ee3050bf1 /src/events.rs | |
| parent | 0d1a39dcee6a0f244a036c55935970f40cfa76b8 (diff) | |
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
Diffstat (limited to 'src/events.rs')
| -rw-r--r-- | src/events.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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<crate::agent_resume::AgentSessionRef>, session_start_source: Option<String>, }, + /// A reporter supplied the command that resumes its own session. + AgentResumeReported { + pane_id: PaneId, + source: String, + agent_label: String, + seq: Option<u64>, + argv: Vec<String>, + }, + /// 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, |
