Bug Fix
fix(state): isolate omc-teams state from native team to prevent leader pane kill
Both /team (native Claude Code teams) and /omc-teams (tmux CLI workers) were writing to the same state key mode="team" → team-state.json. When omc-teams completed and set active=false, the persistent-mode stop hook allowed the session to stop, killing the native team leader pane.
Changes
- Added new
omc-teamsstate mode with its ownomc-teams-state.jsonfile (followsralplanpattern) - Updated 6 integration points:
src/tools/state-tools.ts— added toSTATE_TOOL_MODES+ discovery blocksscripts/pre-tool-enforcer.mjs— added toMODE_STATE_FILESsrc/hooks/permission-handler/index.ts— added toactiveStateFilesscripts/persistent-mode.mjs— added Priority 6.5 stop hook blockskills/omc-teams/SKILL.md— changedmode="team"tomode="omc-teams"skills/cancel/SKILL.md— added omc-teams to priority list and force-clear list
Full Changelog: v4.5.2...v4.5.3