Skip to content

Wizard: Add 'Auto-run all phases' checkbox #490

@pedramamini

Description

@pedramamini

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, handleWizardLaunchSession should populate BatchRunConfig.documents with all generated documents that have taskCount > 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 BatchRunConfig shape already supports multiple documents, so this is mostly a wiring change.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions