Skip to content

fix(seer): Support cmd+click to open Explorer tool links in new tab#113242

Draft
trevor-e wants to merge 1 commit intomasterfrom
telkins/fix/explorer-tool-link-cmd-click
Draft

fix(seer): Support cmd+click to open Explorer tool links in new tab#113242
trevor-e wants to merge 1 commit intomasterfrom
telkins/fix/explorer-tool-link-cmd-click

Conversation

@trevor-e
Copy link
Copy Markdown
Member

Tool call links in the Explorer chat (e.g. "Inspected issue PROJ-123") were rendered as <button> elements with onClick handlers, so cmd+click / ctrl+click had no effect — you could only navigate in the current tab.

Changed ToolCallLink from styled('button') to styled('a') with a computed href. Plain clicks still use client-side navigation via React Router; cmd+click and ctrl+click now fall through to the browser's native new-tab behavior.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 16, 2026
@trevor-e trevor-e force-pushed the telkins/fix/explorer-tool-link-cmd-click branch from 695c7dc to cdd42c1 Compare April 16, 2026 22:01
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cdd42c1. Configure here.

? to
: `${to.pathname ?? ''}${to.search ?? ''}${to.hash ?? ''}`;
window.open(path, '_blank', 'noopener,noreferrer');
return;
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.

Cmd+click navigation skips analytics tracking

Low Severity

The new cmd/ctrl+click code path calls window.open directly and returns early, completely bypassing navigateToToolLink. That helper exists specifically to bundle navigation with trackAnalytics (as its comment states: "Tool link navigation, with analytics and onNavigate hook"). All cmd+click navigations to tool links will therefore be silently absent from the seer.explorer.global_panel.tool_link_navigation analytics event, underreporting actual tool-link usage.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit cdd42c1. Configure here.

Tool call links in the Explorer chat used onClick handlers on a
<button>, so cmd+click had no effect. Now cmd+click / ctrl+click
opens the link in a new tab via window.open.

Also fixes tool link URLs missing the /organizations/{slug}/ prefix,
which caused broken navigation on local dev (and non-customer-domain
deployments).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant