codex-relay 1.4.12 → 1.4.13

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.
Files changed (2) hide show
  1. package/dist/src.js +7 -0
  2. package/package.json +1 -1
package/dist/src.js CHANGED
@@ -182,6 +182,9 @@ var CodexAppServerClient = class {
182
182
  get appServerMode() {
183
183
  return this.activeMode;
184
184
  }
185
+ isThreadSubscribed(threadId) {
186
+ return this.subscribedThreadIds.has(threadId);
187
+ }
185
188
  initialize() {
186
189
  return this.ensureInitialized();
187
190
  }
@@ -3437,6 +3440,10 @@ async function startAppServerTurn(appServer, threadId, input) {
3437
3440
  }
3438
3441
  }
3439
3442
  async function resumeAppServerThreadIfNeeded(appServer, threadId, input, runtime) {
3443
+ if (appServer.isThreadSubscribed?.(threadId) === false) {
3444
+ await resumeAppServerThread(appServer, threadId, input, runtime);
3445
+ return;
3446
+ }
3440
3447
  if (typeof appServer.readThread !== "function") return;
3441
3448
  let thread;
3442
3449
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-relay",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "Local Codex Relay CLI bridge for the Codex Relay mobile app.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {