feat: surface last_assistant_message from SubagentStop hook payloads

Extracts last_assistant_message from SubagentStop hook events and
surfaces it in the agent monitor panel as a summary snippet below
each completed agent card.

Closes #156
This commit is contained in:
2026-02-24 18:26:12 -08:00
committed by Naomi Carrigan
parent 5063a4f415
commit 1fe39bbbc1
7 changed files with 164 additions and 14 deletions
+2
View File
@@ -305,6 +305,8 @@ pub struct AgentEndEvent {
pub duration_ms: Option<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub num_turns: Option<u32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub last_assistant_message: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]