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
View File
@@ -246,6 +246,11 @@ const messageHandlers: {
} else if (item.type === "mcp_tool_call") {
if (item.status === "failed" && item.error) {
log.warning(`MCP tool call failed: ${item.error.message}`);
} else if ((item as any).output) {
// log successful MCP tool call output so it appears in captured output
const output = (item as any).output;
const outputStr = typeof output === "string" ? output : JSON.stringify(output);
log.debug(`tool output: ${outputStr}`);
}
} else if (item.type === "reasoning") {
// Display reasoning in a human-readable format
+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}`);
}
}
}
+5
View File
@@ -126,6 +126,11 @@ const messageHandlers = {
const errorMsg =
typeof event.output === "string" ? event.output : JSON.stringify(event.output);
log.warning(`Tool call failed: ${errorMsg}`);
} else if (event.output) {
// log successful tool result so it appears in output
const outputStr =
typeof event.output === "string" ? event.output : JSON.stringify(event.output);
log.debug(`tool output: ${outputStr}`);
}
},
result: async (event: GeminiResultEvent) => {
+4
View File
@@ -498,6 +498,10 @@ const messageHandlers = {
if (status === "error") {
const errorMsg = typeof output === "string" ? output : JSON.stringify(output);
log.error(`» ❌ tool call failed: ${errorMsg}`);
} else if (output) {
// log successful tool result so it appears in captured output
const outputStr = typeof output === "string" ? output : JSON.stringify(output);
log.debug(`tool output: ${outputStr}`);
}
},
result: async (event: OpenCodeResultEvent) => {