From be8509be5cbdc57d1205fd67c603784773a32cb6 Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 17 Jan 2026 16:41:05 +0000 Subject: feat(frontend): Add Phase Guard toggle to AutopilotPanel Added the phase_guard toggle to the AutopilotPanel component, which allows users to enable/disable requiring confirmation before phase transitions. Changes: - Added phaseGuard and autonomousLoop fields to Contract interface in api.ts - Added phaseGuard field to UpdateContractRequest in api.ts - Added Phase Guard toggle UI in AutopilotPanel with similar styling to master - Toggle shows an 'active' badge when enabled - Connected toggle to contract update API The toggle appears below the autopilot control buttons and allows users to require confirmation before the supervisor advances to the next phase. Co-Authored-By: Claude Opus 4.5 --- makima/frontend/src/lib/api.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makima/frontend/src/lib/api.ts') diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index 7760365..9b725bc 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -1478,6 +1478,10 @@ export interface Contract { status: ContractStatus; /** Supervisor task ID for contract orchestration */ supervisorTaskId: string | null; + /** Whether tasks for this contract should run in autonomous loop mode */ + autonomousLoop: boolean; + /** Whether to wait for user confirmation before progressing to the next phase */ + phaseGuard: boolean; version: number; createdAt: string; updatedAt: string; @@ -1518,6 +1522,10 @@ export interface UpdateContractRequest { description?: string; phase?: ContractPhase; status?: ContractStatus; + /** Enable or disable autonomous loop mode */ + autonomousLoop?: boolean; + /** Enable or disable phase guard mode */ + phaseGuard?: boolean; version?: number; } -- cgit v1.2.3