feat(FN-1453): fix mission autopilot progression and state refresh
- Fix mission autopilot slice activation when tasks complete - Fix state refresh in MissionManager to properly reflect autopilot status - Fix scheduler to correctly trigger autopilot progression events - Add unit tests for mission store autopilot state transitions - Add component tests for MissionManager autopilot toggle and state display - Add e2e tests for mission autopilot lifecycle (enable → task completion → slice progression) - Update documentation with autopilot state machine details
This commit is contained in:
@@ -795,7 +795,10 @@ export class Scheduler {
|
||||
}
|
||||
|
||||
const mission = missionStore.getMission(milestone.missionId);
|
||||
if (!mission || mission.status !== "active" || !mission.autoAdvance) {
|
||||
// Use autopilotEnabled as canonical, fall back to autoAdvance for backward compat
|
||||
const shouldAutoAdvance =
|
||||
mission?.autopilotEnabled === true || mission?.autoAdvance === true;
|
||||
if (!mission || mission.status !== "active" || !shouldAutoAdvance) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user