mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
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:
parent
f1d025ed60
commit
d3f621b58b
6 changed files with 130 additions and 42 deletions
|
|
@ -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}]`。"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue