Skip to content

Commit 0939510

Browse files
author
catlog22
committed
fix(lite-plan): handle empty exploration context when prior analysis exists
When analyze-with-file artifacts are passed to lite-plan, exploration is skipped (hasPriorAnalysis=true) leaving manifest.explorations empty. The agent prompt's exploration section rendered as blank, causing the planning agent to lack context and fail to produce task JSON. Add conditional to output a fallback hint directing the agent to use the Prior Analysis block in the task description as primary planning context.
1 parent deea925 commit 0939510

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.claude/skills/workflow-lite-plan/phases/01-lite-plan.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,15 +529,17 @@ ${task_description}
529529
530530
## Multi-Angle Exploration Context
531531
532-
${manifest.explorations.map(exp => `### Exploration: ${exp.angle} (${exp.file})
532+
${manifest.explorations.length > 0
533+
? manifest.explorations.map(exp => `### Exploration: ${exp.angle} (${exp.file})
533534
Path: ${exp.path}
534535
535-
Read this file for detailed ${exp.angle} analysis.`).join('\n\n')}
536+
Read this file for detailed ${exp.angle} analysis.`).join('\n\n') + `
536537
537538
Total explorations: ${manifest.exploration_count}
538539
Angles covered: ${manifest.explorations.map(e => e.angle).join(', ')}
539540
540-
Manifest: ${sessionFolder}/explorations-manifest.json
541+
Manifest: ${sessionFolder}/explorations-manifest.json`
542+
: `No exploration files. Task Description above contains "## Prior Analysis" with analysis summary, key files, and findings — use it as primary planning context.`}
541543
542544
## User Clarifications
543545
${JSON.stringify(clarificationContext) || "None"}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-code-workflow",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
55
"type": "module",
66
"main": "ccw/dist/index.js",

0 commit comments

Comments
 (0)