@gakim-digital/dexter-bridge 0.11.22 → 0.11.23
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/package.json
CHANGED
|
@@ -239,6 +239,10 @@ export const CODEX_APP_SERVER_METHODS = {
|
|
|
239
239
|
skillsExtraRootsSet: 'skills/extraRoots/set',
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
+
// The first thread in a freshly woken hosted container loads Codex auth and
|
|
243
|
+
// config over the network and has taken longer than 30s.
|
|
244
|
+
const THREAD_START_TIMEOUT_MS = 90_000;
|
|
245
|
+
|
|
242
246
|
export const CODEX_APP_SERVER_NOTIFICATIONS = {
|
|
243
247
|
loginCompleted: 'account/login/completed',
|
|
244
248
|
itemStarted: 'item/started',
|
|
@@ -1240,7 +1244,7 @@ export function createCodexAppServerAdapter({
|
|
|
1240
1244
|
...(model ? { model } : {}),
|
|
1241
1245
|
modelProvider: params.modelProvider,
|
|
1242
1246
|
},
|
|
1243
|
-
{ timeoutMs:
|
|
1247
|
+
{ timeoutMs: THREAD_START_TIMEOUT_MS },
|
|
1244
1248
|
);
|
|
1245
1249
|
} catch {
|
|
1246
1250
|
response = null;
|
|
@@ -1248,7 +1252,7 @@ export function createCodexAppServerAdapter({
|
|
|
1248
1252
|
}
|
|
1249
1253
|
if (!response) {
|
|
1250
1254
|
response = await active.request(CODEX_APP_SERVER_METHODS.threadStart, params, {
|
|
1251
|
-
timeoutMs:
|
|
1255
|
+
timeoutMs: THREAD_START_TIMEOUT_MS,
|
|
1252
1256
|
});
|
|
1253
1257
|
}
|
|
1254
1258
|
const threadId = response?.thread?.id || response?.threadId || response?.id;
|