diff options
| author | soryu <soryu@soryu.co> | 2026-01-18 17:19:10 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-18 17:19:10 +0000 |
| commit | ea71a1d55a0036b0452e8b2b4f95022b19274343 (patch) | |
| tree | 38088d2dc905ff789099888d091aa3c48ee2f4af /makima/src/bin | |
| parent | f84a7f2d820f6f432be2b1d78d6bf833b5b19380 (diff) | |
| download | soryu-ea71a1d55a0036b0452e8b2b4f95022b19274343.tar.gz soryu-ea71a1d55a0036b0452e8b2b4f95022b19274343.zip | |
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>
Diffstat (limited to 'makima/src/bin')
| -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 47e627b..df85c3f 100644 --- a/makima/src/bin/makima.rs +++ b/makima/src/bin/makima.rs @@ -349,7 +349,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)?); } |
