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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ape-claw",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "ApeChain bridge and NFT execution CLI with telemetry for OpenClaw agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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
- const msg = buffer || `Connection error: ${err.message}`;
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
  }