-
{`task: ${runtime.taskId} · ${delegationSource ?? runtime.source}`}
- {runtime.runId ?
{`run: ${runtime.runId}`} : null}
- {currentGoal ?
{`当前目标:${currentGoal}`}
: null}
- {runtime.currentTask ?
{runtime.currentTask}
: null}
-
{runtime.currentAction}
- {waitingOn ?
{`等待:${waitingOn}`} : null}
- {nextStep ?
{`下一步:${nextStep}`} : null}
- {pendingToolAction ? (
-
- {`${
- runtime.phase === 'needs-reconciliation'
- ? '待核对动作'
- : '待确认动作'
- }:${pendingToolAction.tool}${
- pendingToolAction.inputSummary
- ? ` · ${pendingToolAction.inputSummary}`
- : ''
- }`}
-
- ) : runtime.status === 'waiting-for-confirmation' ? (
-
待确认动作摘要缺失,请刷新状态
- ) : null}
- {loopProgress ?
{loopProgress} : null}
- {taskQueueSummary ?
{taskQueueSummary} : null}
- {runtime.contextUsage ? (
-
- {`上下文:预计 ${runtime.contextUsage.estimatedInputTokens}/${runtime.contextUsage.autoCompactTokenLimit || '-'} tokens · 最近实际 ${runtime.contextUsage.lastPromptTokens ?? '-'}/${runtime.contextUsage.lastCompletionTokens ?? '-'} · 压缩 revision ${runtime.contextUsage.compactionRevision}`}
-
- ) : null}
- {toolPolicy ? (
-
- {`工具策略:auto ${toolPolicy.autoTools.length} · confirm ${toolPolicy.confirmTools.length} · deny ${toolPolicy.deniedTools.length}`}
- {toolPolicy.deniedTools.length > 0
- ? ` · deny: ${toolPolicy.deniedTools.slice(0, 3).join(', ')}`
- : ''}
- {toolPolicy.confirmTools.length > 0
- ? ` · confirm: ${toolPolicy.confirmTools.slice(0, 3).join(', ')}`
- : ''}
-
- ) : null}
- {hasPersistentPlan ? (
-
- 计划进度
- {(runtime.planRevision ?? 0) > 0 ? (
- {`计划修订号:${runtime.planRevision}`}
- ) : null}
- {runtime.planExplanation ? (
- {`计划说明:${runtime.planExplanation}`}
- ) : null}
- {planSteps.map((step, index) => (
-
- {formatAgentRuntimePlanStep(step, index)}
-
- ))}
-
- ) : planItems.length > 0 ? (
-
- {planItems.map((item, index) => (
- - {item}
- ))}
-
- ) : null}
- {observations.length > 0 ? (
-
- {observations.map((item, index) => (
-
- {item}
-
- ))}
-
- ) : null}
- {recentEvents.length > 0 ? (
-
- 最近事件
- {recentEvents.map((event, index) => (
-
- {formatAgentRuntimeEvent(event)}
-
- ))}
- {hiddenRecentEventCount > 0 ? (
-
- ) : null}
-
- ) : null}
- {recentToolCalls.length > 0 ? (
-
- 最近动作
- {recentToolCalls.map((toolCall, index) => (
-
- {`${toolCall.tool} · ${toolCall.status} · ${toolCall.summary}`}
- {toolCall.inputSummary
- ? ` · 目标:${toolCall.inputSummary}`
- : ''}
- {toolCall.reason ? ` · ${toolCall.reason}` : ''}
-
- ))}
-
- ) : null}
- {recentTasks.length > 0 ? (
-
- 最近任务
- {recentTasks.map((task) => (
-
- {formatAgentRecentRuntimeTask(task)}
-
- ))}
-
- ) : null}
- {runtime.error ? (
-
- {projectRuntimeVisibleError(
- runtime.error,
- projectProfessionalAgentLabel(runtime.agentId),
- true,
- )}
-
- ) : null}
- {error ? (
-
- {projectRuntimeVisibleError(
- error,
- projectProfessionalAgentLabel(runtime.agentId),
- true,
- )}
-
- ) : null}
-
- )}
-