From 219bca168508e1ea5e91e8a9ce98338afeddfbd2 Mon Sep 17 00:00:00 2001 From: soryu Date: Sun, 18 Jan 2026 17:44:18 +0000 Subject: Add phaseguard flag for supervisor questions to wait indefinitely (#4) * Add phaseguard flag to supervisor ask command When phaseguard is enabled (--phaseguard flag), the supervisor's ask command will block indefinitely waiting for user response instead of timing out after the default 1 hour. This ensures that phase transitions requiring user confirmation cannot proceed without explicit approval. Changes: - Add phaseguard field to AskQuestionRequest in server handler - Add phaseguard field to AskQuestionRequest in API client - Add --phaseguard CLI flag to AskArgs - Update supervisor_ask() to accept phaseguard parameter - Modify ask_question handler to skip timeout check when phaseguard=true Co-Authored-By: Claude Opus 4.5 * Task completion checkpoint --------- Co-authored-by: Claude Opus 4.5 --- makima/src/daemon/cli/supervisor.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'makima/src/daemon/cli') diff --git a/makima/src/daemon/cli/supervisor.rs b/makima/src/daemon/cli/supervisor.rs index db30cf1..0e2da32 100644 --- a/makima/src/daemon/cli/supervisor.rs +++ b/makima/src/daemon/cli/supervisor.rs @@ -180,6 +180,10 @@ pub struct AskArgs { /// Timeout in seconds (default: 3600 = 1 hour) #[arg(long, default_value = "3600")] pub timeout: i32, + + /// Block indefinitely until user responds (no timeout) + #[arg(long, default_value = "false")] + pub phaseguard: bool, } /// Arguments for status command (get contract status including phase). -- cgit v1.2.3