Skip to content

Commit 07393a3

Browse files
fix(codex): preserve streamed command output
1 parent 6b06445 commit 07393a3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Docs: https://docs.openclaw.ai
2727

2828
### Fixes
2929

30+
- Codex app-server: preserve streamed native command output in mirrored transcripts and trajectory exports when final snapshots omit aggregated output. (#83200) Thanks @rozmiarD.
3031
- Feishu: return bound subagent delivery origins from session thread setup so Feishu subagent completions route back to the same DM or topic. (#83190) Thanks @100menotu001.
3132
- CLI/update: tailor post-update Gateway recovery hints by platform, showing systemd, LaunchAgent, Scheduled Task, or generic service-manager guidance instead of macOS-only recovery text. (#83096) Thanks @rubencu.
3233
- Plugins: apply a default 15-second timeout to legacy `before_agent_start` hooks so hung plugin handlers no longer block agent startup. Fixes #48534. (#83136) Thanks @therahul-yo.

extensions/codex/src/app-server/event-projector.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ export class CodexAppServerEventProjector {
10011001
}
10021002
this.afterToolCallObservedItemIds.add(item.id);
10031003
const result = itemToolResult(item).result;
1004-
const error = itemToolError(item, status);
1004+
const error = itemToolError(item, status, this.toolResultOutputTextByItem);
10051005
const startedAt =
10061006
typeof item.durationMs === "number" ? Date.now() - Math.max(0, item.durationMs) : undefined;
10071007
const hookParams = {
@@ -1687,14 +1687,15 @@ function itemFileChanges(item: CodexThreadItem): Array<{ path: string; kind: str
16871687
function itemToolError(
16881688
item: CodexThreadItem,
16891689
status: ReturnType<typeof itemStatus>,
1690+
outputTextByItem?: ReadonlyMap<string, string>,
16901691
): string | undefined {
16911692
if (status === "blocked") {
16921693
return "codex native tool blocked";
16931694
}
16941695
if (status !== "failed") {
16951696
return undefined;
16961697
}
1697-
return itemOutputText(item) ?? "codex native tool failed";
1698+
return itemOutputText(item, outputTextByItem) ?? "codex native tool failed";
16981699
}
16991700

17001701
function itemMeta(

0 commit comments

Comments
 (0)