@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.cjs CHANGED
@@ -9813,7 +9813,14 @@ var StreamerServer = class {
9813
9813
  this.sessionStore.updateManaged(session.id, {
9814
9814
  status: session.status,
9815
9815
  completedAt: session.completedAt,
9816
- ...session.lastActivityAt != null && { lastActivityAt: session.lastActivityAt }
9816
+ ...session.lastActivityAt != null && { lastActivityAt: session.lastActivityAt },
9817
+ // The runner derives this from the first user message, on its own
9818
+ // copy of the session. Without mirroring it here SessionStore never
9819
+ // learns it, so a fresh live session is served with no sessionName
9820
+ // even though the registry has one — the name only appeared after a
9821
+ // restart rebuilt the row as a stub. Guarded so a runner that has not
9822
+ // derived one yet cannot blank a name set by enrichResumedSessionAsync.
9823
+ ...session.sessionName != null && { sessionName: session.sessionName }
9817
9824
  });
9818
9825
  this.managedSessionsRepo?.recordStatus(
9819
9826
  session.id,