diff options
| author | soryu <soryu@soryu.co> | 2026-01-18 17:44:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 17:44:18 +0000 |
| commit | 219bca168508e1ea5e91e8a9ce98338afeddfbd2 (patch) | |
| tree | a50e801ff8801dffc2c76d5a067dd019f360a34e /makima/src/bin/makima.rs | |
| parent | 5b1f886db9b92722c1b4f1524f09456febc824e0 (diff) | |
| download | soryu-219bca168508e1ea5e91e8a9ce98338afeddfbd2.tar.gz soryu-219bca168508e1ea5e91e8a9ce98338afeddfbd2.zip | |
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 <noreply@anthropic.com>
* Task completion checkpoint
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/bin/makima.rs')
| -rw-r--r-- | makima/src/bin/makima.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makima/src/bin/makima.rs b/makima/src/bin/makima.rs index 37dc81a..45dd5b7 100644 --- a/makima/src/bin/makima.rs +++ b/makima/src/bin/makima.rs @@ -350,7 +350,7 @@ async fn run_supervisor( .map(|c| c.split(',').map(|s| s.trim().to_string()).collect()) .unwrap_or_default(); let result = client - .supervisor_ask(&args.question, choices, args.context, args.timeout) + .supervisor_ask(&args.question, choices, args.context, args.timeout, args.phaseguard) .await?; println!("{}", serde_json::to_string(&result.0)?); } |
