Remove redundant 'No plan exists' message from plan_read output

The UI already shows 'empty' via print_plan_compact, so returning an
empty string avoids duplicate output.
This commit is contained in:
Dhanji R. Prasanna
2026-02-02 17:19:01 +11:00
parent e332109273
commit 263a838d31
6 changed files with 634 additions and 2118 deletions

View File

@@ -451,8 +451,9 @@ items:
let read_call = make_tool_call("plan_read", serde_json::json!({}));
let result = agent.execute_tool(&read_call).await.unwrap();
assert!(result.contains("No plan") || result.to_lowercase().contains("no plan"),
"Should indicate empty: {}", result);
// Empty string is returned when no plan exists (UI already shows "empty")
assert!(result.is_empty() || result.contains("No plan"),
"Should be empty or indicate no plan: {}", result);
}
/// Test Plan approval