Skip to content
Source
Sign inSign up
pingdotgg/t3code

Clicking `Foo.tsx:42` fails when the file isn't at the workspace root #6292

ClosedBrechard(GitHub profile, opens in a new tab) opened this issue 0 comments

Clicking a file reference an agent wrote, like ChatView.tsx:3301, fails:

Failed to read workspace file 'ChatView.tsx' in '/Users/me/dev/t3code'.

The :line suffix is what makes the span a link — a bare ChatView.tsx deliberately isn't one. But the filename alone doesn't say where the file is, so resolveMarkdownFileLinkTarget joins it to the workspace root, and that's rarely where it lives. Agents write references in this shape constantly, so a lot of these links are dead.

To reproduce: post a message containing `SomeFile.tsx:42` in a repo where that file isn't at the root, and click the chip.

  1. Brechard(GitHub profile, opens in a new tab) changed the title

  2. juliusmarminge closed this

Sign in to join this conversation.