Fix branching and add move_arm builtin

- Branching: mark source step as completed when jumping to prevent revisiting
- Add move_arm as builtin for arm control
This commit is contained in:
2026-03-21 19:09:26 -04:00
parent 4a9abf4ff1
commit 31d2173703
2 changed files with 28 additions and 0 deletions

View File

@@ -600,6 +600,13 @@ export const WizardInterface = React.memo(function WizardInterface({
setCompletedActionsCount(0);
setCurrentStepIndex(targetIndex);
setLastResponse(null);
// Mark source step as completed so it won't be revisited
setCompletedSteps((prev) => {
const next = new Set(prev);
next.add(currentStepIndex);
return next;
});
return;
}
}