From e9c6066ba40e065c19488619a12b34619e564021 Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 31 May 2026 15:41:25 +0530 Subject: [PATCH] refactor(inspect-ui): rename Step.action to Step.next_action Aligns the SPA type and consumers with the trace schema rename. The StepSummary.action_kind/action_label labels stay unchanged since they are derived labels, not the raw next-action. --- inspect-ui/src/panels/ActionList.tsx | 4 ++-- inspect-ui/src/routes/RunDetail.tsx | 2 +- inspect-ui/src/types.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/inspect-ui/src/panels/ActionList.tsx b/inspect-ui/src/panels/ActionList.tsx index 9e6bbc1..66d2e14 100644 --- a/inspect-ui/src/panels/ActionList.tsx +++ b/inspect-ui/src/panels/ActionList.tsx @@ -111,7 +111,7 @@ function renderTarget(target: string, isTag: boolean) { } function contentTextForStep(step: Step): string { - const action = step.action; + const action = step.next_action; if (!action) { return ""; } @@ -140,7 +140,7 @@ function truncateForInline(text: string): string { } function positionTextForStep(step: Step): string | null { - const action = step.action; + const action = step.next_action; if (!action) { return null; } diff --git a/inspect-ui/src/routes/RunDetail.tsx b/inspect-ui/src/routes/RunDetail.tsx index 055d39c..4028ee8 100644 --- a/inspect-ui/src/routes/RunDetail.tsx +++ b/inspect-ui/src/routes/RunDetail.tsx @@ -127,7 +127,7 @@ export default function RunDetail() { { id: "screenshot", label: "Screenshot", - content: , + content: , }, { id: "snapshots", diff --git a/inspect-ui/src/types.ts b/inspect-ui/src/types.ts index 106c060..bab0ade 100644 --- a/inspect-ui/src/types.ts +++ b/inspect-ui/src/types.ts @@ -125,7 +125,8 @@ export interface Step { timestamp: string; screen?: string; snapshots?: Record; - action?: Action; + // next_action is the action chosen for the next iteration based on observing this step. + next_action?: Action; exceptions?: Exception[]; violations?: string[]; hierarchy?: Hierarchy;