Skip to content

Commit c3f698d

Browse files
committed
fix(output-window): change step indexing to be 0-based with Init as step 0
Update step indices to be 0-based to maintain consistency with Init step being 0. This aligns with the logical flow where Init is the starting point.
1 parent 3e735ec commit c3f698d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/tui/routes/workflow/components/output/output-window.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export function OutputWindow(props: OutputWindowProps) {
327327
name: currentCleanName,
328328
nextStepName: nextCleanName,
329329
description: nextPrompt?.label ?? "",
330-
index: idx + 1,
330+
index: idx, // 0-based: Init = step 0
331331
total: inputState.queuedPrompts.length + 1, // +1 for Init step
332332
}
333333
}
@@ -348,7 +348,7 @@ export function OutputWindow(props: OutputWindowProps) {
348348
mode: "passive",
349349
chainedStep: {
350350
name: cleanName,
351-
index: idx + 1,
351+
index: idx, // 0-based: Init = step 0
352352
total: inputState.queuedPrompts.length + 1, // +1 for Init step
353353
},
354354
}

0 commit comments

Comments
 (0)