-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
The new agent wizard currently auto-starts only the first phase document after launch. Add a checkbox to the Phase Review screen that lets users opt into auto-running all generated phases sequentially.
Current Behavior
In useWizardHandlers.ts (~line 1204), the wizard finds the first document with tasks and builds a single-entry BatchRunConfig:
const firstDocWithTasks = generatedDocuments.find((doc) => doc.taskCount > 0);
// ...
documents: [{ id: generateId(), filename: firstDocWithTasks.filename.replace(/\.md$/, ''), ... }],
loopEnabled: false,Only Phase 01 auto-runs. The user must manually open the Batch Runner to continue with subsequent phases.
Proposed Behavior
- Add a checkbox to
PhaseReviewScreen.tsx(below the document editor, near the launch buttons): "Auto-run all phases" — default off. - When checked,
handleWizardLaunchSessionshould populateBatchRunConfig.documentswith all generated documents that havetaskCount > 0, not just the first. - The batch runner infrastructure (
useBatchProcessor,useBatchHandlers) already supports multi-document sequential runs — no changes needed there.
Key Files
| File | Change |
|---|---|
src/renderer/components/Wizard/screens/PhaseReviewScreen.tsx |
Add checkbox UI + state |
src/renderer/hooks/wizard/useWizardHandlers.ts |
Conditionally build single-doc vs all-docs BatchRunConfig |
src/renderer/components/Wizard/WizardContext.tsx |
Thread autoRunAll flag through wizard state (if needed) |
Notes
- Default off is intentional — running all phases unattended is a power-user workflow. Most users want to review results between phases.
- The existing
BatchRunConfigshape already supports multiple documents, so this is mostly a wiring change.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request