Skip to content

test: refresh paired palette host-qualified row locators - #19175

Merged
nwparker merged 2 commits into
mainfrom
nwparker/test-paired-palette-host-identities
Sep 7, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/test-paired-palette-host-identities

Conversation

@nwparker

@nwparker nwparker commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

The paired Cmd-J scenario still selects rows using bare browser-page and simulator-tab IDs. Current palette rows encode the execution host, worktree, and page/tab identity, so the original test fails to find a visible browser result on merged main.

Use the existing identity encoder for all four local/remote browser and simulator rows. Preserve the same-ID collision checks, exact row counts, selected group/tab assertions, and rendered evidence.

Validation: lint passed. Baseline failure: https://github.com/stablyai/orca/actions/runs/34073273965. The original scenario with corrected locators passed: https://github.com/stablyai/orca/actions/runs/34073581600. Three executions passed with zero skips and retries (downloaded JSON independently verified) at https://github.com/stablyai/orca/actions/runs/34073877276; current PR CI is https://github.com/stablyai/orca/actions/runs/34073853970.

@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: 5d04286c-0821-422f-9b7e-4f142d7e4cad

📥 Commits

Reviewing files that changed from the base of the PR and between 373514e and 0dc8f6a.

📒 Files selected for processing (1)
  • tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts

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


📝 Walkthrough

Walkthrough

The end-to-end test imports encodePaletteIdentity and derives identities for remote and local browser pages and simulator tabs. Palette row locators and clicks now use the encoded identities instead of literal browser-page and simulator-tab strings.

Merge Risk: ⚪ Minimal · up to 1f24b

The paired Cmd+J test now selects host-qualified browser and simulator rows using encoded identities, preserving coverage for local and remote entries without a remaining concrete merge risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the failure, the fix, preserved assertions, and validation evidence. However, it does not follow the required template and omits the ELI5, What Changed, Why, Linked Issue, Vis… Rewrite the description using all required template sections. Add an ELI5 summary, explicit change and rationale sections, a valid linked issue such as Fixes #123``, and Visual Proof content or N/A with a reason. Complete the Testing chec…
✅ Passed checks (4 passed)
Check name Status Explanation
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 1…
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.
Title check ✅ Passed The title clearly identifies the main change: refreshing paired Cmd-J palette row locators to use host-qualified identities.
Full details: Description check

Explanation

The description explains the failure, the fix, preserved assertions, and validation evidence. However, it does not follow the required template and omits the ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checklist, Review, boundary, Notes, and Checklist sections. It also does not provide a linked issue in the required format.

Resolution

Rewrite the description using all required template sections. Add an ELI5 summary, explicit change and rationale sections, a valid linked issue such as Fixes #123``, and Visual Proof content or N/A with a reason. Complete the Testing checkboxes and document the required lint, typecheck, test, and build status. Complete the Review, Agent skill upstream boundary, Notes, and Checklist sections.

  • 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

  • Host-qualified palette row locators — the paired Cmd-J scenario now computes the four browser/simulator row identities via encodePaletteIdentity and uses them in the [cmdk-item][data-value=…] locators, replacing the stale bare browser-page:${pageId} / simulator-tab:${tabId} format.

I verified each encoded identity against production: the browser parts/order (browser-page, host, worktree, workspace, page) match browser-palette-search.ts baseResult, and the simulator parts/order (simulator-tab, host, worktree, tab) match simulator-palette-search.ts. The local host id ('local') lines up with LOCAL_EXECUTION_HOST_ID, and the remote host (runtime:…) is the same remoteHostId the test already asserts as each tab's executionHostId. Same-ID collision checks, exact row counts, group/tab routing assertions, and screenshots are all preserved, and the assertions remain exact (toHaveCount(1) on the fully-qualified data-value), so the test still fails loudly rather than passing if the identity encoding drifts.

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

@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

  • Merge of current main (1f24b7c) — the only new commit since the prior review. Relative to its parent, it removes a duplicate unifiedTabsByWorktree from the browser-page entries argument list and dependency array in src/renderer/src/components/use-worktree-jump-palette-open-tabs.ts, a main-side memoization cleanup that does not change what the palette renders. The reviewed test file is unchanged (identical diff), so the prior review's conclusions stand.

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

@nwparker
nwparker merged commit af5918a into main Sep 7, 2026
33 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