Skip to content

Fix Cmd+J Enter for worktree creation - #15970

Merged
AmethystLiang merged 2 commits into
mainfrom
enter-not-working-in-cmd-j-for-create-worktree
Aug 22, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
enter-not-working-in-cmd-j-for-create-worktree

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2

Summary

  • allow Enter to activate the selected Cmd+J create-worktree row after typing a name
  • preserve the empty-query activation guard
  • add a Playwright regression test

Validation

  • focused Vitest suite: 64 passed
  • web typecheck
  • changed-file oxlint
  • Electron Playwright/CDP: 2 passed

@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bb0abb51-931d-4d44-9b4c-9062d21e4cb3

📥 Commits

Reviewing files that changed from the base of the PR and between cac8a8b and 787f9b9.

📒 Files selected for processing (1)
  • tests/e2e/worktree-jump-palette-filter.spec.ts

📝 Walkthrough

Walkthrough

Workspace creation activation now requires a non-empty trimmed name, task URL intent, or user-moved selection. The activation predicate accepts a hasCreateName input, and the palette supplies this state. Unit tests cover the activation conditions and rejection case. An end-to-end test verifies that entering a unique worktree name and pressing Enter opens the creation dialog, which Escape dismisses.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change and validation, but it omits most required template sections, including the linked issue and visual proof. Complete the required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checkboxes, and the remaining checklist items.
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the primary change: Enter-key activation for worktree creation from Cmd+J.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c6422e0d-aa9c-48cf-afd1-cd20eb1045c7

📥 Commits

Reviewing files that changed from the base of the PR and between 72f896d and cac8a8b.

📒 Files selected for processing (4)
  • src/renderer/src/components/WorktreeJumpPalette.tsx
  • src/renderer/src/lib/worktree-palette-create-action.test.ts
  • src/renderer/src/lib/worktree-palette-create-action.ts
  • tests/e2e/worktree-jump-palette-filter.spec.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@AmethystLiang
AmethystLiang merged commit 9ea1d28 into main Aug 22, 2026
2 of 16 checks passed
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 23, 2026
* fix(cmd-j): allow Enter to create worktree

* test: verify create dialog closes on Escape

(cherry picked from commit 9ea1d28)
CodeHourra pushed a commit to CodeHourra/orca that referenced this pull request Aug 23, 2026
* fix(cmd-j): allow Enter to create worktree

* test: verify create dialog closes on Escape
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
* fix(cmd-j): allow Enter to create worktree

* test: verify create dialog closes on Escape
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(cmd-j): allow Enter to create worktree

* test: verify create dialog closes on Escape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant