release: prepare 1.24.2 identity and delivery integrity candidate

This commit is contained in:
Agent Workbench Dev
2026-11-03 12:20:50 +08:00
parent 983af1416e
commit 1153e19a4c
16 changed files with 108 additions and 58 deletions
+2 -1
View File
@@ -83,6 +83,7 @@ export function DiffView({ change }: { change: Change }) {
}
export function ToolRow({ event, selected = false, onSelect }: { event: ToolEvent; selected?: boolean; onSelect: () => void }) {
const phase = event.phase;
const label = event.kind === 'model' && event.diagnostic?.kind === 'model_identity' ? event.diagnostic.title : event.label;
const Symbol = ['waiting', 'unknown', 'unverified', 'queued', 'validating'].includes(phase) ? ShieldQuestion : ['running', 'retrying'].includes(phase) ? LoaderCircle
: ['failed', 'denied', 'interrupted'].includes(phase) ? XCircle : Check;
const detail = event.tool === 'run_command' ? String(event.input?.command || '')
@@ -92,7 +93,7 @@ export function ToolRow({ event, selected = false, onSelect }: { event: ToolEven
: event.tool === 'inspect_session' ? '会话 · 错误 · 当前状态' : event.kind === 'model' ? '模型服务' + (event.attempts && event.attempts > 1 ? ' · 第 ' + event.attempts + ' 次' : '') : '';
return <button type="button" onClick={onSelect} className={'tool-row ' + (selected ? 'selected ' : '') + 'tool-' + phase}>
<span className="tool-symbol"><Symbol size={14} className={['running', 'retrying'].includes(phase) ? 'spin' : ''} /></span>
<span className="tool-name"><strong>{event.label}</strong>{detail && <span>{detail}</span>}</span>
<span className="tool-name"><strong>{label}</strong>{detail && <span>{detail}</span>}</span>
<span className="tool-end">{event.durationMs !== undefined ? (event.durationMs / 1000).toFixed(1) + 's' : phase === 'waiting' ? '待确认' : '…'}<ChevronRight size={13} /></span>
</button>;
}