Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion internal/cmd/prime.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,14 @@ func setupPrimeSession(ctx RoleContext, roleInfo RoleInfo) error {
ensureBeadsRedirect(ctx)
}
repairSessionEnv(ctx, roleInfo)
emitSessionEvent(ctx)
// Only emit session_start when gt prime is running as a SessionStart or
// PreCompact hook. Bare gt prime calls (e.g. an agent reading another
// agent's context) must not emit session_start — doing so logs a spurious
// event with the target agent's persisted session_id, which pollutes the
// event stream and can confuse gt seance discovery.
if primeHookMode {
emitSessionEvent(ctx)
}
return nil
}

Expand Down