fix(intent): define strict mode in conversational fallback and clean formatting

This commit is contained in:
Prime Backup Bot
2026-03-12 03:08:48 +00:00
parent 2601a3b24b
commit 390ac8a063
+2 -1
View File
@@ -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)