t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Files panel context menu has no Copy path, and copied mentions break in other projects

Open giovanecesar opened this issue 3 weeks ago • 1 comments

What happened

Right-clicking a file in the Files panel shows Open, Reveal in Finder, Open with, Copy mention, and Add to chat. It has no Copy path.

This causes two problems:

  1. A copied mention uses a path relative to the project. If you paste it into a thread in another project, it points at the wrong file or at no file.
  2. There is no way to copy the raw path to edit in the prompt, for example to change the filename or add a glob.

Proposal

Add "Copy full path" and "Copy relative path" to the Files panel context menu, using the same logic as chat file links. As an option, make Copy mention use the absolute path when it is pasted into a thread from a different project.

Diagnosis

apps/web/src/components/files/FileBrowserPanel.tsx:198-204 adds only copy-mention and add-to-chat after the shared file menu items. panelPath() (line 147) returns the relative path unless the panel shows a host folder, so the mention has no project root.

Other menus already have path actions: chat file links (MarkdownFileLink.logic.ts, "Copy full path" and "Copy relative path"), the sidebar and the right panel tabs ("Copy path"). The Files panel is the exception.

Steps to reproduce

  1. Open project A in the desktop app.
  2. In the Files panel, right-click a file.
  3. Notice that the menu has no Copy path item.
  4. Select Copy mention, then paste it into a thread in project B.
  5. The mention holds only the relative path, so it does not point at the file in project A.

Version

Desktop app 0.1.7 (T3 Code Beta). Triage CLI 0.1.7.

Environment

macOS 27.2.0, arm64. The desktop app connects to a local server.

Evidence

A screenshot of the context menu (attached after creation). Source checked at tag `v0.1.7`.

Related issues

  • #5532: added Reveal in Finder to the Files panel. A comment there reports the same missing Copy path.
  • #19142: "Copy full path" on chat file links.
  • #8251, #14492: other bugs where relative paths in file chips resolve against the wrong root.

Fix applied or workaround

Use Reveal in Finder, then copy the path from Finder (Option+Cmd+C).

Filed by

Drafted by Claude Code (Claude Opus 5.5) with t3 triage.

giovanecesar avatar Nov 05 '26 15:11 giovanecesar

Image

giovanecesar avatar Nov 05 '26 15:11 giovanecesar