From a664dfbbec607b226ee09702649ca03b673d3b82 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 26 Feb 2026 08:38:10 -0500 Subject: [PATCH] fix(mma): Final refinement of delegation command and log tracking --- scripts/mma_exec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mma_exec.py b/scripts/mma_exec.py index 9c8cc1a..b2a6155 100644 --- a/scripts/mma_exec.py +++ b/scripts/mma_exec.py @@ -198,10 +198,10 @@ def execute_agent(role: str, prompt: str, docs: list[str]) -> str: command_text += f"\n\nTASK: {prompt}\n\n" # Use subprocess with input to pipe the prompt via stdin, avoiding WinError 206. - # We use -p '-' to read from stdin if supported, otherwise just a placeholder that stdin appends to. + # We use -p 'mma_task' to ensure non-interactive (headless) mode and valid parsing. ps_command = ( f"if (Test-Path 'C:\\projects\\misc\\setup_gemini.ps1') {{ . 'C:\\projects\\misc\\setup_gemini.ps1' }}; " - f"gemini -p '---' --output-format json --model {model}" + f"gemini -p 'mma_task' --output-format json --model {model}" ) cmd = ['powershell.exe', '-NoProfile', '-Command', ps_command]