fix(socket): advertise dispatched Cloud methods
Merged
TE
2mo ago+381+381+012345678901234567890123456789-2-2-0123456789
Summary
cmux capabilities now advertises socket methods that are already dispatched and used by the CLI:
- Cloud VM environment, file delivery, pause/resume, reflection, snapshots, and terminal output/wait-exit
- Browser profiles and browser import
- Workspace move, status, and todo operations
- Notification feed operations
- SSH session attach resolution
The existing capabilities regression now checks these public method families, preventing future omissions from silently breaking capability-aware Cloud agents and scripts.
Closes #15646.
Testing
swiftc -parse Sources/TerminalController+Capabilities.swiftswiftc -parse cmuxTests/TerminalControllerSocketSecurityTests.swiftpython3 scripts/verify-local.py --affected mf/maingit diff --check
Changelog
Capability discovery now matches the dispatched Cloud and CLI socket surface.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Advertises already-dispatched socket methods in cmux capabilities so capability-aware Cloud agents and scripts no longer reject valid operations. Adds a CI guard that fails when a public dispatcher method is missing from capability discovery.
- Expands advertised coverage to mobile workspace changes, terminal scroll/mouse and image paste, status cycling, workspace groups, layout/canvas/remotes, browser profiles/import, and more.
- Adds
check-socket-capabilities.pywith pytest coverage in the quality-determinism CI group, including regression tests that prevent future exclusions of advertised methods. - Keeps an explicit allowlist of internal debug, test, and simulator methods that intentionally stay unadvertised.
- Gates mobile workspace changes discovery on its feature flag, matching the mobile host capability snapshot.
Closes #15646.
Summary by CodeRabbit
- New Features
- Capability discovery now includes mobile workspace file changes, image paste, terminal scrolling and mouse input, status cycling, and workspace group actions.
- It also reports support for VM pause and resume, snapshots, environment settings, file uploads, terminal output and exit waiting, SSH session attachment, workspace status and todo operations, remote and layout management, canvas operations, notification feeds, browser profiles, and cookie and dialog imports.
- Existing advertised capabilities remain available.