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.
- package/dist/src.js +7 -0
- 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 {
|