Repository navigation
current-work: preserve remote machine kinds - #14914
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughCurrent-work placement now preserves each resource’s machine kind. The command palette displays kind-specific labels and includes the machine identity for non-local placements. Tests and documentation reflect these distinctions. ChangesCurrent-work placement
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This PR only refines how machine kind is displayed in Current Work and the command palette, with no change to lifecycle or routing behavior; it is well covered by tests and low risk to merge. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Remote work is identified more accurately without changing how machines are opened or focused. The remaining risk is that a consumer of Current Work data may expect only the older placement labels. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (23 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 5 files. (1 skipped: 1 unsupported.) Full details: Cmux Swift Package BoundariesExplanation The changed Resolution Extract the pure Current Work reduction boundary from the app target into a small SwiftPM target, preferably alongside or split from the existing
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
CI failure attributionCI passes on Written by |
|
Merge receipt for |
8efe28d Add terminal.confirmUnsafePaste to confirm unsafe pastes in a window sheet (manaflow-ai#14951) 368ec9f fix(ci): restore app-host artifact rerun setup (manaflow-ai#15029) e67ea0f perf: stop launching the cmux CLI for every queued Claude hook (manaflow-ai#14931) badf9f6 test: give the tmux split mapping test its own portal authority (manaflow-ai#15028) 41a0c37 current-work: preserve remote machine kinds (manaflow-ai#14914) c842f7d test(hermes): wait for the hook installer instead of racing a 1 s deadline (manaflow-ai#15027) 810ffba fix(ci): resolve binary modules in detached test reruns (manaflow-ai#15026) d363290 test: await fork probe fixture start signals (manaflow-ai#15025) 8c98e64 Add cmux import for settings from other terminals (manaflow-ai#15004) 30aa6c1 Keep SSH workspace titles when cmux-tui creates the remote workspace (manaflow-ai#14976) b33c467 Restore workspace group color and icon key handling from manaflow-ai#13877 (manaflow-ai#15000) # Conflicts: # .github/workflows/app-host-test-rerun.yml # .github/workflows/ci-macos.yml
Summary
Current Work now preserves each resource’s actual machine kind: local, cloud, SSH, or device. Find Work labels SSH work as SSH and other remote placements as Remote, while keeping the machine identity visible in every remote row’s subtitle. Local subtitles remain unchanged.
This is a small prerequisite for #14909 / #14911. Machine lifecycle and routing behavior are unchanged.
Verification
2b2f93153f61cbe8f328f584529a08182fe4758c: CI run 36297937391 passed; all 7 reducer tests executed.3cf15d58aebe8414e90aa0f6f95f6ce9d4f2d1e3: native run 36331249057 executed 14 tests in 2 suites. Only the new palette regression failed, with the expected two missing remote-machine identity assertions.655dca405c44751bca363b8f556f476896118002: local Swift syntax, test wiring, and feature-flag checks passed. Native CI run 36332209279 passed macOS compilation and all 14 tests in the same 2 selected suites, including the palette regression.The palette regression covers local, cloud, SSH, and device subtitle behavior. The reducer regression checks each machine kind and stable machine identifier. The subtitle repair has not been dogfooded in a tagged app.
Localization
Reuses existing Local, Cloud, SSH, and Remote keys. The strict localization audit passed: 9 catalogs, 9 locales, no parity errors; no new or changed translation rows.
Changelog
Fixed: Current Work preserves SSH and device machine kinds, and Find Work shows the correct remote kind and machine identity.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Preserves the actual machine kind (
local,cloud,ssh,device) in Current Work placement instead of collapsing every non-local placement tocloud. Find Work now labels SSH work as SSH and other remote kinds (including device) as Remote, and palette subtitles keep the machine identity for every remote placement instead of only Cloud.Adds reducer and palette tests covering all four kinds and updates docs to state remote resources retain their catalog machine kind. No machine lifecycle or routing changes. Prerequisite for #14909 / #14911.
Written for commit 655dca4. Summary will update on new commits.
Summary by CodeRabbit