Skip to content

Open linked reviews in Orca browser - #17360

Merged
Jinwoo-H merged 4 commits into
mainfrom
aug30-linked-pr-open-in-orca-browser
Aug 30, 2026
Merged

Jinwoo-H merged 4 commits into
mainfrom
aug30-linked-pr-open-in-orca-browser

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​194 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​191
Prod 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​115 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​105

Summary

  • Add an Open in Orca browser action to linked PR/issue overflow menus.
  • Use the canonical workspace browser route with inactive creation so the current terminal/task view stays selected.
  • Preserve Copy link, Unlink, Tasks-page, and external-browser actions.
  • Keep behavior provider-neutral for linked hosted review URLs and linked issue URLs.

Verification

  • Focused component/browser tests: 38 passed.
  • Browser/runtime placement and failure suites: 50 passed.
  • Typecheck and changed-code quality checks passed.
  • Fresh architecture, UX, and regression/performance reviews found no proven issues.

Electron screenshot proof will be attached separately after headed validation.

@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner August 30, 2026 07:40
@greptile-apps

greptile-apps Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR adds an “Open in Orca browser” action for linked review and issue URLs while preserving the currently selected workspace and surface.

  • Adds provider-neutral browser actions to worktree-card overflow menus.
  • Extends browser-tab creation with optional focus and workspace-selection controls.
  • Adds component, interaction, routing, and runtime-placement coverage.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/renderer/src/components/sidebar/use-worktree-card-secondary-details.ts Routes linked issue and review URLs through the canonical workspace-browser helper and reports failures to the user.
src/renderer/src/lib/workspace-browser-tab-open.ts Adds opt-in controls for inactive tab creation and non-selecting workspace behavior while retaining existing defaults.
src/renderer/src/components/sidebar/WorktreeCardMeta.tsx Wires the new browser actions into issue and review detail sections while preserving hover dismissal.
src/renderer/src/components/sidebar/WorktreeCardIssueDetailSection.tsx Adds the linked-issue browser action to the existing overflow menu.
src/renderer/src/components/sidebar/WorktreeCardReviewDetailSection.tsx Adds a provider-neutral linked-review browser action alongside copy and unlink actions.

Sequence Diagram

sequenceDiagram
  participant U as User
  participant C as Worktree card
  participant H as Secondary-details handler
  participant B as Workspace browser router
  participant T as Browser tab
  U->>C: Select Open in Orca browser
  C->>H: Forward linked URL
  H->>B: Open URL for owning workspace
  B->>T: Create inactive browser tab
  Note over T: Current workspace and surface remain selected
Loading

Reviews (4): Last reviewed commit: "ci: retry checks after cancelled rerun" | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Aug 30, 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: Pro Plus

Run ID: ceeac49a-1d3f-455c-8206-585939bed5ea

📥 Commits

Reviewing files that changed from the base of the PR and between ebecf71 and 5a61813.

📒 Files selected for processing (1)
  • src/renderer/src/components/sidebar/use-worktree-card-secondary-details.ts

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


📝 Walkthrough

Walkthrough

The change adds “Open in Orca browser” actions for linked issues and reviews. The actions pass linked URLs to workspace browser tab creation and show an error toast when opening fails. The UI exposes the actions only when URLs are available. Workspace browser tabs can now preserve the current focus and worktree selection. Tests cover callbacks, menu behavior, provider handling, and tab creation options.

Merge Risk: ⚪ Minimal · up to 5a618

The PR adds an Orca-browser action for linked reviews and issues while preserving existing link actions; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description summarizes the implementation and verification, but it does not follow the required template. The Linked Issue section has no issue reference, the required Visual Proof is not attached… Complete the required template sections. Add a valid Linked Issue reference, attach before-and-after visual proof after headed validation or mark it N/A with a reason, document manual and automated testing with tested platforms, and complet…
Docstring Coverage ⚠️ Warning 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 9 functions across 12 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 is concise and clearly describes the primary change: adding an Orca browser action for linked reviews. It does not mention linked issues, but the title does not need to cover every detail of…
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: Title check

