fix(codex,web): preserve late command result identity and timing (#2239)

This commit is contained in:
Ananovo
2026-10-29 22:12:27 +08:00
committed by GitHub
parent 9384ce031b
commit f29be07bb9
18 changed files with 405 additions and 8 deletions
@@ -25,7 +25,8 @@ export function getToolGroupTiming(tools: ToolCallBlock[], now: number): {
.filter((tool) => tool.tool.state !== 'pending')
.map((tool) => tool.tool.startedAt ?? tool.tool.createdAt)
.filter((value): value is number => Number.isFinite(value))
const startedAt = startedValues.length > 0 ? Math.min(...startedValues) : null
const startedAt = !tools.some(tool => tool.tool.startUnavailable) && startedValues.length > 0
? Math.min(...startedValues) : null
const running = tools.some((tool) => tool.tool.state === 'running')
const allFinished = tools.length > 0 && tools.every((tool) => tool.tool.state === 'completed' || tool.tool.state === 'error')
const completedValues = allFinished