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.
- package/dist/service/a2a-adapter.js +15 -1
- package/package.json +1 -1
|
@@ -138,7 +138,21 @@ class OpenClawAgentExecutor {
|
|
|
138
138
|
if (result !== null) {
|
|
139
139
|
return result;
|
|
140
140
|
}
|
|
141
|
-
|
|
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}`);
|