Skip to content

Commit dacb4ad

Browse files
committed
empty parts
1 parent e89b6af commit dacb4ad

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

agents/claude-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
const sessionCache = new Map<string, string>();
1313

1414
export const models: string[] = [
15-
// "claude-sonnet-4-5",
15+
"claude-sonnet-4-5",
1616
// "claude-sonnet-4",
1717
// "claude-opus-4-1",
1818
// "claude-3-5-haiku",

agents/codex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const codexClient = new Codex();
2222
const threadCache = new Map<string, Thread>();
2323

2424
export const models: string[] = [
25-
// "gpt-5-codex",
26-
// "gpt-5.1-codex",
25+
"gpt-5-codex",
26+
"gpt-5.1-codex",
2727
// "gpt-5",
2828
// "o3",
2929
// "o4-mini"

agents/opencode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,14 @@ function logError(value: unknown, options: AgentRunOptions | undefined): void {
120120
}
121121

122122
function logPromptResult(
123-
result: { info: AssistantMessage; parts: Part[] },
123+
result: { info: AssistantMessage; parts?: Part[] },
124124
options: AgentRunOptions | undefined,
125125
logs?: string[],
126126
): void {
127127
logJson({ info: result.info }, options);
128+
if (result.parts?.length) {
129+
return;
130+
}
128131
if (Array.isArray(result.parts)) {
129132
result.parts.forEach((part) => logJson(part, options));
130133
} else {

0 commit comments

Comments
 (0)