opencode-mission-control icon indicating copy to clipboard operation
opencode-mission-control copied to clipboard

feat: Job completion guided next-action flow

Open nigel-dev opened this issue 9 months ago • 0 comments

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.ts has a suggestedActions section 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:

  1. 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"
  2. Smart suggestions based on job output:
    • If job has commits: suggest mc_diff
    • If job reported errors: suggest mc_capture to inspect
    • If job is last in plan: suggest reviewing the integration branch
  3. 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

nigel-dev avatar Feb 13 '26 18:02 nigel-dev