Skip to content

feat(native-chat): offer the link-action popover for chat links - #19130

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/native-chat-link-preview
Sep 6, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/native-chat-link-preview

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​565 $\color{#cf222e}{\Huge{\mathbf{−}}}$​83 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​482
Prod 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​457 $\color{#cf222e}{\Huge{\mathbf{−}}}$​188 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​269

What

A plain click on an http(s) link in a native chat transcript opened the system browser outright. It ignored the "Open http(s) links in Orca" preference — even though that setting's own copy promises to cover markdown — and offered none of the choices the same link gets in the terminal.

Native chat (both the PTY-backed transcript and structured Claude/Codex sessions) now shows the terminal's link-action popover:

  • plain click → the destination popover, anchored at the pointer: URL, copy, settings gear, and the System Browser / Orca Browser rows with their ⌘/⇧⌘ hints
  • ⌘/Ctrl-click → the primary destination directly; ⇧⌘/Shift+Ctrl-click → the alternate
  • shift-only, alt, middle click → unchanged, the anchor's default
  • mailto: and file links are untouched; file links still route through the existing native-chat opener

Reuse rather than a second implementation

The popover moved to components/link-actions/LinkActionPopover.tsx (generic over its request type, focusTerminal → restoreFocus), and the shared policy — destination types, httpLinkActionDestinationsFor, the label/action builder, and the routed open (openTerminalHttpLink → openRoutedHttpLink, which had no callers outside its own file) — moved to lib/http-link-destinations.ts. The terminal consumes those instead of its own copies, so the net is 925 added / 266 removed with 21 new tests — the non-test production delta is small.

Catalog keys deliberately keep their original auto.components.terminal.pane.TerminalLinkActionPopover.* namespace: they are opaque ids carrying shipped fr translations, and nothing enforces key-to-path correspondence.

Remote correctness

Chat has no PTY, so link ownership comes from the session's workspace instead of a transport: runtime environment first, then SSH connection, and an unresolved owner stays unknown rather than defaulting to local. "Orca Browser" is only offered when that host's managed-browser route is actually eligible — the same canOpenWorkspaceBrowserTabOn{Runtime,Ssh} checks the terminal uses.

Behavior changes worth a second look

  1. A plain chat-link click now honors the Open links in Orca preference. Previously it always went to the system browser.
  2. The Show terminal link actions toggle now governs chat too, so it is retitled Show link actions and its description reworded (en.json plus the duplicate default in the settings-search index; other locales keep their older wording, which no localization gate rejects). With the toggle off, a chat link still opens on a plain click rather than requiring a modifier — the terminal's "modifier only" behavior would leave chat links dead.

Testing

  • 21 new tests: click routing per modifier, destination/label building, workspace owner resolution, and an integration test that renders real markdown, clicks the rendered anchor, and asserts the popover rows and the routed openHttpLink call
  • tsc web/node/cli clean; oxlint clean; changed-code quality gate 0 findings; max-lines ratchet OK; all four localization gates pass
  • Suites green: link-actions, native-chat (105 files), settings (172 files), terminal-pane, lib

Not covered: mobile chat is a separate app and unchanged. Chat anchors have no hover hint yet (the terminal's hint is xterm-side); the popover is the discovery affordance. Not yet exercised in a running app — screenshots to follow from the review loop.

A plain click on an http(s) link in a native chat transcript opened the
system browser outright, ignoring the link-routing preference the same
link honors in the terminal. Chat now shows the terminal's destination
popover, with the modifier chords routing straight to a destination.

The popover, its request type, the destination policy and the routed open
move out of terminal-pane so both surfaces share one implementation; the
catalog keys keep their original namespace because they carry shipped
translations. Chat resolves its link owner from the session workspace
(runtime, then SSH, unresolved stays unknown) so a remote transcript only
offers Orca Browser when that host's managed browser route is eligible.

The existing toggle now governs both surfaces, so it is retitled; with it
off a chat link still opens on a plain click instead of going dead.
@coderabbitai

coderabbitai Bot commented Sep 6, 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: c2d08479-0631-4a3f-84d9-9f450409c113

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd7206 and 3a04360.

📒 Files selected for processing (2)
  • config/reliability-gates.jsonc
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.test.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.test.tsx

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


📝 Walkthrough

Walkthrough

The change adds shared link-action types and a reusable popover for terminal and native chat links. HTTP destination selection moves into shared routing helpers. Native chat links now resolve source ownership, support destination actions, restore focus, and preserve file-link handling. Terminal link handling adopts the shared routing contracts. Settings text and search metadata now include chat transcript links. Tests cover routing, ownership, modifiers, popovers, and integration paths.

Merge Risk: ⚪ Minimal · up to 3a043

This change updates shared link-action coverage configuration without an identified current-head merge risk.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description gives a detailed change summary and testing information, but it omits most required template sections. It has no linked issue, ELI5, Why, AI Disclosure, Review, Notes, Agent skill boun… Complete the required template sections, add a valid issue reference such as “Fixes #123”, provide before/after visual proof or state “N/A” with a reason, and complete the testing and checklist items.
Docstring Coverage ⚠️ Warning Docstring coverage is 24.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 33 functions across 25 files. (1 skipped:… 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 and concisely describes the primary change: adding the link-action popover for native chat links.
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 gives a detailed change summary and testing information, but it omits most required template sections. It has no linked issue, ELI5, Why, AI Disclosure, Review, Notes, Agent skill boundary, or Checklist section. Required visual proof is also not attached; it says screenshots will follow.

Full details: Docstring Coverage

Explanation

Docstring coverage is 24.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 33 functions across 25 files. (1 skipped: 1 unsupported.)

  • 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.

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 07e207df-8142-4d62-8357-1ae15c9eaca9

📥 Commits

Reviewing files that changed from the base of the PR and between b8311d5 and e225b42.

📒 Files selected for processing (26)
  • src/renderer/src/components/link-actions/LinkActionPopover.test.tsx
  • src/renderer/src/components/link-actions/LinkActionPopover.tsx
  • src/renderer/src/components/link-actions/link-action-request.ts
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-http-link-source-owner.test.ts
  • src/renderer/src/components/native-chat/native-chat-http-link-source-owner.ts
  • src/renderer/src/components/native-chat/native-chat-web-link-actions.test.ts
  • src/renderer/src/components/native-chat/native-chat-web-link-actions.ts
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.ts
  • 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/TerminalPaneSurface.tsx
  • src/renderer/src/components/terminal-pane/terminal-link-action-request.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-pane-mount-preparation.ts
  • src/renderer/src/components/terminal-pane/terminal-url-link-hit-testing.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/http-link-destinations.test.ts
  • src/renderer/src/lib/http-link-destinations.ts
  • src/shared/global-settings-types.ts

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

Comment on lines +26 to +74
export function useNativeChatLinkActions(
context: NativeChatFileLinkContext | null,
rootRef: RefObject<HTMLElement | null>
): NativeChatLinkActions {
const openFileLink = useNativeChatFileLinkClick(context)
const [linkActionRequest, setLinkActionRequest] = useState<LinkActionRequest | null>(null)
const closeLinkActions = useCallback((dismissed?: LinkActionRequest) => {
setLinkActionRequest((current) => closeLinkActionRequest(current, dismissed))
}, [])

const onLinkClick = useCallback<CommentMarkdownLinkClickHandler>(
(event, href) => {
if (!context) {
return
}
const route = routeNativeChatHref(href)
if (route.kind === 'file') {
openFileLink?.(event, href)
return
}
// mailto: and other schemes keep the anchor's default handling.
if (route.kind !== 'web' || !/^https?:/i.test(route.url)) {
return
}
// Read at click time: settings and workspace ownership must not re-render the transcript.
const state = useAppStore.getState()
const sourceOwner = resolveNativeChatHttpLinkSourceOwner(state, context.worktreeId)
handleNativeChatWebLink(event, route.url, {
worktreeId: context.worktreeId,
sourceOwner,
destinations: httpLinkActionDestinationsFor(
state.settings,
sourceOwner,
canNativeChatOpenOwnedBrowser(state, context.worktreeId, sourceOwner)
),
actionsEnabled: state.settings?.terminalLinkActionPopoverEnabled !== false,
restoreFocus: () => rootRef.current?.focus({ preventScroll: true }),
request: setLinkActionRequest
})
},
[context, openFileLink, rootRef]
)

return {
onLinkClick: context ? onLinkClick : undefined,
linkActionRequest,
closeLinkActions
}
}

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.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Keep HTTP routing when file context is unavailable. Both native-chat views can receive a null file-link context while the tab still identifies a workspace. The current hook then returns no handler, so HTTP(S) transcript links use the default anchor path and skip handleNativeChatWebLink. Derive worktreeId independently, use resolveNativeChatHttpLinkSourceOwner for HTTP(S) links, and keep file handling gated by the nullable file context. Keep allowFileUriLinks gated by fileLinkContext !== null so this does not enable file-link handling without a resolved path.

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

Important

Two regressions worth fixing before merge: a DOM data-attribute rename that breaks three existing E2E specs, and a dead "System Browser" action for unresolved-owner chat links.

Reviewed changes

  • Shared popover + destination policy — TerminalLinkActionPopover becomes a generic LinkActionPopover (focusTerminal → restoreFocus), and the terminal's destination/label/open logic moves to lib/http-link-destinations.ts (openRoutedHttpLink, httpLinkActionDestinationsFor, buildHttpLinkActions) for reuse.
  • Native chat link actions — both chat surfaces wire useNativeChatLinkActions, routing file links to the existing opener and http(s) links through the shared popover with workspace-derived source ownership (runtime → ssh → local/unknown).
  • Settings copy — the "Show terminal link actions" toggle is retitled "Show link actions" and gains a "chat" search keyword.

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

}
const connectionId = getConnectionIdFromState(state, worktreeId)
if (connectionId === undefined) {
return { kind: 'unknown' }

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.

unknown turns the popover's only offered action into a no-op. httpLinkActionDestinationsFor returns { primary: 'system' } for an unknown owner, so the popover shows a single "System Browser" row, but openHttpLink early-returns for sourceOwner.kind === 'unknown' (lib/http-link-routing.ts:125), so clicking that row silently does nothing. Before this PR a plain chat-link click on such a workspace fell through to the anchor's target="_blank" and opened the system browser.

Technical details
# Unknown-owner chat links hit a dead end

## Affected sites
- src/renderer/src/components/native-chat/native-chat-http-link-source-owner.ts:23 — returns `{ kind: 'unknown' }`
- src/renderer/src/lib/http-link-routing.ts:125 — `if (sourceOwner?.kind === 'unknown') return` (blocks all routing, including `forceSystemBrowser`)
- src/renderer/src/components/native-chat/native-chat-web-link-actions.ts — consumes the click (`preventDefault`) and offers the popover regardless of owner

## Required outcome
- A plain click on an http(s) chat link whose owner is unresolved must not dead-end; it should either open the system browser or fall through to the anchor default.

## Suggested approach
- The system browser is host-agnostic, so the "wrong host" safety concern only applies to in-app routing. For `sourceOwner.kind === 'unknown'`, return `false` from `handleNativeChatWebLink` (leave the anchor's `target="_blank"` default) instead of consuming the click and offering a dead action.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Native chat link popover Electron QA — PR 19130

Validated HEAD 0cd72064af (Fix native chat link popover lifecycle and keyboard anchoring) in worktree /Users/brennanbenson/orca/workspaces/orca/nerite on branch brennanb2025/native-chat-link-preview.

App identity and launch

  • Isolated profile: /tmp/orca-qa-19130/profile
  • ORCA_BACKGROUND_LAUNCH=1, CDP 127.0.0.1:9334, renderer 127.0.0.1:5178
  • Wrapper PID 36638 (run-electron-vite-dev.mjs -c /tmp/orca-qa-19130/electron-vite-5178.mjs)
  • electron-vite PID 37892
  • Electron PID 40575 (Orca: brennanb2025-native-chat-link-preview.app)
  • window.api.app.getIdentity(): name Orca: brennanb2025/native-chat-link-preview, isDev true, worktree nerite, repo root matches this workspace
  • Demo repo /tmp/orca-qa-19130/demo-repo added via window.api.repos.add (no folder picker)

Scenarios

1. Native-chat transcript plain click (full app context)

Seeded a Claude JSONL transcript into a real native-chat pane (data-native-chat-root). Plain click on the PR (https://example.com/qa-native-chat-link) opened the shared destination popover in the live chat UI, with sidebar, tab strip, explorer, and composer visible.

Visible: URL, copy, settings gear, Orca Browser with ⌘ Click (primary because Open links in Orca was on), System Browser with ⇧⌘ Click.

01-native-chat-transcript.png
02-plain-click-popover.png

Backing: popover had both data-link-action-popover and data-terminal-link-action-popover. window.api.shell.openUrl was not invoked (plain click asked, did not open).

2. Keyboard Enter + hide/reveal (editor follow-up)

Focused the PR and pressed Enter. Popover opened, anchored under the focused link (focus ring visible). document.activeElement stayed on the link.

Hide (setTabViewMode → terminal) while popover open: popover gone, chat root unmounted. Reveal back to chat: popover stayed dismissed, 3 links still rendered.

03-keyboard-enter-popover.png

3. Preference swap (primary/alternate)

Set openLinksInApp: false. Plain click showed System Browser as ⌘ Click primary and Orca Browser as ⇧⌘ Click alternate.

04-system-primary-popover.png

4. Modifier bypass

Playwright Meta+click did not drive the React handler (no popover, no observed open). A dispatched MouseEvent with metaKey: true on the real docs <a> was defaultPrevented and did not open the popover. System-browser launch was not executed (safety).

5. Toggle off

terminalLinkActionPopoverEnabled: false + openLinksInApp: true. Plain click on the PR did not show a popover; createBrowserTab ran with that URL { activate: true }. Orca in-app browser showed Example Domain at https://example.com/qa-native-chat-link while the chat tab remained in the strip.

05-toggle-off-orca-browser.png

6. mailto unchanged

Click on mailto:[email protected] did not open the popover. Capture-phase preventDefault was used so the host mail client would not steal focus.

7. Terminal shared popover (no regression)

Echoed https://example.com/qa-terminal-shared-popover in the real xterm pane and clicked the rendered URL. The same popover appeared (Orca Browser / System Browser, copy, gear) plus the existing terminal hover hint: “Click for actions, ⌘+click to open, or ⇧⌘+click for system browser”.

06-terminal-url.png
07-terminal-shared-popover.png

Unverified / constrained gaps

  • Structured native chat UI: not a separate live structured-agent session. Transcript Claude native-chat was exercised end-to-end; structured session uses the same useNativeChatLinkActions hook but was not rendered as its own surface.
  • System Browser row / Shift+⌘ actual launch: not clicked, to avoid stealing OS focus. Preference labels and shortcuts were verified visually. shell.openUrl wrap did not observe IPC for modifier-open (preload surface may not be interceptable); reported as a safety-constrained route gap.
  • SSH / remote owner eligibility: remote source-owner behavior was not run against a throwaway Linux SSH target. docker info hung with no output (>40s) and was aborted. Needs a separate host lane once Docker is available.
  • Mobile: PR diff does not change the mobile app native-chat link path; mobile QA skipped.
  • File links: README.md in the assistant turn was not a file:// markdown link in this transcript, so the existing native-chat file opener was not re-clicked in-app.

Cleanup

Stop only recorded PIDs 36638 / 37892 / 40575 after verifying command lines contain this worktree and /tmp/orca-qa-19130. Isolated profile and demo repo remain under /tmp/orca-qa-19130 for inspection.

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

Important

This delta is clean and fixes the E2E-selector regression, but the second finding from the prior review is still unaddressed and blocks merge: a chat link whose source owner resolves to unknown renders a "System Browser" row that silently does nothing, because openHttpLink early-returns for sourceOwner.kind === 'unknown' (lib/http-link-routing.ts:125). See the open thread on native-chat-http-link-source-owner.ts:23. The two commits here touch neither that resolution nor the click-consumption path, so the dead end remains.

Reviewed changes

  • Restored data-terminal-link-action-popover — the shared LinkActionPopover now keeps both the new generic attribute and the legacy terminal attribute, so the three terminal E2E specs (terminal-link-click-ownership, paired-remote-terminal-browser-link, golden-terminal-file-link) keep matching.
  • Dismissed the popover on scope change / hide — useNativeChatLinkActions gained a { sessionId, isVisible } scope and clears a pending request when the transcript's workspace/session changes or the view goes hidden, avoiding a stale popover floating over a switched or hidden surface.
  • Anchored keyboard activation to the focused link — a detail === 0 click now positions the popover at the link's bounding rect instead of the (0,0) pointer position.
  • Focused restoration to the clicked anchor — restoreFocus targets the clicked link, falling back to rootRef when the anchor has since been disconnected.

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

@brennanb2025

brennanb2025 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Follow-up Electron QA — actual Orca Browser row + modifier clicks

Narrow local Grok QA on HEAD 0fb171673f using the reused isolated profile (/tmp/orca-qa-19130). Prior plain-popover / keyboard / preference-label / toggle-off / terminal-popover proof is unchanged.

1. Real Orca Browser popover row (not a label-only check)

Plain Playwright click on native-chat the PR opened the shared destination popover. Then a real Playwright click of the Orca Browser row (getByRole('button', { name: 'Orca Browser ⌘ Click' })) created in-app browser tab fb120270-bc29-4384-8727-c20a158831f3 at https://example.com/qa-native-chat-link.

09-followup-popover-before-orca-row.png
10-followup-orca-browser-row.png

2. Real Playwright Meta-click → in-app browser

openLinksInApp: true. locator.click({ modifiers: ['Meta'] }) on native-chat the docs. Trusted event (isTrusted: true, metaKey: true, button: 0). New in-app tab 611cbb8b-5d1a-44e8-812a-7a73cb8fd6ad at https://example.com/qa-assistant-docs. Not a synthetic MouseEvent.

11-followup-meta-click-docs.png

3. Real Playwright Shift+Meta with system-primary → in-app alternate

openLinksInApp: false. locator.click({ modifiers: ['Meta', 'Shift'] }) on native-chat the PR. Trusted metaKey+shiftKey. New in-app tab 17f9286b-245c-4d79-805c-0d945a043330 at https://example.com/qa-native-chat-link. Renderer shell.openUrl stub recorded zero calls (system browser not launched).

12-followup-shift-meta-in-app.png

Remaining constrained gaps

  • Structured native-chat UI: isolated profile has no live structured-agent session tab and no store action to create one without launching a real agent. Skipped without fixture redesign.
  • System Browser row / mail client: not clicked, to avoid stealing OS focus.
  • SSH / remote owner: separate lane.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review status at 0fb171673f6b09c0e5be77eada8b8ea9641fae5b: code review clean; validation incomplete — do not land yet.

Three independent Codex review passes used the coordinator's same model and reasoning effort (gpt-6-astra, medium). Opening and closing readiness reviews are complete. The final full-diff review found zero new issues, including performance and resource-lifecycle review. Changes stayed within the native-chat link-action scope and reuse existing routing, ownership checks, and popover behavior.

Two focused fixes were pushed:

  • 0cd72064af: dismiss stale chat popovers on hide/session/workspace/context transitions; anchor keyboard activation to the focused link and restore focus; preserve the established terminal popover selector used by existing E2E specs.
  • 0fb171673f: consolidate the duplicated store mock that reproducibly broke eight hook tests. No assertions were removed and no production behavior changed in this commit.

Verification: 145 focused regression tests passed after the final fix, with web typecheck, lint/format/diff checks and commit hooks passing. All-project typechecks passed on the production-equivalent preceding commit. Opening readiness separately recorded 187 tests across 15 suites; these overlapping batches are not additive. Latest-head CI remains queued/in progress as of the closing review; E2E was skipped, so this is not a full-CI-green claim.

Grok exercised the real native-chat and terminal UI through background Electron/CDP, with screenshots attached:

  • Initial Electron evidence: plain-click popover, keyboard anchor/focus, hide/reveal dismissal, preference ordering, toggle-off in-app navigation, terminal popover reuse.
  • Follow-up Electron evidence: actual Orca Browser row click and trusted Meta / Shift+Meta clicks created in-app tabs at the expected URLs.

Remaining validation limits: live SSH owner routing and disconnected-owner rejection were not exercised because the isolated Docker prerequisite was unresponsive (both Docker info and a bounded socket ping). The SSH worker remains live but stalled on its model connection; no remote container or checkout was created. A separate structured-agent UI session, actual system-browser/mail-client launch, and native Windows/Linux/WSL interactions were not exercised. File-link, copy and settings execution were not re-exercised in Electron; automated coverage and unchanged routing are described in the reviews.

Before landing, finish required latest-head CI and complete live SSH QA on a responsive isolated target, or explicitly accept that gap while retaining the other coverage limits above. No merge was performed.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Follow-up at 3a0436006b4513e5502625931c14a25f8b36d7b8:

  • Docker recovered after the user-authorized restart. The normal restart timed out; Docker Desktop force-stop/start succeeded, followed by engine ping OK and server version 29.6.1. No reset or data pruning was performed.
  • Completed CI on the preceding commit exposed a stale reliability-manifest path to the renamed popover test. Fixed and pushed 3a0436006b: one manifest file, no runtime change. The gate command, test membership and measured evidence now reference the shared suite while preserving historical mutation findings.
  • The validator reproduced the failure before the fix and passes all 106 gates afterward. The exact four-file gate passed 44 tests; the broader focused run passed 125, with 12 terminal-routing tests separately. These overlapping batches are not additive.
  • Independent same-model review and all eight closing-readiness sections are clean at the pushed SHA. The workspace is clean. CI is running again at that SHA; no full-green claim yet.

Live SSH QA is still incomplete: Docker is now healthy, but the existing SSH worker remains stuck reconnecting to its model. Worker replacement permission is pending. The previous local Electron screenshots remain applicable because this commit changes only validation metadata; their structured-session/system-browser and other stated coverage limits remain. Do not land yet: required CI and live SSH proof remain outstanding.

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

Important

The new commit is a clean, mechanical config fix with no new issues, but it does not move the merge-blocking finding from the prior review: a chat link whose source owner resolves to unknown still renders a "System Browser" row that silently no-ops, because openHttpLink early-returns for sourceOwner.kind === 'unknown' (lib/http-link-routing.ts:125). Neither that resolution (native-chat-http-link-source-owner.ts:23) nor the click-consumption path is touched by this delta.

Reviewed changes

  • Reliability-gate test-path refresh — config/reliability-gates.jsonc now references the renamed link-actions/LinkActionPopover.test.tsx in both command lists and in the mutation-evidence entry (date / durationSeconds / summary updated). No dangling references to the removed TerminalLinkActionPopover.test.tsx remain, and the file stays valid JSONC.

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

@brennanb2025

Copy link
Copy Markdown
Contributor Author

SSH UI evidence for HEAD 3a0436006b: a real native-chat link popover in the SSH demo-project workspace routed its Orca Browser row to a container-only HTTP page; remote request logs and host DNS failure proved SSH network execution. Disconnecting with the popover open produced the SSH browser error page, without reaching the remote endpoint.

Qualification: direct-SSH native chat currently uses the local transcript adapter, so the remote JSONL fixture was staged byte-identically on the desktop to render the real chat surface; workspace/PTY ownership, clicks and network routing were real. No paired-runtime or structured-agent transport pass is claimed.

Screenshots uploaded via gh image

SSH native-chat popover
SSH network-routed page
Disconnected SSH browser error

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Final review status at 3a0436006b4513e5502625931c14a25f8b36d7b8: PASS for the changed native-chat link-action scope. This supersedes the earlier pending SSH/CI status. No merge performed.

Same-model review/fix loops and opening/closing readiness reviews are complete, with zero unresolved findings, including performance and lifecycle review. Three focused fixes were pushed: stale-popover dismissal/keyboard anchoring and terminal selector compatibility (0cd72064af), the duplicated test-store mock (0fb171673f), and the renamed-test reference in the reliability manifest (3a0436006b). No unrelated product expansion was needed.

Latest-head CI has 17 passes, 11 conditional skips, no failures or pending checks. Static analysis, typecheck, all eight test shards, both packaging jobs and aggregate verification passed. E2E was skipped; the manual Electron evidence below is separately attributed. Focused local regression suites and the 106-gate validator also passed as detailed in prior comments; overlapping test batches are not additive.

Rendered evidence:

  • Grok local Electron screenshots and actual row/modifier navigation.
  • Linux SSH screenshots and backing proof: clicking the real native-chat Orca Browser row loaded a container-only URL through the workspace SSH connection. The remote server logged the request, while the desktop could not resolve that hostname. Disconnecting with the menu open produced an SSH-specific browser error without a remote request or observed local fallback. Disabling SSH browser routing removed the Orca Browser destination.

The SSH test used a byte-identical local transcript fixture because the existing direct-SSH transcript adapter reads locally. The rendered components, clicks, SSH workspace/PTY ownership, browser routing and remote HTTP request were real. This proves changed link routing, not end-to-end remote transcript delivery or a remotely hosted browser engine. The disconnect check proves SSH route failure, not early row disabling or an owner-generation race.

Residual coverage limits remain documented: no live structured-agent/paired-runtime session, owner re-registration race, remote modifier variants, actual system-browser/mail-client launch, or native Windows/WSL UI run. No new defect was established by those limits; expanding unchanged transport/platform behavior is outside this focused PR.

The replacement SSH worker completed, its disposable containers/app/profile/keys were cleaned up, and its child worktree and evidence were preserved. The independent final readiness reviewer closed all eight sections for this scope. The PR branch is pushed and the coordinator workspace is clean.

@brennanb2025
brennanb2025 merged commit 20eea18 into main Sep 6, 2026
28 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…lyai#19130)

* feat(native-chat): offer the link-action popover for chat links

A plain click on an http(s) link in a native chat transcript opened the
system browser outright, ignoring the link-routing preference the same
link honors in the terminal. Chat now shows the terminal's destination
popover, with the modifier chords routing straight to a destination.

The popover, its request type, the destination policy and the routed open
move out of terminal-pane so both surfaces share one implementation; the
catalog keys keep their original namespace because they carry shipped
translations. Chat resolves its link owner from the session workspace
(runtime, then SSH, unresolved stays unknown) so a remote transcript only
offers Orca Browser when that host's managed browser route is eligible.

The existing toggle now governs both surfaces, so it is retitled; with it
off a chat link still opens on a plain click instead of going dead.

* Fix native chat link popover lifecycle and keyboard anchoring

* test(native-chat): use one store mock for link actions

* fix: update reliability gate for shared link popover tests

---------

Co-authored-by: Merge Sim <sim@local>
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