mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 07:20:44 +08:00
Steer WhatsApp ops short intents and clarify busy/CLI failures.
Inject English recipe hints for fiber/offline/excel/continue, ack the first queued follow-up, localize gate copy, and classify execManagedNe errors so agents stop blind retries. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
47fd83597e
commit
f1d025ed60
8 changed files with 323 additions and 11 deletions
|
|
@ -36,3 +36,10 @@ def test_enrich_mcp_scope_sql() -> None:
|
|||
assert out["required_scope"] == "sql:query"
|
||||
assert "fallback_tools" in out
|
||||
assert "ume_alarm_xlsx_report" in out["fallback_tools"]
|
||||
|
||||
|
||||
def test_enrich_exec_auth() -> None:
|
||||
from runtime.tools.tool_error_hints import enrich_exec_managed_ne_error
|
||||
|
||||
out = enrich_exec_managed_ne_error({"ok": False, "error": "authentication failed: Permission denied"})
|
||||
assert out["error_class"] == "auth"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue