@threadbase-sh/streamer 1.41.1 → 1.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9776,7 +9776,14 @@ var StreamerServer = class {
9776
9776
  this.sessionStore.updateManaged(session.id, {
9777
9777
  status: session.status,
9778
9778
  completedAt: session.completedAt,
9779
- ...session.lastActivityAt != null && { lastActivityAt: session.lastActivityAt }
9779
+ ...session.lastActivityAt != null && { lastActivityAt: session.lastActivityAt },
9780
+ // The runner derives this from the first user message, on its own
9781
+ // copy of the session. Without mirroring it here SessionStore never
9782
+ // learns it, so a fresh live session is served with no sessionName
9783
+ // even though the registry has one — the name only appeared after a
9784
+ // restart rebuilt the row as a stub. Guarded so a runner that has not
9785
+ // derived one yet cannot blank a name set by enrichResumedSessionAsync.
9786
+ ...session.sessionName != null && { sessionName: session.sessionName }
9780
9787
  });
9781
9788
  this.managedSessionsRepo?.recordStatus(
9782
9789
  session.id,