Cache inventory MCP lists and accept YES as WhatsApp confirm.

Extend short TTL reuse to listManagedNe/queryUmeNeInventory to cut list self-loops, and treat short YES/continue as confirmation when a token is pending.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-10 22:56:50 +08:00
parent f1d025ed60
commit d3f621b58b
6 changed files with 130 additions and 42 deletions

View file

@ -1204,7 +1204,7 @@ def process_inbound_payload(payload: dict[str, Any]) -> dict[str, Any]:
if channel_is_wa:
reply = (
f"This action needs confirmation. "
f"Reply `confirm {token}` or include `[confirm:{token}]`."
f"Reply `YES` / `confirm` or `confirm {token}` / `[confirm:{token}]`."
)
else:
reply = f"该动作需要确认。请回复 `confirm {token}` 或包含 `[confirm:{token}]`。"