Skip to content

Commit 0781b46

Browse files
Merge branch 'main' into tmd/add-log-summaries-and-token-usage
2 parents 0303fcb + a69a3fa commit 0781b46

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/compare-models.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
description: opencode:opencode/claude-sonnet-4-5
1515
type: boolean
1616
default: false
17+
opencode_opencode_big_pickle:
18+
description: opencode:opencode/big-pickle
19+
type: boolean
20+
default: false
1721
claude_code_claude_sonnet_4_5:
1822
description: claude-code:claude-sonnet-4-5
1923
type: boolean

agents/opencode.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const models: string[] = [
3838
// "opencode/gpt-5",
3939
"opencode/gpt-5-codex",
4040
"opencode/claude-sonnet-4-5",
41+
"opencode/big-pickle",
4142
// "opencode/claude-sonnet-4",
4243
// "opencode/claude-3-5-haiku",
4344
// "opencode/claude-opus-4-1",
@@ -123,8 +124,19 @@ function logPromptResult(
123124
options: AgentRunOptions | undefined,
124125
logs?: string[],
125126
): void {
126-
logJson({ info: result.info }, options, logs);
127-
result.parts.forEach((part) => logJson(part, options, logs));
127+
logJson({ info: result.info }, options);
128+
if (Array.isArray(result.parts)) {
129+
result.parts.forEach((part) => logJson(part, options));
130+
} else {
131+
logError(
132+
{
133+
error: "invalid_parts_array",
134+
message: `Expected 'parts' to be an array, but got ${typeof result.parts}`,
135+
receivedResponse: result,
136+
},
137+
options,
138+
);
139+
}
128140
}
129141

130142
function serializeError(error: unknown): Record<string, unknown> {

0 commit comments

Comments
 (0)