@threadbase-sh/streamer 1.55.1 → 1.55.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
@@ -12114,10 +12114,7 @@ function createLiveSessionOptions(deps) {
12114
12114
  },
12115
12115
  onLiveQuestionGone: (sessionId) => {
12116
12116
  deps.pendingQuestionKey.delete(sessionId);
12117
- const pq = deps.pendingQuestions.get(sessionId);
12118
- if (pq?.toolUseId.startsWith("screen:")) {
12119
- deps.cancelPendingQuestion(sessionId);
12120
- }
12117
+ deps.cancelPendingQuestion(sessionId);
12121
12118
  },
12122
12119
  onReady: (session) => {
12123
12120
  const resp = deps.sessionStore.get(session.id, deps.ptyAttachedIds());
@@ -16067,6 +16064,19 @@ var StreamerServer = class {
16067
16064
  ciphertext: sealed.ciphertext,
16068
16065
  nonce: sealed.nonce,
16069
16066
  ephemeralPublicKey: sealed.ephemeralPublicKey,
16067
+ // Advertises, does not dictate. This is what the server believes its
16068
+ // public address to be; the address the client talks to is the one its
16069
+ // user typed or scanned. Do not build anything on the assumption that a
16070
+ // client adopts this.
16071
+ //
16072
+ // Mobile used to resolve its server address as `publicUrl ?? typedUrl`,
16073
+ // so this field silently replaced what the user entered — and since the
16074
+ // reply is unauthenticated before E2EE, one response could relocate a
16075
+ // device permanently (TB-S-13). Fixed client-side in threadbase-mobile#720;
16076
+ // still sent, now recorded rather than applied.
16077
+ //
16078
+ // Released builds that predate that fix DO still adopt it, so changing
16079
+ // this value moves where old devices talk. It is not a free field.
16070
16080
  publicUrl: this.publicUrl,
16071
16081
  machineName: (0, import_os14.hostname)(),
16072
16082
  ...device && {