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.
This commit is contained in:
Jinwoo Hong
2026-11-15 16:31:35 -05:00
committed by GitHub
parent 69cfecdf70
commit 9bebd77c77
2 changed files with 3 additions and 4 deletions
@@ -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,
@@ -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'
}