From 377b79c138e4c6ed06f989517ab801f8bc8cf2ac Mon Sep 17 00:00:00 2001 From: gastown/crew/joe Date: Wed, 31 Dec 2025 12:33:43 -0800 Subject: [PATCH] Add actor_pid to session_start event payload (gt-3zsml) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a stable actor-PID identifier alongside the Claude session_id. Useful for correlation across session handoffs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/events/events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/events/events.go b/internal/events/events.go index 600d0a29..a09b15f2 100644 --- a/internal/events/events.go +++ b/internal/events/events.go @@ -283,6 +283,7 @@ func SessionPayload(sessionID, role, topic, cwd string) map[string]interface{} { p := map[string]interface{}{ "session_id": sessionID, "role": role, + "actor_pid": fmt.Sprintf("%s-%d", role, os.Getpid()), } if topic != "" { p["topic"] = topic