Improve command understanding with bigger wording banks; tested

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 05:43:03 +09:00
co-authored by Claude Opus 5.5
parent f1f63d0794
commit 38546b0ca3
36 changed files with 3820 additions and 271 deletions
+2
View File
@@ -111,6 +111,8 @@ def action_ok(expect, got):
"""expect: 'none', 'search', 'go_to p3', 'end', ... alternatives split by ' | '."""
for alt in expect.split(" | "):
alt = alt.strip()
if alt == got:
return True # "forget", "point", "limit" ... as said
if got == "none" and refused(alt):
return True # the reason the fingers can't take it
if alt == "none" and got in ("none", "chat", "status"):