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/api/schema/panes.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/api/schema/panes.rs') diff --git a/src/api/schema/panes.rs b/src/api/schema/panes.rs index dfef31f8..9dbe0221 100644 --- a/src/api/schema/panes.rs +++ b/src/api/schema/panes.rs @@ -372,6 +372,10 @@ pub struct PaneReportAgentParams { pub agent_session_id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub agent_session_path: Option, + /// Command that resumes this agent's session after a Herdr restart. The + /// first element must be a plain command name. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub resume_argv: Option>, } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)] @@ -387,6 +391,10 @@ pub struct PaneReportAgentSessionParams { pub agent_session_path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub session_start_source: Option, + /// Command that resumes this agent's session after a Herdr restart. The + /// first element must be a plain command name. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub resume_argv: Option>, } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)] -- cgit v1.2.3