feat(ext): display step index in event card

This commit is contained in:
Simon
2026-01-21 17:14:51 +08:00
parent 908ffae77c
commit 189e9f3d39
2 changed files with 4 additions and 1 deletions

View File

@@ -163,7 +163,9 @@ export function EventCard({ event }: { event: HistoricalEvent }) {
if (event.type === 'step') {
return (
<div className="rounded-lg border-l-2 border-l-blue-500/50 border bg-muted/40 p-2.5">
<div className="text-[11px] font-semibold text-foreground tracking-wide mb-2">Step</div>
<div className="text-[11px] font-semibold text-foreground tracking-wide mb-2">
Step #{event.stepIndex! + 1}
</div>
{/* Reflection */}
{event.reflection && <ReflectionSection reflection={event.reflection} />}

View File

@@ -57,6 +57,7 @@ export type AgentActivity =
export interface HistoricalEvent {
type: 'step' | 'observation' | 'user_takeover' | 'error'
// For 'step' type
stepIndex?: number
reflection?: {
evaluation_previous_goal?: string
memory?: string