Skip to content

fix(cmd-j): remove duplicate browser ownership inputs - #19172

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-palette-duplicate-ownership
Sep 7, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-palette-duplicate-ownership

Conversation

@nwparker

@nwparker nwparker commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2

Merging #18925 after #19005 passed unifiedTabsByWorktree twice to browser palette search, causing TS1117 and the duplicate-key lint error on main. Remove the duplicate object property and memo dependency while preserving browser ownership and recency behavior.

Validation: targeted oxlint and git diff --check pass. CI runs the typecheck and existing regression tests.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: bddc25ef-b680-48d6-9053-7d7ab3a7d62e

📥 Commits

Reviewing files that changed from the base of the PR and between 0cba706 and 1058eea.

📒 Files selected for processing (1)
  • src/renderer/src/components/use-worktree-jump-palette-open-tabs.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/use-worktree-jump-palette-open-tabs.ts

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


📝 Walkthrough

Walkthrough

Removed duplicate unifiedTabsByWorktree entries from the buildSearchableBrowserPages call and the browserPageEntries memoization dependency array. The remaining entries preserve existing behavior.

Merge Risk: ⚪ Minimal · up to 1058e

This change removes duplicate tab-reference declarations that caused TypeScript and lint errors while retaining the existing browser search behavior. No current merge-blocking risk is identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change, the cause, the preserved behavior, and the validation performed. However, it omits required template sections, including the mandatory Linked Issue, Visual Proof o… Add the required template sections. Include a linked issue after Fixes #, state N/A with a reason for Visual Proof because this change has no visual or interaction change, document platform and remote SSH impact, complete the testing an…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the command shortcut and the duplicate browser ownership inputs removed. It is concise and related to the main change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Full details: Description check

Explanation

The description explains the change, the cause, the preserved behavior, and the validation performed. However, it omits required template sections, including the mandatory Linked Issue, Visual Proof or an explicit N/A reason, checklist status, platform impact, and review notes.

Resolution

Add the required template sections. Include a linked issue after Fixes #, state N/A with a reason for Visual Proof because this change has no visual or interaction change, document platform and remote SSH impact, complete the testing and checklist items, and include any applicable AI Disclosure and Review information.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 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.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Remove duplicate unifiedTabsByWorktree inputs — deletes the redundant object property in the buildSearchableBrowserPages argument object and the duplicate entry in the browserPageEntries memo dependency array, resolving the TS1117 and duplicate-key lint errors introduced on main by the #18925 / #19005 merge.

The change is a pure de-duplication: unifiedTabsByWorktree is still passed to buildSearchableBrowserPages once and still listed once in the memo deps, so browser ownership and recency behavior are unchanged.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 463cab2 into main Sep 7, 2026
29 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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