mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-24 03:37:51 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user