multiclaws 0.4.24 → 0.4.25

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.
@@ -138,7 +138,21 @@ class OpenClawAgentExecutor {
138
138
  if (result !== null) {
139
139
  return result;
140
140
  }
141
- this.logger.info(`[a2a-adapter] poll attempt ${attempt}: session ${sessionKey} still running...`);
141
+ // Log details every 50 attempts to help diagnose stuck sessions
142
+ if (attempt % 50 === 0) {
143
+ const details = extractDetails(histResult);
144
+ const messages = (details?.messages ?? []);
145
+ const lastMsg = messages[messages.length - 1];
146
+ this.logger.info(`[a2a-adapter] poll attempt ${attempt}: session ${sessionKey} still running. ` +
147
+ `isComplete=${details?.isComplete}, status=${details?.status}, ` +
148
+ `msgCount=${messages.length}, lastRole=${lastMsg?.role}, ` +
149
+ `lastContentTypes=${JSON.stringify(Array.isArray(lastMsg?.content)
150
+ ? lastMsg.content.map((c) => c?.type)
151
+ : typeof lastMsg?.content)}`);
152
+ }
153
+ else {
154
+ this.logger.info(`[a2a-adapter] poll attempt ${attempt}: session ${sessionKey} still running...`);
155
+ }
142
156
  }
143
157
  catch (err) {
144
158
  this.logger.warn(`[a2a-adapter] poll attempt ${attempt} error: ${err instanceof Error ? err.message : err}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multiclaws",
3
- "version": "0.4.24",
3
+ "version": "0.4.25",
4
4
  "description": "MultiClaws plugin for OpenClaw collaboration via A2A protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",