Chore: plan mode do not include free form question and always include isOther (#10210)

We should never ask a freeform question when planning and we should
always include isOther as an escape hatch.
This commit is contained in:
Shijie Rao
2026-01-30 01:19:24 -08:00
committed by GitHub
parent c0cad80668
commit a0ccef9d5c
6 changed files with 18 additions and 17 deletions

View File

@@ -94,7 +94,6 @@ async fn request_user_input_round_trip_resolves_pending() -> anyhow::Result<()>
"id": "confirm_path",
"header": "Confirm",
"question": "Proceed with the plan?",
"isOther": false,
"options": [{
"label": "Yes (Recommended)",
"description": "Continue the current plan."
@@ -153,6 +152,7 @@ async fn request_user_input_round_trip_resolves_pending() -> anyhow::Result<()>
.await;
assert_eq!(request.call_id, call_id);
assert_eq!(request.questions.len(), 1);
assert_eq!(request.questions[0].is_other, true);
let mut answers = HashMap::new();
answers.insert(
@@ -214,7 +214,6 @@ where
"id": "confirm_path",
"header": "Confirm",
"question": "Proceed with the plan?",
"isOther": false,
"options": [{
"label": "Yes (Recommended)",
"description": "Continue the current plan."