Explanation

The title is concise and clearly describes the primary change: adding an Orca browser action for linked reviews. It does not mention linked issues, but the title does not need to cover every detail of the changeset.

Full details: Description check

Explanation

The description summarizes the implementation and verification, but it does not follow the required template. The Linked Issue section has no issue reference, the required Visual Proof is not attached or marked N/A, and the Testing checklist and platform details are missing. The ELI5, Why, Notes, Review, Agent skill boundary, and Checklist sections are also absent.

Resolution

Complete the required template sections. Add a valid Linked Issue reference, attach before-and-after visual proof after headed validation or mark it N/A with a reason, document manual and automated testing with tested platforms, and complete the remaining required checklist and review sections.

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

ℹ️ Minor suggestions only — the change is well-scoped, provider-neutral as advertised, and the tests pin real behavior. One UX question inline.

Reviewed changes

  • "Open in Orca browser" menu action — adds a Globe overflow-menu item to both the linked-review and linked-issue detail sections, gated on a present url.
  • Background tab creation flags — openWorkspaceBrowserTab gains optional focusOnCreate and selectWorktree; the client path maps focusOnCreate to activate, the runtime path forwards both, and defaults preserve prior always-activate / always-select behavior.
  • Caller wiring — useWorktreeCardSecondaryDetails opens the linked URL with focusOnCreate: false, selectWorktree: false and surfaces failures via a toast.
  • Tests — interaction tests pin exact URL forwarding, hover dismissal, and repeat-click forwarding; workspace-browser-tab-open tests pin inactive client creation and runtime staging without worktree selection.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Comment on lines +28 to +31
/** Keep the caller's current terminal/task surface selected while creating the tab. */
focusOnCreate?: boolean
/** Keep the caller's current workspace selected while creating the tab. */
selectWorktree?: boolean

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.

These JSDoc comments describe only the false behavior, which is backwards from the field names — focusOnCreate: true activates, it does not "keep the current surface selected". Worth rephrasing so the default semantics are clear.

@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 critical issues — the follow-up commit resolves the background-open UX concern. One minor scope question and a stale summary line remain.

Reviewed changes

  • Linked tab now focuses — openLinkedUrlInBrowser drops focusOnCreate: false and selectWorktree: false, so "Open in Orca browser" activates the new tab and selects its worktree instead of opening invisibly.

ℹ️ Now-unused request flags

The focusOnCreate and selectWorktree fields on OpenWorkspaceBrowserTabRequest — plus their activate / focusOnCreate / selectWorktree wiring and the two tests that pin them — were introduced for this feature's background-open path. Now that the only caller relies on the defaults, no production code sets either flag. Worth deciding whether these stay as a general API for future callers or get trimmed until one exists.

Technical details
# Now-unused request flags

## Affected sites
- src/renderer/src/lib/workspace-browser-tab-open.ts:28-31 — flag definitions
- src/renderer/src/lib/workspace-browser-tab-open.ts:187, 291-292 — `activate` / `focusOnCreate` / `selectWorktree` mapping
- src/renderer/src/lib/workspace-browser-tab-open.test.ts:107-130, 192-216 — tests pinning the flags

## Open questions for the human
- Are these flags intended as a general API for upcoming callers, or leftovers from the abandoned background-open approach?

ℹ️ Nitpicks

  • The PR summary still reads "inactive creation so the current terminal/task view stays selected"; the code now focuses the tab and selects the worktree.

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

@Jinwoo-H
Jinwoo-H merged commit d64097d into main Aug 30, 2026
27 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* feat(sidebar): open linked reviews in Orca browser

* test(e2e): match paired window reveal assertion

* feat(sidebar): focus linked browser tabs

* ci: retry checks after cancelled rerun
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