diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 6bf5bc2dc..4318e1463 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -641,11 +641,11 @@ function normalizeAgentRuntimeState( return { ...state, currentGoal: state.currentGoal ?? state.currentTask ?? '', - waitingOn: - state.waitingOn ?? agentRuntimeWaitingOnFromPhase(state.phase), + waitingOn: state.waitingOn ?? agentRuntimeWaitingOnFromPhase(state.phase), nextStep: state.nextStep ?? agentRuntimeNextStepFromPhase(state.phase), loopIteration: state.loopIteration ?? previous?.loopIteration ?? 0, - maxLoopIterations: state.maxLoopIterations ?? previous?.maxLoopIterations ?? 3, + maxLoopIterations: + state.maxLoopIterations ?? previous?.maxLoopIterations ?? 3, toolActionBudget: state.toolActionBudget ?? previous?.toolActionBudget ?? 3, planSteps: normalizeAgentRuntimePlanSteps(state, previous), activePlanStepIndex: normalizeAgentRuntimeActivePlanStepIndex( @@ -653,24 +653,26 @@ function normalizeAgentRuntimeState( previous, ), recentToolCalls: state.recentToolCalls ?? previous?.recentToolCalls ?? [], - toolPolicy: state.toolPolicy ?? previous?.toolPolicy ?? { - allowedTools: state.allowedTools ?? [], - autoTools: [], - confirmTools: [], - deniedTools: [], - updatedAt: 0, - }, - taskQueue: state.taskQueue ?? previous?.taskQueue ?? { - total: 0, - pending: 0, - running: 0, - waitingForConfirmation: 0, - cancelled: 0, - completed: 0, - failed: 0, - latestRunId: null, - updatedAt: 0, - }, + toolPolicy: state.toolPolicy ?? + previous?.toolPolicy ?? { + allowedTools: state.allowedTools ?? [], + autoTools: [], + confirmTools: [], + deniedTools: [], + updatedAt: 0, + }, + taskQueue: state.taskQueue ?? + previous?.taskQueue ?? { + total: 0, + pending: 0, + running: 0, + waitingForConfirmation: 0, + cancelled: 0, + completed: 0, + failed: 0, + latestRunId: null, + updatedAt: 0, + }, recentEvents: state.recentEvents ?? previous?.recentEvents ?? [], recentTasks: state.recentTasks ?? previous?.recentTasks ?? [], }; @@ -752,7 +754,8 @@ function agentRuntimeStartStatus(result: AgentRuntimeResult) { function formatAgentRuntimeEvent(event: AgentRuntimeEventRecord) { const summary = event.summary || event.detail || event.runId; - const detail = event.detail && event.detail !== summary ? ` · ${event.detail}` : ''; + const detail = + event.detail && event.detail !== summary ? ` · ${event.detail}` : ''; return `${event.eventType} · ${event.status} / ${event.phase} · ${summary}${detail}`; } @@ -872,7 +875,11 @@ function AgentRuntimeStatusPanel({
{error}
{onRefreshRuntime ? ( -