Repository navigation
Fix Return key for machine deletion confirmation - #16683
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (2)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 (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe delete confirmation now binds Return to the destructive Delete button and Escape to Cancel. It also sets Delete as the default button and initial first responder. ChangesDelete confirmation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The confirmation now has explicit keyboard controls for Delete and Cancel. No actionable merge-blocking risk is established. 🚥 Pre-merge checks | ✅ 23 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (23 passed)
Full details: Description checkExplanation The description explains the problem, intended behavior, validation command, and changelog entry. However, it does not follow the required template fully: it omits the Testing and Demo Video sections, provides no test result or limitation, and omits the checklist, including the required UI localization and review confirmations. Resolution Use the required section headings. Add a Testing section that states whether python3 scripts/verify-local.py passed and what remains unverified. Add a Demo Video section with a video or screenshots, or explain why none is available. Add the applicable checklist confirmations, including the localization audit and review status.
✨ 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 |
|
Dogfood build of cmux DEV pr-16683-fed38c40.app The link opens this exact commit in the cmux dev menu bar app; the page waits until the build is ready. Builds run only while this PR has the Dogfood tours of
|
|
Merge receipt for |
644fd5e Remove inline Open in cmux action from port rows (manaflow-ai#16350) 59821f4 fix: use weak var instead of weak let for macOS 26 / Swift 6 compat (manaflow-ai#9653) e7a4e0a fix(cmux-tui): satisfy reconnect clippy lint (manaflow-ai#16758) ee61823 fix(cloud): name the first machine workspace workspace-1 (manaflow-ai#16754) 8f28c09 test: isolate fake-socket CLI tests from the launching cmux shell (manaflow-ai#16562) 22d59ac Fix Return key for machine deletion confirmation (manaflow-ai#16683) 5049234 Cloud: 5 VMs per seat (4 vCPU/8 GB), Max 16 vCPU/32 GB, no free machines (manaflow-ai#16207) 13d77d6 fix: make dashboard team switching finish before refresh (manaflow-ai#16680) 3952ab3 Fix initial Cloud workspace layout restore (manaflow-ai#16690) 4ac2ec4 Fix optimistic selection for Cloud workspace creation (manaflow-ai#16672) b34697f Remove Cloud agent star button (manaflow-ai#16700) # Conflicts: # .github/workflows/ci-guards.yml
Problem
The machine deletion warning sheet does not consistently activate Delete when the user presses Return, so keyboard-only confirmation can appear unresponsive.
Change
Bind Return to the destructive Delete button, make it the alert's default button and initial responder, and bind Escape to Cancel. This uses AppKit's explicit alert key handling so sheet presentation and modal presentation behave the same.
Validation
python3 scripts/verify-local.pyChangelog
Fixed machine deletion confirmation so Return activates Delete.
— unregistered
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the machine deletion confirmation so pressing Return always activates Delete, even when the alert is presented as a sheet. Also binds Escape to Cancel.
Written for commit fed38c4. Summary will update on new commits.
Summary by CodeRabbit