GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): open absolute folder links in the file explorer by shardmods · Pull Request #12800 · pingdotgg/t3code

Conversation

@shardmods

@shardmods shardmods commented Sep 20, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

What Changed

Absolute folder links in chat now open a file explorer rooted at the linked folder. Opening a child file or copying/dragging a mention keeps its absolute path, so it continues to refer to the correct location outside the chat's workspace. Directory suffixes are stripped before Windows path conversion when dragging mentions.

Why

Clicking a link to /Users/user/Coding/t3code-local from a chat in /Users/user/Amethyst/design opened a file preview and failed because the target was a directory. The existing directory fallback excluded absolute paths. This extends that fallback by giving the explorer the linked directory as its root.

Related: #10909 added the workspace-relative folder fallback. #12449 handles links to the current workspace root; this fix also handles directories outside that workspace.

UI Changes

Captured in an isolated web development instance using the same seeded chat. Before: the folder link produces a read error. After: it opens the folder's contents; selecting a child file opens its contents from that folder. The shared web/desktop panel changed; native desktop and mobile were not separately exercised. Captured at 1280 × 800 against the upstream base and the PR patch.

Before After
Folder link produces a file-read error Folder link opens its own file explorer

Before/after interaction recording — the fixed flow starts at 0:10; an idle pause is cut at 0:20.

Validation

  • 22 tests passed across FilePreviewPanel.test.ts, projectFilesQueryState.test.tsx, and fileTreeDragMention.test.ts.
  • Web typecheck passed with existing suggestions.
  • Targeted lint passed with existing React warnings; formatting and git diff --check passed.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Implemented and reviewed with GPT-6 through the Codex harness in T3 Code.

Summary by CodeRabbit

  • New Features

    • File browsing now supports directories hosted outside the current project context.
    • File links, context-menu actions, and drag-and-drop mentions can use resolved absolute paths when viewing external directories.
  • Bug Fixes

    • Improved path handling keeps displayed file links aligned with their actual project location while preserving correct selection behavior.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@shardmods
fix(web): open absolute folder links in the file explorer
fbb7d49
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Sep 20, 2026
@shardmods
shardmods marked this pull request as ready for review September 20, 2026 22:32
@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 6bfa2984-bcb4-4e31-adfb-64001155996c

📥 Commits

Reviewing files that changed from the base of the PR and between f6cc6bc and fbb7d49.

📒 Files selected for processing (4)
  • apps/web/src/components/files/FileBrowserPanel.tsx
  • apps/web/src/components/files/FilePreviewPanel.tsx
  • apps/web/src/components/files/fileTreeDragMention.test.ts
  • apps/web/src/components/files/fileTreeDragMention.ts

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


📝 Walkthrough

Walkthrough

The file explorer now supports host directories outside the chat workspace. It resolves entry paths for links, file opening, and drag mentions while preserving original tree paths for deselection.

Changes

External File Paths

Layer / File(s) Summary
Path resolution and drag mentions
apps/web/src/components/files/FileBrowserPanel.tsx, apps/web/src/components/files/fileTreeDragMention.ts, apps/web/src/components/files/fileTreeDragMention.test.ts
FileBrowserPanel optionally resolves entries against cwd. Context-menu mentions, file opening, and drag mentions use resolved paths. Drag deselection keeps the original tree paths.
Host directory explorer integration
apps/web/src/components/files/FilePreviewPanel.tsx
Host directories use their relative path as the explorer CWD. The explorer remounts for the environment and CWD, displays the directory basename, enables absolute paths, and clears the selected tree path.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant FilePreviewPanel
  participant FileBrowserPanel
  participant DragMentionController
  participant Composer
  FilePreviewPanel->>FileBrowserPanel: Pass host directory CWD and absolutePaths
  FileBrowserPanel->>FileBrowserPanel: Resolve entry path against CWD
  FileBrowserPanel->>DragMentionController: Provide resolved path callback
  DragMentionController->>Composer: Create mention with resolved path
  DragMentionController->>FileBrowserPanel: Deselect original tree path
Loading

Suggested reviewers: maria-rcks

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description includes all required sections, explains the change and rationale, provides UI screenshots and an interaction recording, and completes the checklist. It also documents validation resul…
Title check ✅ Passed The title clearly and concisely describes the main change: absolute folder links now open in the file explorer.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shardmods
Merge branch 'main' into fix/absolute-folder-chat-links
3bca718
@shardmods

shardmods commented Oct 2, 2026

Copy link
Copy Markdown
Author

ov2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shardmods shardmods closed this Oct 2, 2026
@Vantrongs Vantrongs mentioned this pull request Oct 3, 2026
[Bug]: A chat link to a folder outside the workspace opens a failing file preview #15215
Closed
2 tasks done
@chisewaguri chisewaguri mentioned this pull request Oct 7, 2026
fix(web): folder links outside the workspace open a file explorer #16716
Closed
@realhasanshoaib realhasanshoaib mentioned this pull request Oct 15, 2026
fix(web): folder links outside the project open a file tree #19811
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@shardmods
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.