feat(maestro): persist the agent's own session id on the sidecar (#161)
The Claude Code hook already receives a session_id in every payload, but the activity route dropped it and the daemon had no field to store it on. Parse it out of the hook body, add Session.agent_session_id, and write it through to the sidecar once — the first report that carries one wins, and later reports never overwrite it since an agent's own id never changes mid-session. This is the input to a follow-up POST /api/sessions/:id/resume.
This commit is contained in:
@@ -252,6 +252,7 @@ mod tests {
|
||||
current_cwd: None,
|
||||
blocked_work: None,
|
||||
last_focused_at: None,
|
||||
agent_session_id: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user