Skip to content

feat(terminal): add anchored link action popovers - #13414

Merged
Jinwoo-H merged 3 commits into
mainfrom
terminal-click-behavior
Aug 10, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
terminal-click-behavior

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor

Summary

  • show a compact anchored action popover when users plainly click terminal links, including HTTP/OSC 8 URLs, files, workspaces, terminals, and task handles
  • preserve direct Cmd/Ctrl-click opening and Shift+Cmd/Ctrl-click alternate routing while protecting selections, drags, TUI mouse input, and Alt gestures
  • offer System Browser and Orca Browser for local web links, keep remote links system-only, and replace the open popover when another link is clicked
  • add Browser settings to disable terminal link actions, plus a settings shortcut in the popover
  • clamp long destinations to two lines and expose the full value on hover

Testing

  • pnpm typecheck
  • pnpm lint
  • 247 affected Vitest tests across 14 files

@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner August 10, 2026 01:17
@coderabbitai

coderabbitai Bot commented Aug 10, 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: febe225a-d227-45f8-967f-37bddd1c0365

📥 Commits

Reviewing files that changed from the base of the PR and between 578d116 and 3ac7c80.

📒 Files selected for processing (6)
  • src/renderer/src/components/settings/BrowserTerminalLinkActionsSetting.tsx
  • src/renderer/src/components/settings/browser-search.test.ts
  • src/renderer/src/components/settings/browser-search.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pointer-gesture.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pty-mouse-suppression.ts
  • src/renderer/src/components/terminal-pane/terminal-url-link-click.test.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/renderer/src/components/settings/BrowserTerminalLinkActionsSetting.tsx
  • src/renderer/src/components/terminal-pane/terminal-link-pointer-gesture.test.ts
  • src/renderer/src/components/settings/browser-search.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pty-mouse-suppression.ts
  • src/renderer/src/components/terminal-pane/terminal-url-link-click.test.ts

📝 Walkthrough

Walkthrough

The change adds a browser setting for terminal link action popovers. It introduces gesture classification, pointer tracking, action request contracts, and a terminal link action popover. File, HTTP, OSC, terminal-handle, and web links now support direct or action-based routing. Pane lifecycle code provides context, destinations, focus handling, and cleanup. HTTP routing adds forced in-app handling. Tests cover settings search, gestures, popovers, routing, hints, pane callbacks, and default settings.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the summary and testing sections but omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the missing sections, document cross-platform AI review and security findings, include UI screenshots or a recording, and report all required test and build checks.
Docstring Coverage ⚠️ Warning Docstring coverage is 9.43% which is insufficient. The required threshold is 80.00%. 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 identifies the main change: anchored terminal link action popovers.
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
📝 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: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 40baefd7-494e-490e-8693-a96d3714fc53

📥 Commits

Reviewing files that changed from the base of the PR and between b2e29a2 and e18e1a3.

📒 Files selected for processing (42)
  • src/renderer/src/components/settings/BrowserPane.tsx
  • src/renderer/src/components/settings/BrowserTerminalLinkActionsSetting.tsx
  • src/renderer/src/components/settings/browser-link-routing-copy.ts
  • src/renderer/src/components/settings/browser-search.test.ts
  • src/renderer/src/components/settings/browser-search.ts
  • src/renderer/src/components/terminal-pane/TerminalLinkActionPopover.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalLinkActionPopover.tsx
  • src/renderer/src/components/terminal-pane/TerminalPane.tsx
  • src/renderer/src/components/terminal-pane/terminal-file-link-actions.test.ts
  • src/renderer/src/components/terminal-pane/terminal-file-link-actions.ts
  • src/renderer/src/components/terminal-pane/terminal-handle-links.test.ts
  • src/renderer/src/components/terminal-pane/terminal-handle-links.ts
  • src/renderer/src/components/terminal-pane/terminal-http-link-activation.ts
  • src/renderer/src/components/terminal-pane/terminal-link-action-request.ts
  • src/renderer/src/components/terminal-pane/terminal-link-action-routing.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-activation.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-activation.ts
  • src/renderer/src/components/terminal-pane/terminal-link-handlers.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-handlers.ts
  • src/renderer/src/components/terminal-pane/terminal-link-open-hints.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-open-hints.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pointer-gesture.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pointer-gesture.ts
  • src/renderer/src/components/terminal-pane/terminal-link-pty-mouse-suppression.ts
  • src/renderer/src/components/terminal-pane/terminal-linkifier-click-priming.test.ts
  • src/renderer/src/components/terminal-pane/terminal-linkifier-click-priming.ts
  • src/renderer/src/components/terminal-pane/terminal-osc-link-routing.ts
  • src/renderer/src/components/terminal-pane/terminal-url-link-click.test.ts
  • src/renderer/src/components/terminal-pane/terminal-url-link-hit-testing.ts
  • src/renderer/src/components/terminal-pane/terminal-web-link-click.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/http-link-routing.test.ts
  • src/renderer/src/lib/http-link-routing.ts
  • src/renderer/src/lib/pane-manager/pane-dom-creation.test.ts
  • src/renderer/src/lib/pane-manager/pane-dom-creation.ts
  • src/renderer/src/lib/pane-manager/pane-manager-types.ts
  • src/renderer/src/lib/settings-navigation-types.ts
  • src/shared/constants.test.ts
  • src/shared/constants.ts
  • src/shared/telemetry-events.ts
  • src/shared/types.ts

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