mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
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:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user