opencode-mission-control
opencode-mission-control copied to clipboard
feat: Job completion guided next-action flow
Source
Audit report — Section 9: Phase 2 Roadmap
Description
When a job completes, mc_overview shows suggested actions (e.g., "run mc_diff to review"), but there is no guided flow that walks the user through the logical next steps. The user must remember the workflow themselves.
Current State
overview.tshas asuggestedActionssection with static text suggestions- Notifications include actionable hints (e.g., "Run mc_diff to review")
- No structured multi-step guidance or context-aware suggestions
Proposed Solution
When a job transitions to completed:
- Immediate notification with contextual next steps based on job type:
- Standalone job: "Review → Merge or PR" flow
- Plan job: "Waiting for merge train" or "All jobs done — PR will be created"
- Smart suggestions based on job output:
- If job has commits: suggest
mc_diff - If job reported errors: suggest
mc_captureto inspect - If job is last in plan: suggest reviewing the integration branch
- If job has commits: suggest
- Follow-up prompts if user doesn't act within a configurable window
Relationship to Other Issues
- Builds on existing notification infrastructure (Phase 0)
- Could leverage #22 (PR narrative synthesis) for richer completion summaries
- Could leverage #23 (failure artifacts) for error-case guidance