Give while holding: any request form gives the held thing, put down / put back / reach read right, a person's destination never driven to; Command box parse gated the same way

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 13:41:06 +09:00
co-authored by Claude Opus 5.5
parent 91f448a7ad
commit 5f0e929511
2 changed files with 74 additions and 1 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ def _held_parse(body, markers):
bring it, else the dialog's To; then put it on a table, hand it over or keep holding it."""
from assistant import brain
from tasks import fetch
held, text = fetch.held_name(), body.text
held, text = fetch.held_name(), brain.give_clause(body.text) # not where the person it is for goes
m, t = brain._mentions(text, markers), brain._norm(text)
if isinstance(m.get("source"), dict) and not brain.held_command(text): # "take the bottle from p2": a new fetch
return {"action": None, "task": None, "sentence": "–", "problems": [