Skip to content

feat(files): reveal Source Control files and terminal file links in the file manager - #24502

Merged
nwparker merged 13 commits into
stablyai:mainfrom
AmoabaKelvin:feat/reveal-in-file-manager
Oct 6, 2026
Merged

nwparker merged 13 commits into
stablyai:mainfrom
AmoabaKelvin:feat/reveal-in-file-manager

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1266 $\color{#cf222e}{\Huge{\mathbf{−}}}$​70 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1196
Prod 30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​628 $\color{#cf222e}{\Huge{\mathbf{−}}}$​289 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​339

ELI5

When an agent creates or edits a file, you often want to find it in Finder to attach it, preview it or open it in another app. Until now you could only do that from the file explorer. You can now right-click a changed file in Source Control, or click a file path printed in a terminal, and choose Reveal in Finder (Reveal in File Explorer on Windows, Open Containing Folder on Linux).

What Changed

Before.

  • Source Control: right-clicking a changed file had no top-level reveal item. The only way was Open in ▸ Finder, one level down.
  • Terminal: clicking a file path or file link offered Open file and Open with default app, but no reveal.
  • The file explorer, editor tab and editor header each had their own reveal code. On a file that no longer existed they did nothing, and on a remote workspace they stayed clickable and showed an error afterwards.

After.

  • Source Control: Reveal in Finder is a top-level item on every changed-file row. The Finder entry is removed from that row's Open in submenu, so there is one way to do it, not two. The submenu still lists your apps.
  • Terminal: clicking a file link opens its popover (with Open file and Open with default app), which now also has Reveal in Finder, with the same icon as the other Reveal in Finder items. It works for absolute paths, relative paths (resolved against the pane's working directory), path:line forms (the line number is ignored) and file:// hyperlinks. A link to a file opens its folder with the file selected; a link to a folder selects the folder in its parent and never opens it, so a macOS app or project bundle can't be launched by "Reveal". Workspace-root links keep their existing Open in Finder row.
  • All five places (Source Control, terminal popover, file explorer, editor tab, editor header) now use the same reveal:
    • A missing file shows "File not found. It may have been moved or deleted."
    • On an SSH or remote workspace the menu item is shown greyed out with a "Local only" hint, since a file on another machine cannot be shown in this machine's file manager. The terminal popover has no greyed-out rows, so there the row is simply left out.
    • A deleted file in Source Control has the item greyed out.

Mechanism.

  • One function, revealInFileManager in src/renderer/src/lib/reveal-in-file-manager.ts, now does the reveal for every surface, with one label helper and one "is this blocked" check (isRevealInFileManagerBlocked, built on the existing isLocalPathOpenBlocked). The file explorer, editor tab and editor header dropped their own handlers and their separate remote guard (editor-tab-local-open-guard.ts is deleted).
  • The terminal row is added to the existing file-link popover, so it reuses the popover's own link resolution (relative paths, path:line, file:// hyperlinks) and needs no tracking of the link under the pointer.
  • The popover now knows which host runs the pane's shell, and offers the row only for a file on this machine.
  • The row calls the same shared reveal as the other four menus. It hands the path to the main process, which checks it and selects it in its parent folder.
  • Platform wording comes from one check, getLocalFileManager().

Why

Agents print paths and change files constantly, and the two places you see those files, Source Control and the terminal, were the two places without a reveal action.

Alternatives considered:

  • Keep both the new item and the Finder entry under Open in. Two items on one row doing the same thing, and they disagreed about when they were disabled on remote workspaces. The top-level item matches the file explorer and editor tab menus, so it was kept.
  • Put terminal reveal in the terminal's right-click menu. An earlier version of this PR did that, tracking the link under the pointer. A link's file actions already live in the popover that opens when you click it, so the row lives there instead, and the hover tracking is gone.
  • Add the two new entry points and leave the three older menus alone. That would have left five reveal items with three different behaviours on a missing file or a remote workspace.
  • Hide the item on remote workspaces, or leave it clickable and show an error. The app did all three depending on the menu. Greyed out with "Local only" is what the sidebar and file explorer toolbar menus already did for this same action, and it tells the user why before they click.

Linked Issue

Fixes #24003

Related: #24020 asks for a reveal entry inside the Open in list. This PR goes the other way for Source Control file rows (one top-level item, none inside Open in); the sidebar worktree Open in menu is unchanged.

Visual Proof

Captured from this PR's current head in a hidden Orca window on macOS. Before is current main.

Before After
Terminal: click a file link popover with Open file and Open with default app same popover with a Reveal in Finder row
Source Control: right-click a changed file Open in submenu lists VS Code and Finder, no top-level reveal top-level Reveal in Finder; Open in lists VS Code only
Terminal: workspace-root link (unchanged, no extra row) Terminal: right-click a file link (no reveal item) Terminal: folder link (selected in its parent, never opened)
workspace-root popover with Switch workspace and Open in Finder terminal right-click menu without Reveal in Finder folder link popover with Reveal in Finder

Unchanged by the latest update (screenshots from earlier in this PR): deleted Source Control row greyed out, file explorer row, editor tab.

03-source-control-deleted-row-reveal-disabled 08-file-explorer-row-reveal-in-finder 09-editor-tab-reveal-in-finder

Testing

  • Automated. Unit tests cover the shared reveal function, label and remote check; the terminal popover row (present for a local file link, absent for workspace-root links and for files not on this machine, a folder link revealed in its parent and never opened); the right-click menu no longer having the item; and each of the other menus. The Source Control e2e spec asserts the item is offered on a changed-file row.

  • Run locally, macOS: pnpm tc:web, pnpm run check:code-quality:changed and the changed and dependent unit test files pass. Each new test for the directory, owner-lookup and re-check behaviour was confirmed to fail with its fix reverted. The two e2e specs pass (5 of 5) through the hidden-window harness; that run predates the directory and re-check changes, which did not alter either spec.

  • Not run locally: pnpm tc:node (the change is renderer-only), the full test suite and pnpm build. CI covers these.

  • Platforms: macOS only. Windows, Linux, WSL and SSH behaviour is covered by unit tests, not by running the app there.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Remote SSH. Reveal is greyed out with "Local only" in the menus, and left out of the terminal popover, for files on another machine.
  • Local file while a remote runtime is focused. The item is greyed out with "Local only" even though the file is local, because the main process refuses every reveal in that state (src/main/ipc/shell.ts). Before, the editor tab and header failed silently there. The underlying refusal is the subject of [Bug]: 'Reveal in Finder' misidentifies local worktree as remote project after switching worktrees #16539 and is not changed here.
  • Windows. The terminal row is in the link's click popover, so Windows right-click-to-paste doesn't affect it.
  • Trailing-slash paths. Plain text such as recordings/ is not detected as a link today, so it gets no reveal item; ./recordings and src/components do. Link detection is unchanged here.
  • Web client. shell.openInFileManager is a no-op there, so the file explorer, editor tab and editor header item does nothing when no remote owner applies. Before, it opened a browser tab at the file's path, which was not a reveal either.
  • Files removed from the index but still on disk. The staged "deleted" row has reveal greyed out; the untracked row for the same file has it enabled.
  • Translations. The Spanish reveal labels and "Local only" were added. "Local only" is still English in Korean and Chinese, as it was before.
  • Performance. The terminal row is added only when the popover opens; nothing runs on hover or mouse move.
  • Mobile, wire compatibility, security. No change: nothing a client and host exchange was touched.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Refactors file reveal and terminal link handling across the UI.

The PR appears safe to merge based on the changes since the previous review.

Summary

The PR adds file-manager reveal actions to Source Control rows and terminal file links, and shares reveal behavior across the file explorer and editor menus.

  • The change since the previous review removes Reveal from virtual check-details tabs.
  • The previously reported missing-path cache issue is fixed; a missing OSC hyperlink target is not retained as a negative cache entry.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Source Control, explorer, or editor menu] --> R[Shared reveal action]
  T[Terminal link hover] --> H[Resolve path and check availability]
  H --> M[Right-click menu]
  M --> R
  R --> O[OS file manager]
Loading

Reviews (3) · Last reviewed commit: "fix(reveal): drop reveal from check-deta..."

@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 suggestion only — a CI-coverage gap in the new e2e test.

Reviewed changes — full diff of PR #24502 at 130b027e9f, covering the new shared reveal action, its wiring into five surfaces, terminal hovered-link tracking, and the i18n updates:

  • Shared reveal action — src/renderer/src/lib/reveal-in-file-manager.ts centralizes the platform label, the blocked check (isRevealInFileManagerBlocked) and the result toast; editor-tab-local-open-guard.ts is deleted and its callers migrate to the shared check.
  • Terminal link reveal — terminal-hovered-file-link.ts records the link under the pointer for both detected paths and OSC 8 links; the context-menu trigger resolves it at right-click, re-checks the click position against the link range, and directory links are opened as directories.
  • Existence probing — probeTerminalPathExists factors the existing pane cache with a recheckMissing option, used by the path provider and by OSC 8 links.
  • Source Control — a top-level reveal item replaces the "Open in ▸ Finder" entry, gated by hasWorkingTreeFile for deleted rows.
  • i18n — new toast strings plus label/Local only translations across six locales.

The refactor is careful: the one observable behavior change (an explicitly-local file while a remote runtime is focused is now blocked) matches the main process's openInFileManager refusal and is documented in the PR body. Unit coverage for the shared action, hover lifecycle, trigger, and all five menus is solid, and I found no runtime bug in the implementation.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3dd7ace3-d778-4895-8152-1f9865200af9
📥 Commits

Reviewing files that changed from the base of the PR and between 6eb780dd04a569bb9cf4acdef2a623981389cf0c and 5168a64.

📒 Files selected for processing (17)
  • src/renderer/src/components/editor/EditorPanelHeaderPath.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeaderPath.tsx
  • 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/tab-bar/EditorFileTab.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalContextMenu.test.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-link-action-request.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-mount-preparation.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/tab-bar/EditorFileTab.test.tsx
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

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


📝 Walkthrough

Walkthrough

The change adds shared file-manager reveal helpers and uses them in editor, file-explorer, and source-control menus. Blocked actions are disabled and display a local-only hint. Source-control menus separate reveal from configured external applications and disable reveal for deleted entries. Eligible local terminal file links receive a secondary reveal action. Tests cover availability, invocation, error handling, and translation behavior.

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 5168a

A terminal path that becomes available after an earlier failed check may remain unclickable until its cached result is evicted or the cache is recreated. The virtual-tab reveal issue is fixed; the remaining risk is bounded but warrants owner awareness.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 5168a

Reveal remains user-initiated and validates the target before selecting it in the file manager. Remote ownership is normally blocked. Recovery-time ownership handling is not fully established, but no introduced file-reading, execution, or data-transfer vulnerability was verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • observed — The native sink operates with the desktop client's filesystem access. It accepts existing absolute paths without worktree containment and calls showItemInFolder rather than reading contents or launching the target. This native behavior predates the PR; terminal reveal adds a new user-selected caller.

Security Findings and Attack Paths

  • inferred — Attacker-influenced terminal output can supply a path for an eligible local reveal, but reaching the native action requires an accepted pointer gesture and explicit action selection. The inspected sink does not establish a file-content disclosure or target-execution attack.

Trust Boundaries and Controls

  • observed — The new terminal gate requires local source ownership. The existing resolver preserves retained SSH and runtime ownership and classifies ownerless legacy remote identifiers as unknown, but returns local when the transport is absent and no retained owner is available.

Resilience and Maintainability Implications

  • inferred — Ownership is sampled when the request is created, while target existence and active-runtime blocking are checked again at native execution. Whether recovery can leave a clickable pane without trustworthy transport ownership remains unresolved; transport deletion and a retained closure alone do not prove an exploitable transition.

Hardening Proposals

  • proposed — Consider requiring affirmative local ownership when transport metadata is unavailable and revalidating or invalidating pending reveal actions on ownership changes. Lifecycle tests across reconnect and transport replacement would distinguish genuine control gaps from safe synchronous transitions.
🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning Issue [#24003] requests a terminal reveal action in the right-click menu and says directory links should open the directory. The PR adds reveal to the file-link popover instead; the terminal right-cli… Add the reveal action to the terminal right-click menu for detected file paths and links. Change directory handling to open the directory directly. Add or update tests for both behaviors.
Out of Scope Changes check ⚠️ Warning src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx adds a Spanish translation test for the unrelated “Supported agents” label and changes translation cleanup. These changes do n… Remove the unrelated NativeChatSupportedAgents.test.tsx changes from this PR, or move them to a focused change.
Docstring Coverage ⚠️ Warning Docstring coverage is 28.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 66 functions across 41 files. (6 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: adding file-manager reveal actions to Source Control and terminal file links.
Description check ✅ Passed The description is detailed and covers the template’s main sections, including the user-facing changes, rationale, linked issue, visual proof, and testing. The full lint, typecheck, test, and build ch…
Full details: Linked Issues check

Explanation

Issue [#24003] requests a terminal reveal action in the right-click menu and says directory links should open the directory. The PR adds reveal to the file-link popover instead; the terminal right-click menu has no reveal action. terminal-file-link-actions.ts also documents that reveal selects a folder in its parent and never opens it. The Source Control action and shared reveal behavior implement the other requested work.

Full details: Out of Scope Changes check

Explanation

src/renderer/src/components/settings/NativeChatSupportedAgents.test.tsx adds a Spanish translation test for the unrelated “Supported agents” label and changes translation cleanup. These changes do not support issue [#24003] or file-manager reveal behavior.

Full details: Docstring Coverage

Explanation

Docstring coverage is 28.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 66 functions across 41 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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: Advanced

Run ID: 89b1a027-1add-4a68-8782-577c9c0cb1cf

📥 Commits

Reviewing files that changed from the base of the PR and between 9e34bd0 and 130b027e9f524dccab2537e4a9489917a6c46dc6.

📒 Files selected for processing (46)
  • src/renderer/src/components/editor/EditorPanel.tsx
  • src/renderer/src/components/editor/EditorPanelHeader.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeader.tsx
  • src/renderer/src/components/editor/EditorPanelHeaderPath.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeaderPath.tsx
  • src/renderer/src/components/editor/EditorPanelShell.header.test.tsx
  • src/renderer/src/components/editor/EditorPanelShell.tsx
  • src/renderer/src/components/local-only-menu-hint.tsx
  • src/renderer/src/components/right-sidebar/file-explorer-row-context-menu.test.tsx
  • src/renderer/src/components/right-sidebar/file-explorer-row-context-menu.tsx
  • src/renderer/src/components/right-sidebar/source-control-entry-context-menu.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/branch-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/entry-context-menu.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsx
  • src/renderer/src/components/tab-bar/EditorFileTab.test.tsx
  • src/renderer/src/components/tab-bar/EditorFileTabContextMenu.test.tsx
  • src/renderer/src/components/tab-bar/EditorFileTabContextMenu.tsx
  • src/renderer/src/components/tab-bar/editor-tab-local-open-guard.test.ts
  • src/renderer/src/components/tab-bar/editor-tab-local-open-guard.ts
  • src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalContextMenu.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalContextMenu.tsx
  • src/renderer/src/components/terminal-pane/TerminalPaneSurface.tsx
  • src/renderer/src/components/terminal-pane/terminal-file-link-hit-testing.ts
  • src/renderer/src/components/terminal-pane/terminal-file-open-routing.ts
  • src/renderer/src/components/terminal-pane/terminal-hovered-file-link-sources.test.ts
  • src/renderer/src/components/terminal-pane/terminal-hovered-file-link.test.ts
  • src/renderer/src/components/terminal-pane/terminal-hovered-file-link.ts
  • src/renderer/src/components/terminal-pane/terminal-link-handlers.ts
  • src/renderer/src/components/terminal-pane/terminal-osc-link-routing.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-pane-links.ts
  • src/renderer/src/components/terminal-pane/terminal-path-exists-cache.ts
  • src/renderer/src/components/terminal-pane/use-terminal-context-menu-trigger.test.ts
  • src/renderer/src/components/terminal-pane/use-terminal-context-menu-trigger.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-context-menu.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/local-file-manager-label.ts
  • src/renderer/src/lib/reveal-in-file-manager.test.ts
  • src/renderer/src/lib/reveal-in-file-manager.ts
  • tests/e2e/golden-source-control-open-diff.spec.ts
  • tests/e2e/golden-terminal-file-link.spec.ts
💤 Files with no reviewable changes (9)
  • src/renderer/src/components/tab-bar/EditorFileTab.test.tsx
  • src/renderer/src/components/tab-bar/editor-tab-local-open-guard.ts
  • src/renderer/src/components/tab-bar/editor-tab-local-open-guard.test.ts
  • src/renderer/src/components/editor/EditorPanel.tsx
  • src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeader.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeader.tsx
  • src/renderer/src/components/editor/EditorPanelShell.header.test.tsx
  • src/renderer/src/components/editor/EditorPanelShell.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/reveal-in-file-manager branch from 130b027 to d39e45f Compare October 2, 2026 03:35

@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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Hide reveal for virtual check-details tabs. · EditorFileTabContextMenu.tsx:238-240

src/renderer/src/components/tab-bar/EditorFileTabContextMenu.tsx:238-240
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Hide reveal for virtual check-details tabs.

When a local check-details tab opens this menu, revealBlocked is false. The item then sends the tab’s virtual file.filePath to the OS file manager. The editor header already excludes this mode. Exclude it here too, so the tab menu does not offer an action for a path that is not an on-disk file. (raw.githubusercontent.com)


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 57fc03ac-ae1c-46e7-9a8d-4a1bc11e7ad6

📥 Commits

Reviewing files that changed from the base of the PR and between 130b027e9f524dccab2537e4a9489917a6c46dc6 and d39e45fdaef3627c8c6654da5da5ba3b01544fc7.

📒 Files selected for processing (7)
  • src/renderer/src/components/editor/EditorPanelHeaderPath.test.tsx
  • src/renderer/src/components/editor/EditorPanelHeaderPath.tsx
  • src/renderer/src/components/tab-bar/EditorFileTabContextMenu.test.tsx
  • src/renderer/src/components/tab-bar/EditorFileTabContextMenu.tsx
  • src/renderer/src/components/terminal-pane/terminal-hovered-file-link-sources.test.ts
  • src/renderer/src/components/terminal-pane/terminal-path-exists-cache.ts
  • tests/e2e/golden-source-control-open-diff.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@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 — incremental delta since the prior pullfrog review at 130b027e9f, three follow-up fixes on top of the feature commit c98a446ac6:

  • Tagged the Source Control reveal e2e test @golden so test:e2e:source-control-golden (and the release gate) actually runs it instead of filtering it out.
  • Included the file's own externalSshTargetId in the reveal block owner in the editor header path menu and the editor tab context menu, so a restored SSH file is greyed out as "Local only" even when its worktree resolves as local.
  • Stopped probeTerminalPathExists seeding a negative existence answer when recheckMissing re-asks, so hovering a file:// link before its file exists no longer hides the same path when it is printed later as plain text.

All three land with tests that fail against the prior code. I ran the changed and dependent unit test files (61 tests across terminal-hovered-file-link-sources, terminal-hovered-file-link, reveal-in-file-manager, EditorPanelHeaderPath, EditorFileTabContextMenu) and they pass.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@AmoabaKelvin

Copy link
Copy Markdown
Collaborator Author

@coderabbitai on the outside-diff note about check-details tabs: confirmed and fixed in b1664ff85b. Those tabs use the same tab menu and their path is a synthetic id, so reveal could only fail (silently on main, with a not-found message on this branch). The tab menu now leaves the item out for that mode, as the editor header already does. Test added; it fails without the change.

@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 — incremental delta since the prior pullfrog review at d39e45fdae, a single commit that closes the coderabbit finding about virtual editor tabs:

  • Hid the reveal item on check-details tabs. EditorFileTabContextMenu.tsx now renders the reveal item only when file.mode !== 'check-details', matching the isVirtualEditorTab gate the editor header already used. Those tabs carry a synthetic file.filePath, so the item could only have failed. Covered by an exact new test that would fail against the prior unconditional render.

The change is correct, matches the existing header behavior, and touches only the tab context menu and its test. No other files changed in this commit.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@AmoabaKelvin, thanks for the fix and clarification. Omitting reveal for check-details tabs prevents an action on a synthetic path ID and matches the editor header. The reported regression test covers this case.


✏️ Learnings added
Learnt from: AmoabaKelvin
URL: https://github.com/stablyai/orca/pull/24502

Timestamp: 2026-10-02T04:26:10.189Z
Learning: In the React/TypeScript editor UI, check-details tabs share the editor tab context menu but use synthetic path IDs rather than filesystem paths. The reveal action must be omitted for this mode in src/renderer/src/components/tab-bar/EditorFileTabContextMenu.tsx, consistent with the editor header.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

@nwparker
nwparker force-pushed the feat/reveal-in-file-manager branch 2 times, most recently from 4eb5098 to c6dc018 Compare October 5, 2026 06:11

@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 — incremental delta since the prior pullfrog review at b1664ff85b, two test-only commits (61f326039e, 08b7d2096c) on top of c6dc018882:

  • Restored per-locale discard-description assertions in source-control-discard-localization.test.ts. The branch had regressed to asserting the English strings for every locale, so the es/fr/ja/ko/zh cases could not fail; the refactor to an object table with $locale naming restores an exact expected string per locale. All six values match the catalogs.
  • Fixed the untranslated-locale fallback test in NativeChatSupportedAgents.test.tsx. The fallback case now uses a synthetic test-missing-label locale instead of es — es.json ships "label": "Agentes apoyados:", so the old es-based "undefined" assertion no longer held. A new exact test locks in the Spanish label.
  • Extended the user-named file access ratchet in local-file-access.test.ts with terminal-hovered-file-link.ts, which calls userNamedFileAccess() for the explicit directory reveal. The ratchet compares sorted file lists with toEqual, so the omission would fail.

I ran the three changed files (30 tests) and they pass. The assertions are exact, so each new test fails against the previously weakened form.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker force-pushed the feat/reveal-in-file-manager branch from 08b7d20 to 6eb780d Compare October 5, 2026 08:23

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

Unified reveal implementation preserves file/worktree/SSH/WSL host boundaries, disables unavailable remote/deleted/virtual targets, and limits probing to interaction. Fixed rebase to scoped stat access; directory reveal regression and access contract covered. 106 tests, web typecheck, quality gate and standalone React Doctor pass.

Current-main translation test drift repaired without changing production catalogs; the translation-sensitive audit passes 856 tests across 95 suites, including real Spanish label and deliberately missing-locale fallback coverage.
The file-access ratchet now registers the explicitly clicked Reveal action; reviewed that hover alone grants no user-file access. Focused file-access/context-menu/source tests pass 45 tests.

Rebased again onto main e46fa0d. Removed duplicate upstream localization repair, retained explicit missing-locale fallback and real Spanish rendering proof. Test cleanup restores the translation namespace after removing its synthetic locale so lazy loading remains independent.

Code review and local regression validation are complete on this exact commit: 6eb780dd04a569bb9cf4acdef2a623981389cf0c. Fresh GitHub Actions static analysis is currently QUEUED waiting for ubuntu-24.04-arm runners. CI has been triggered but has not completed on this rebased commit. This approval records the code review; pending required checks must still finish before merge. No PR merge performed.

@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 — incremental delta since the prior pullfrog review at 08b7d2096c: the rebase onto e46fa0df13 plus one test-only commit (6eb780dd04).

  • Dropped a duplicate localization repair. The branch no longer modifies source-control-discard-localization.test.ts; it now matches main, which already asserts the per-locale discard strings. A three-dot diff against origin/main returns empty for that path, and its 6 cases pass.
  • Kept and hardened the untranslated-locale contract. NativeChatSupportedAgents.test.tsx seeds an empty test translation bundle and switches to it for the fallback case (rather than a synthetic test-missing-label locale), restores the translation namespace in afterEach via loadNamespaces, and adds an exact Spanish test asserting the label both from i18n.getResource and in rendered markup.

The delta is test-only. No production behavior changed, the assertions are exact (the Spanish and fallback tests fail against a missing or wrong translation), and all prior pullfrog threads are resolved. I ran the four delta-touching files — 46 tests pass — and oxlint is clean on them.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor

Please hold this one from merging for a bit. We're moving the terminal reveal out of the terminal's right-click menu and into the popover that opens when you click a file link, next to "Open file" and "Open with default app". That keeps all of a link's file actions in one place. The Source Control change stays as it is. I'll push the update here and summarize it.

@brennanb2025

brennanb2025 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Pushed the change I mentioned, one commit on top of Neil's (no force):

  • Terminal: "Reveal in Finder" is now a row in the popover that opens when you click a file link, under "Open file" and "Open with default app", instead of an item in the terminal's right-click menu. It works for the same links: absolute and relative paths, path:line, and file:// hyperlinks. A folder link selects the folder in its parent and never opens it, so a macOS .app or .xcodeproj can't be launched by "Reveal". The row is left out for files that aren't on this machine, and workspace-root links keep their existing "Open in Finder" row.
  • Removed: the right-click item, the hover tracking of the link under the pointer, and the hover existence check. Since the row goes through the shared reveal (the main process checks the path and selects it in its parent), the renderer no longer needs the folder check or its file-access grant, so the access ratchet is back to main's version.
  • Unchanged: the Source Control row, the shared reveal function across the other four menus, the "Local only" state and the error messages.

Net −829 lines. 587 tests across the touched terminal, Source Control, editor, file-access and translation files pass, plus a clean web typecheck. I updated the description and its screenshots to match.

Update: the popover row now has the same icon as every other Reveal in Finder item (one more small commit; the screenshots below are from it).

How it looks now (hidden Orca window on macOS; before is current main):

Before After
Click a terminal file link popover without reveal popover with Reveal in Finder
Right-click a changed file in Source Control Finder inside Open in top-level Reveal in Finder

The terminal's right-click menu has no reveal item, a workspace-root link keeps only its own "Open in Finder" row, and a folder link's "Reveal in Finder" selects the folder in its parent:

right-click menu without reveal workspace-root popover folder link popover

@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

pnpm run check:code-quality:changed fails on a new type assertion in the new test file — see the inline comment.

Reviewed changes — incremental delta since the prior pullfrog review at 6eb780dd04, the single commit 9283791737 that moves terminal file-link reveal out of the right-click menu and into the link's click popover:

  • Moved terminal reveal into the click popover. handleTerminalFileLink now attaches a Reveal in <file manager> row through the shared LinkActionPopover, offered only when the path is not a workspace root, canOpenWithSystemDefault is true, the pane shell's sourceOwner.kind is local, and the existing blocked check passes. Workspace-root links keep their own "Open in Finder" alternate and omit the row.
  • Added secondaryActions to the shared link-action contract. LinkActionRequest carries shortcut-less rows, and LinkActionPopover.ActionRow takes an explicit shortcut ('primary' | 'alternate' | null) and drops the key combo for them.
  • Removed the hover-tracking subsystem. terminal-hovered-file-link.ts and its two test files, setHoveredOscFileLink, probeTerminalPathExists, the terminal context-menu fileLinkReveal plumbing, the terminal-reveal e2e block, and the local-file-access.test.ts ratchet entry for the deleted module are gone.
  • New unit coverage asserts the reveal row appears only for a local file, is omitted per host owner and while a remote runtime is focused, and that secondary rows render without a shortcut.

I ran the delta-touching and dependent test files (38 + 52 + 28 tests across the terminal link, popover, context-menu, file-access and reveal suites) — all pass — and pnpm tc:web is clean. The one failing gate is the changed-code quality check below.


Note: 1 inline comment(s) dropped because they did not anchor to lines inside the PR diff:

  • src/renderer/src/components/terminal-pane/terminal-file-link-actions.test.ts:4-10 (RIGHT) — start_line 4 (RIGHT) is not inside a diff hunk

Pullfrog  | Fix it ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@pullfrog

pullfrog Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the review on 9283791: the inline comment did not attach (its anchor sat outside the diff hunk and GitHub dropped it), so noting the one finding here.

pnpm run check:code-quality:changed fails at src/renderer/src/components/terminal-pane/terminal-file-link-actions.test.ts:8:

Do not use any type assertions.
src/renderer/src/components/terminal-pane/terminal-file-link-actions.test.ts:8 typescript(consistent-type-assertions)

settings: { activeRuntimeEnvironmentId: null as string | null } introduces a new casting finding, and the changed-code gate is enforced in CI. Prefer annotating the vi.hoisted callback's return type with settings: { activeRuntimeEnvironmentId: string | null } (the idiom already used in EditorFileTabContextMenu.test.tsx) rather than casting, so mocks.settings still accepts a runtime id where it is reassigned.

Everything else in the delta (the popover-based terminal reveal, the secondaryActions contract, and the hover-tracking removal) looks correct: 118 tests across the delta-touching and dependent suites pass, and pnpm tc:web is clean.

Pullfrog  | View workflow run | via Pullfrog | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker

nwparker commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Addressed the latest Pullfrog/CI finding in 8564398f5414638e1b5f45f211074b5fa2f8a484: the settings fixture now uses a checked variable type instead of the new type assertion. No production change was needed for that gate failure.

I reviewed the intervening terminal popover change as well. Reveal runs only when its action is clicked, selects local files/folders in their parent, and is omitted for SSH/runtime/unknown shell owners and remote-runtime focus. The former hover bookkeeping and filesystem probes are removed. The older virtual check-details, file-level SSH ownership, and golden-test tagging findings remain addressed; the removed hover-cache findings are superseded.

Nine focused menu/popover/reveal/access suites passed all 99 tests. The supported web typecheck, changed-code quality gate, standalone React Doctor and whitespace check pass. React Doctor only reports two existing menu complexity warnings. Fresh GitHub CI must pass this exact head before merge.

@nwparker
nwparker force-pushed the feat/reveal-in-file-manager branch from 8564398 to b77dd5f Compare October 5, 2026 23:46
@nwparker

nwparker commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Rebased the reviewed file-reveal implementation onto main 13d94ac and repaired the shared CI blocker: journal-submission-positions.test.ts imported codexProviderHandle twice on main, causing the merge-ref lint run to fail before PR tests. Removed only the duplicate import.

Preserved the upstream IME input and context-menu event extraction. 75 focused tests pass after rebase, including journal position, popover/reveal, changed editor/IME and localization tests; the earlier 149 link/reveal/host-routing tests passed before rebase. Official web typecheck, full oxlint and changed-code quality gate pass. Current tested head: b77dd5f18cd53a52add962ee3e9555e4c68a1a02. Fresh CI is required before merge.

@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 — incremental delta since the prior pullfrog review at 9283791737, one test-only commit (8564398f54) that closes the changed-code quality gate failure flagged in that review:

  • Typed the reveal settings fixture without a cast. terminal-file-link-actions.test.ts now declares the hoisted settings object with an explicit { activeRuntimeEnvironmentId: string | null } annotation inside the vi.hoisted callback instead of asserting null as string | null, so typescript(consistent-type-assertions) no longer fires. No production code changed.

I re-ran pnpm run check:code-quality:changed (0 findings across 24 changed files) and the file's 16 tests pass.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

AmoabaKelvin and others added 4 commits October 5, 2026 17:25
Reveal only existed on file explorer rows. Every reveal menu now shares
one action, so a missing file or a remote workspace behaves the same
in all of them.

Fixes stablyai#24003
A hovered hyperlink to a missing file saved "missing" in the cache plain
path links trust, hiding the path once the file existed. A tab holding an
SSH file from outside its workspace still offered reveal.
Their path is a synthetic id, so reveal could only fail.
nwparker and others added 4 commits October 5, 2026 17:25
…e right-click menu

The terminal "Reveal in Finder" action now lives in the file-link popover
(the one with "Open file" and "Open with default app"), as a row with no
click shortcut. It goes through the shared reveal, so a folder link (including
a macOS .app or .xcodeproj bundle) is selected in its parent and never opened.

The row is omitted, not disabled, when the file is not on this machine: an
SSH or runtime-owned file, a pane whose shell runs on another host, or while a
remote runtime is focused. Workspace-root links keep their own "Open in
Finder"/"Open folder" row and get no reveal row.

Removes the right-click path: the context-menu item, the hovered-link tracking
and its OSC 8 / path-existence probe refactors, the directory stat (and its
user-named file-access grant, which only served the open-a-folder behaviour),
and the right-click e2e case. Terminal files the PR touched are back to main
apart from the popover row.

Co-authored-by: Kelvin Amoaba <[email protected]>
@schneider-pxcenter

Copy link
Copy Markdown

Been waiting for this feature for a long time, nice job!

@nwparker
nwparker force-pushed the feat/reveal-in-file-manager branch from 144539f to ed7dac3 Compare October 6, 2026 00:35
@nwparker

nwparker commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Final integration repair preserves the click-popover Reveal action and Brennan’s new external-link icon flag. Local node and renderer typechecks pass; 84 focused tests plus 16 icon/action tests pass; all 114 older-release compatibility tests across 20 suites pass. Full default lint and the changed-code quality gate pass with no new findings.

CI prerequisites are repaired without changing application behavior: one canonical provider-handle test import, the PowerShell encoded-prompt expectation, and the exact parser version needed only by older released sources in compatibility tests. The parser is a development dependency. Fresh CI on the final head remains required before merge.

@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 — incremental delta since the prior pullfrog review at 8564398f54, a single commit that aligns the terminal popover's reveal row with the other reveal surfaces:

  • Gave the terminal popover's reveal row the ExternalLink icon. external: true is now set on the Reveal in Finder row in terminal-file-link-actions.ts, so LinkActionPopover.ActionRow draws the same lucide ExternalLink icon the Source Control and file explorer reveal items already use. external is display-only — consumed solely in LinkActionPopover.tsx:42-43 — so there is no behavioral side effect, and the test asserts the flag exactly.

Verified all prior pullfrog threads remain resolved and the commit touches only the popover row and its test. Cosmetic consistency fix; the PR is otherwise unchanged from the approved state.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (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 — incremental delta since the prior pullfrog review at 144539f907, a rebase that re-lands the icon fix plus three CI-reconciliation commits:

  • Re-landed the popover reveal-row icon. The ed7dac3c59 commit is content-identical to the previously reviewed 144539f907 (sets external: true on the terminal reveal row so it draws the same lucide ExternalLink icon as the other reveal surfaces). No change from the reviewed state.
  • Retained one canonical provider-handle import. f32059d35c restores the single codexProviderHandle import in journal-submission-positions.test.ts; test-only.
  • Retained the released journal parser dependency. 0895cea5b5 adds @streamparser/[email protected] to devDependencies (and the lockfile) and a rationale comment in tests/e2e/cross-version-wire/release-checkout.ts; test-infrastructure only.
  • Accounted for encoded Windows prompt lines. a181653d81 adds a Windows multi-line encoded-launch-line test and flips one promptCarried control assertion from win32 to darwin; test-only.

The three reconciliation commits are outside the reveal feature's surface and exist to keep the branch's CI green while it is behind main; each is test- or dependency-infrastructure only and carries no production behavior change. The reveal code is unchanged from the approved state, and all prior pullfrog threads remain resolved.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker

nwparker commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Integrated latest main after the shared startup-test conflict: retained the upstream long multiline Windows control and short multiline physical-one-line regression. Reveal behavior, remote-host guards and the author icon change remain intact.

86 focused tests, node and web typechecks, and all changed-code quality gates passed locally. Fresh CI on commit 5168a64 is required before merge.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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

Low merge risk after the final repairs. The shared reveal action preserves workspace and execution-host boundaries. Brennan’s popover icon change is retained, and the legacy-test prerequisites are repaired. Local typechecks, lint, quality gates, 86 focused integration tests, and 114 compatibility tests pass. The full PR Checks workflow and all runnable CI on this exact head have passed, and review findings are addressed. Pullfrog was manually disabled repository-wide and its integration-review run cancelled; the stale pending bot check is documented. The feature code is unchanged from its completed bot-reviewed state, and this integration was reviewed manually.

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.

[Feature]: Reveal in Finder from Source Control rows and from file paths/links in the terminal

4 participants