mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
Cut ops turn idle loops and WhatsApp progress spam.
Align tool validation with playbook recipes, add turn checklist/idle guard, and cap interim WA status ticks so multi-hop CLI turns stop flooding the group. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c3f3992a51
commit
76f62d8fac
12 changed files with 944 additions and 43 deletions
|
|
@ -162,7 +162,16 @@ def build_ops_short_intent_hint(*, intent: str, lang: str = "en") -> str:
|
|||
if not pair:
|
||||
return ""
|
||||
en, zh = pair
|
||||
return zh if str(lang or "").strip().lower().startswith("zh") else en
|
||||
base = zh if str(lang or "").strip().lower().startswith("zh") else en
|
||||
try:
|
||||
from runtime.tools.playbook_contracts import build_turn_checklist
|
||||
|
||||
checklist = build_turn_checklist(intent=key, lang=lang)
|
||||
if checklist:
|
||||
return f"{base}\n{checklist}".strip()
|
||||
except Exception:
|
||||
pass
|
||||
return base
|
||||
|
||||
|
||||
def maybe_ops_short_intent_system_hint(*, text: str, lang: str = "en") -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue