fix(server): include created_at in session.created SSE event

The session.created event only had session_id and status, causing
downstream adapters to produce empty time objects and new sessions
landing in the 'older' group.
This commit is contained in:
DoSun 2026-05-11 16:04:03 +08:00
parent 922bcf7660
commit 58b4b5e354

View File

@ -196,6 +196,7 @@ export class SessionManager {
})
this.eventBus.publishSessionEvent(sessionId, 'created', {
status: 'starting',
created_at: Date.now(),
})
}
this.scheduleIndexSave()