feat: add atomic cmux goto navigation
Behavior
Adds cmux goto for one-shot workspace, pane, and surface navigation rather than requiring callers to sequence multiple focus commands.
Scope
Independent CLI/OMP-extension change, rebased onto current upstream main (2757d9de8). Original pre-rebase tip is preserved in Arthur-CWW/cmux as attic/pre-rebase-cmux-goto-20260728.
Verification
The prepared branch includes CMUXCLIGotoTests.swift and OMP extension installation coverage. Post-rebase focused QA is running separately; no unobserved pass claim is made here.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Adds cmux goto for one-shot navigation to a workspace, pane, or surface (or by UUID), and hardens the OMP session extension with safer hook dispatch, session shutdown telemetry, and resumable launches.
-
New Features
cmux gotoacceptsworkspace:N,pane:N,surface:N, or a UUID; resolves cross-window and focuses the target atomically.- Bare numbers are rejected as ambiguous;
--helpdocs added and command is discoverable in the palette. - Added
CMUXCLIGotoTests.swiftto cover parsing, UUIDs, ambiguity, and edge cases.
-
Refactors
- OMP extension: split imports to
@oh-my-pi/pi-coding-agent/extensibility/*; added a resume wrapper (--cmux-omp-resume-launch) with picker fallback and a~/.local/bin/ompexecutable fallback. - Hook dispatch: bounded extra string fields to 4 KiB with “[truncated]”, added a 1.5s timeout with SIGTERM/SIGKILL escalation, removed detached/unref usage, and added a reentrancy guard via
CMUX_OMP_HOOK_DISPATCH. - Suppressed nested session journaling, added a
session-endhook, and captured restorable launch argv in env for reliable restores. - Extended
tests/test_omp_extension_install.pyto verify markers, transpile withbun, payload bounding, new events, and launch metadata.
- OMP extension: split imports to
Summary by CodeRabbit
-
New Features
- Added a
gotocommand for navigating directly to workspaces, panes, and surfaces using typed references or UUIDs. - Added
gototo command suggestions, help text, and the command palette. - Improved OMP session resume handling and added session shutdown event support.
- Added safeguards for oversized hook payloads and nested session journals.
- Added a
-
Bug Fixes
- Improved command-target validation and navigation error handling.
-
Tests
- Added coverage for
gototarget parsing and enhanced OMP extension behavior tests.
- Added coverage for