Repository navigation
Commit 6bbcfbf
committed
fix: plan-agent tool-use — warning copy covers refusal case too
Field test surfaced a second failure mode the prior warning misframed:
when the planner refuses the request outright ("I'm sorry, but I cannot
assist…" — observed on `altimate-default` for a benign "add a YOLO-mode
toggle button" request), the trip-wire fires (plan + finish=stop + zero
tools) but the previous copy told the user the model "produced a plan
without first reading any files." It did not — it refused.
Reword the warning to be accurate for **both** failure modes without
pattern-matching refusal text (brittle, locale-specific):
- describe the observed symptom only ("stopped without calling any tools")
- enumerate three common causes (prompt-context plan / content-policy
refusal / under-specified request)
- offer three concrete recoveries (ask to investigate, rephrase, /model)
The trip-wire condition is unchanged; only the synthetic text the user
sees is updated. Telemetry event shape is unchanged.
This builds on d21f9b1 and supersedes the warning copy from that commit.1 parent d21f9b1 commit 6bbcfbf
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
0 commit comments