refactor(FN-1353): simplify mission autopilot to single toggle

- Deprecate autoAdvance field in favor of autopilotEnabled as the sole control
- Remove autoAdvance guard logic from MissionAutopilot engine class
- Simplify MissionManager UI to use single autopilot toggle with visual state indicator
- Update MissionAutopilot tests to use autopilotEnabled instead of autoAdvance
- Update MissionManager component tests for simplified UI
- Update AGENTS.md documentation to reflect the simplified autopilot model
This commit is contained in:
gsxdsm
2026-04-09 13:45:19 -07:00
parent 4ef5d73ba1
commit e26321790c
7 changed files with 76 additions and 244 deletions

View File

@@ -116,7 +116,11 @@ export interface Mission {
status: MissionStatus;
/** State of the AI specification interview process */
interviewState: InterviewState;
/** When true, automatically activate the next pending slice when current slice completes */
/**
* @deprecated Superseded by `autopilotEnabled`. Kept for backward compatibility
* with existing mission data. Autopilot now always auto-advances slices when
* enabled and watching.
*/
autoAdvance?: boolean;
/** When true, enable autopilot monitoring system for this mission */
autopilotEnabled?: boolean;