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`.
This commit is contained in:
catlog22
2026-03-02 16:19:19 +08:00
parent c12acd41ee
commit e54d76f7be

View File

@@ -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)