From 9bebd77c77d2c3d77975fe9074a395cfc993db5b Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:31:35 -0500 Subject: [PATCH] fix: repair the main build after the Codex async question module move (#42818) Point journal-sql-status-items at the moved codex-async-question-input module (#42620 moved it before #42459 landed with the old path) and inline a one-use callId so structured-agent-session-projection.ts is back under the 300-line limit. No behavior change. --- .../agent-session-journal/journal-sql-status-items.ts | 2 +- .../view/structured-agent-session-projection.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/native-chat/agent-session-journal/journal-sql-status-items.ts b/src/main/native-chat/agent-session-journal/journal-sql-status-items.ts index 0bdc25e1b4a..5436199e4dd 100644 --- a/src/main/native-chat/agent-session-journal/journal-sql-status-items.ts +++ b/src/main/native-chat/agent-session-journal/journal-sql-status-items.ts @@ -1,5 +1,5 @@ import type { SqliteRow } from '../../sqlite/sqlite-statement' -import { CODEX_ASYNC_QUESTION_TOOL } from '../../../shared/codex-async-question-input' +import { CODEX_ASYNC_QUESTION_TOOL } from '../../../shared/native-chat/input/questions/codex-async-question-input' import { AGENT_SESSION_ITEM_WIRE_VERSION } from '../agent-session-wire/publication/history/agent-session-item-presentation-contract' import { readJournalDomainStopStates, diff --git a/src/shared/agent-session/view/structured-agent-session-projection.ts b/src/shared/agent-session/view/structured-agent-session-projection.ts index 7181f441ed6..f67d6a31f8e 100644 --- a/src/shared/agent-session/view/structured-agent-session-projection.ts +++ b/src/shared/agent-session/view/structured-agent-session-projection.ts @@ -82,9 +82,8 @@ function itemBlocks(item: AgentJournalRenderItem): { if (isStructuredAgentSessionToolAction(body)) { const call = structuredAgentSessionToolCallBlock(body, item.itemId) // Call/result share one row; use its call ID to pair them. - const { callId } = call if (body.kind === 'diff') { - return { role: 'assistant', blocks: [call, toolResult(item, body.patch, callId)] } + return { role: 'assistant', blocks: [call, toolResult(item, body.patch, call.callId)] } } return { role: 'assistant', @@ -93,7 +92,7 @@ function itemBlocks(item: AgentJournalRenderItem): { ...(body.output ? [ { - ...toolResult(item, body.output, callId), + ...toolResult(item, body.output, call.callId), // Interrupted output is not an error reported by the tool. isError: agentJournalToolCallLifecycle(body) === 'failed' }