ape-claw 0.1.8 → 0.1.9
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
|
@@ -309,6 +309,7 @@ async function sendToForgeAgent(text) {
|
|
|
309
309
|
message: text,
|
|
310
310
|
history: conversationHistory.slice(-20),
|
|
311
311
|
}),
|
|
312
|
+
signal: AbortSignal.timeout(150000),
|
|
312
313
|
});
|
|
313
314
|
}
|
|
314
315
|
|
|
@@ -388,7 +389,14 @@ async function sendToForgeAgent(text) {
|
|
|
388
389
|
} catch (err) {
|
|
389
390
|
stopPending();
|
|
390
391
|
if (bodyEl) {
|
|
391
|
-
|
|
392
|
+
let msg = buffer;
|
|
393
|
+
if (!msg) {
|
|
394
|
+
if (err.name === "TimeoutError") {
|
|
395
|
+
msg = "The agent is still working (browser/tool operations can take up to 2 minutes). Try again or check the OpenClaw gateway dashboard for results.";
|
|
396
|
+
} else {
|
|
397
|
+
msg = `Connection error: ${err.message}`;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
392
400
|
bodyEl.innerHTML = renderChatText(msg);
|
|
393
401
|
}
|
|
394
402
|
}
|