Skip to content

bug: Plan jobs ignore omo.defaultMode — hardcoded to vanilla #13

@nigel-dev

Description

@nigel-dev

Description

When the orchestrator launches jobs as part of a plan, it hardcodes the execution mode to 'vanilla', ignoring the user's omo.defaultMode configuration. Users who have configured omo.defaultMode: "ulw" or "ralph" get vanilla mode for all plan jobs.

Steps to Reproduce

  1. Configure omo.defaultMode: "ulw" in Mission Control config.
  2. Create a plan: mc_plan(name: "test", jobs: [...])
  3. Observe that all spawned jobs run in vanilla mode, not ULW.

Expected Behavior

Plan jobs should respect omo.defaultMode from the config, matching the behavior of direct mc_launch calls.

Actual Behavior

// src/lib/orchestrator.ts:709
mode: 'vanilla',

The mode is hardcoded in launchJob() within the orchestrator.

Proposed Fix

Read this.config.omo?.defaultMode and use it as the mode when launching plan jobs:

mode: this.config.omo?.defaultMode ?? 'vanilla',

Also consider allowing per-job mode overrides in the JobSpec schema.

Files Involved

  • src/lib/orchestrator.ts:709 — hardcoded mode: 'vanilla'
  • src/lib/config.ts — config definition with omo.defaultMode

Additional Context

Identified in the master audit report (Section 7: Robustness, Section 9: Phase 2 roadmap).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: highImportant fix or feature — next up after criticalbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions