huskies: merge 1211 story Deterministic crash notification when the agent PTY dies mid-turn
This commit is contained in:
@@ -138,4 +138,18 @@ pub enum WatcherEvent {
|
||||
/// Identifier of the sled that observed the recovery.
|
||||
host_id: String,
|
||||
},
|
||||
/// An agent's PTY child process died before completing its current turn
|
||||
/// (no `"result"` event was observed) — a crash, kill, or watchdog
|
||||
/// termination rather than a clean finish (story 1211).
|
||||
/// Triggers a deterministic crash notification to configured chat rooms.
|
||||
AgentCrashed {
|
||||
/// Work item ID the agent was working on.
|
||||
story_id: String,
|
||||
/// Name of the agent whose process died.
|
||||
agent_name: String,
|
||||
/// Child process exit code, when available.
|
||||
exit_code: Option<u32>,
|
||||
/// Last non-empty line emitted by the child before it died, if any.
|
||||
last_error_line: Option<String>,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user