improve runtest, optimize CI batching (#210)

This commit is contained in:
David Blass
2026-02-01 21:48:53 +00:00
committed by pullfrog[bot]
parent 2b3bd97b86
commit 18ba8e5fd0
19 changed files with 1534 additions and 514 deletions
+5 -2
View File
@@ -199,9 +199,12 @@ export const cursor = agent({
log.warning("Tool call failed");
} else {
// log successful tool result so it appears in output
const text = result?.content?.[0]?.text?.text;
// handle both formats: { text: string } or { text: { text: string } }
const contentItem = result?.content?.[0];
const textValue = contentItem?.text;
const text = typeof textValue === "string" ? textValue : textValue?.text;
if (text) {
console.log(text);
log.debug(`tool output: ${text}`);
}
}
}