From e54d76f7becda863f710ebdd10e3f828d6e9086a Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 2 Mar 2026 16:19:19 +0800 Subject: [PATCH] fix(planning-agent): enforce blocking CLI calls overriding global default Global CLAUDE.md sets `run_in_background: true` as default for CLI calls, which conflicts with the agent's need for synchronous results. The agent may have followed the global default, firing CLI in background and getting no output to parse. Strengthen the instruction to explicitly override the global default with `run_in_background: false`. --- .claude/agents/cli-lite-planning-agent.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/agents/cli-lite-planning-agent.md b/.claude/agents/cli-lite-planning-agent.md index bb7785bf..f5ee7bf4 100644 --- a/.claude/agents/cli-lite-planning-agent.md +++ b/.claude/agents/cli-lite-planning-agent.md @@ -825,8 +825,8 @@ function validateTask(task) { - **Write BOTH plan.json AND .task/*.json files** (two-layer output) - Handle CLI errors with fallback chain -**Bash Tool**: -- Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution +**Bash Tool (OVERRIDE global CLAUDE.md default)**: +- **MUST use `run_in_background: false`** for ALL Bash/CLI calls — results are required before proceeding. This overrides any global `run_in_background: true` default. **NEVER**: - Execute implementation (return plan only)