fix(intent): define strict mode in conversational fallback and clean formatting
This commit is contained in:
@@ -374,6 +374,7 @@ def parse_and_handle(chat_id: int, msg_id: int, text: str) -> str:
|
||||
if mode.get('chat_enabled', True):
|
||||
uid = str(chat_id)
|
||||
owner = str(chat_id) == owner_id()
|
||||
strict = bool(mode.get('strict_mode', False))
|
||||
|
||||
# conversational filesystem/file-intent handling
|
||||
ci = interpret_conversation(raw)
|
||||
@@ -393,7 +394,7 @@ def parse_and_handle(chat_id: int, msg_id: int, text: str) -> str:
|
||||
if intent == 'action-request':
|
||||
task_type = interp.get('task_type') or 'planning'
|
||||
task = interp.get('task') or raw
|
||||
# owner fast-lane: planning/analysis can auto-queue unless strict mode is on
|
||||
# owner fast-lane: planning/analysis can auto-queue unless strict mode is on
|
||||
if owner and task_type in {'planning','other'} and not strict:
|
||||
code, out = run_prime(['queue','add', 'planning', task])
|
||||
return _format_queue_add_human(out)
|
||||
|
||||
Reference in New Issue
Block a user