-
-
Notifications
You must be signed in to change notification settings - Fork 759
Description
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.mdsays an active tmux session is requiredsrc/team/tmux-session.tsis 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
- Detect cmux explicitly in the team runtime / preflight path
- 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
- Update team preflight and error messaging so cmux is not misreported as “not inside tmux”
- Add focused tests for team preflight / topology selection in cmux vs tmux vs plain terminal
- Update
skills/omc-teams/SKILL.mdand related docs to reflect the new support contract
Acceptance criteria
omc team ...no longer hard-rejects cmux solely because$TMUXis 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.