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 — [Bug]: relative file chips resolve against the thread's project root, not the directory the agent worked in · Issue #35337 · pingdotgg/t3code

[Bug]: relative file chips resolve against the thread's project root, not the directory the agent worked in #35337

New issue
Copy link
New issue
Copy link
Closed
#36364
Closed
[Bug]: relative file chips resolve against the thread's project root, not the directory the agent worked in#35337
#36364
Copy link

Description

@duke8585
duke8585
opened on Nov 12, 2026
Issue body actions

before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

area

apps/web (chat file chips)

what happens

an assistant message lists files with repo-relative paths in inline code, e.g. docs/guides/new_guide.md.
t3 renders a chip, but resolves it against the thread's project root.
the agent did its work in a different checkout (a worktree of another repo), so the chip opens "the file could not be accessed or read" even though the file exists and the path is correct relative to where the agent was working.

steps to reproduce

  1. create a thread in project repo-a (root /Users/me/devel/repo-a). in my case the thread was spawned through the t3 mcp orchestration tools, so it has no worktreePath and no branch.

  2. in that thread, have the agent cd into a worktree of a different repo, e.g. /Users/me/devel/worktrees/repo-b-feature, make changes there and open a pr.

  3. the agent summarises the pr with repo-relative paths:

    - `docs/guides/new_guide.md` is the new guide.
    - `server/config.yaml` and `config.test.yaml` each gain two lines.
  4. click a chip.

expected

the chip opens /Users/me/devel/worktrees/repo-b-feature/docs/guides/new_guide.md, or at least does not pretend to be a working link.

actual

the chip opens /Users/me/devel/repo-a/docs/guides/new_guide.md, which does not exist, and shows the "could not be accessed" panel.
a bare filename like config.test.yaml fails the same way.

why this is different from the existing issues

  • [Bug]: Inline code like avatars/u1.webp becomes a file chip labeled u1.webp even when the path does not exist #29421 / fix(clients): example paths no longer open missing files #30021 / fix(clients): inline file chips keep the text the agent wrote #29657 deal with paths that do not exist anywhere (example paths in prose). fix(clients): example paths no longer open missing files #30021 (closed unmerged) would have rendered missing paths as plain code, fix(clients): inline file chips keep the text the agent wrote #29657 keeps the full label but leaves them clickable. here the path is real, only the resolution root is wrong, so neither direction makes the chip work.
  • the second comment on [Bug]: Inline code like avatars/u1.webp becomes a file chip labeled u1.webp even when the path does not exist #29421 is the same shape (a correct path for another workspace), but framed as "should fall back to plain code".
  • Pull request descriptions turn the author's file paths into links that open on the viewer's machine #30285 is related: pr descriptions turn the author's paths into links that open on the viewer's machine. same root cause, a path is resolved against the wrong base.

possible directions

  • resolve relative chips against the agent's working directory at the time of the message (the cwd of the session, or the last cd / tool-call cwd t3 already sees in the activity log), falling back to the project root.
  • when the path does not exist under the project root, try the worktrees / checkouts the thread touched (its linked prs' head checkouts, worktreePath), and only then fall back to plain code as in fix(clients): example paths no longer open missing files #30021.
  • for mcp-spawned threads that work in another repo, let the agent set or update the thread's working root, so chips and the diff view follow it.

workaround

instruct the agent (CLAUDE.md / AGENTS.md) to always write absolute paths in chips. this works, but agents drop it easily when listing files changed in a pr, because they naturally think in repo-relative terms there.

environment

t3 code desktop 0.1.9-nightly.20261110.4478, macos 26 (darwin 25.6.0), claude agent provider.

Activity

  1. juliusmarminge
    added a commit that references this issue on Nov 13, 2026

    fix(mobile): file links the agent cited from a checkout it cd'd into …

    4ac7486
  2. juliusmarminge
    closed this as completedin #36364on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.