Skip to content

Support cmux alongside tmux for OMC team mode #1749

@Yeachan-Heo

Description

@Yeachan-Heo

Summary

Add cmux compatibility for omc team / legacy /omc-teams so team workflows can launch and operate correctly when OMC is running inside cmux, not only inside a classic tmux session.

Problem

Recent cmux support landed for the main OMC CLI launch path, but team mode still hard-requires $TMUX and documents an active tmux session as a prerequisite.

Current team runtime surfaces still assume a real tmux session:

  • skills/omc-teams/SKILL.md says an active tmux session is required
  • src/team/tmux-session.ts is documented/implemented around $TMUX-anchored topology creation
  • cmux environments may expose their own surface/session context without behaving like a directly attachable tmux terminal

Result: normal omc launch can behave correctly in cmux, while omc team / /omc-teams still fail or reject the environment.

Goal

Support cmux alongside tmux for team-mode entry and worker topology orchestration, without regressing existing tmux behavior.

Proposed scope

  1. Detect cmux explicitly in the team runtime / preflight path
  2. Decide the correct topology strategy for cmux:
    • reuse compatible pane/window semantics if available, or
    • fall back to a detached/shared session strategy that still preserves team coordination
  3. Update team preflight and error messaging so cmux is not misreported as “not inside tmux”
  4. Add focused tests for team preflight / topology selection in cmux vs tmux vs plain terminal
  5. Update skills/omc-teams/SKILL.md and related docs to reflect the new support contract

Acceptance criteria

  • omc team ... no longer hard-rejects cmux solely because $TMUX is absent
  • existing tmux team flows continue to work unchanged
  • plain non-tmux/non-cmux terminals still fail with a clear prerequisite message when team mode truly needs a multiplexer surface
  • automated tests cover cmux detection and launch-policy branching for team mode

Notes

This is separate from the already-merged main CLI cmux launch fix. That work covered the single-session OMC launcher path, not the tmux-backed team runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsRelated to agent definitionsenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions