aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-27 20:57:00 +0300
committerGitHub <noreply@github.com>2026-09-27 20:57:00 +0300
commit2552d101afe46b8622a7695f38f6cd1766dd1afc (patch)
treee560c2cc8ef02689711af0865a5b541ee3050bf1 /src/api
parent0d1a39dcee6a0f244a036c55935970f40cfa76b8 (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/api')
-rw-r--r--src/api/schema/panes.rs8
1 files changed, 8 insertions, 0 deletions
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<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub agent_session_path: Option<String>,
+ /// 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<Vec<String>>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
@@ -387,6 +391,10 @@ pub struct PaneReportAgentSessionParams {
pub agent_session_path: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub session_start_source: Option<String>,
+ /// 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<Vec<String>>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]