You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Relative terminal links open the wrong file after cd #37145
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
On a Linux host, open a thread terminal in a project containing both package.json and sub/package.json, each with a name on its second line.
Run cd sub and grep -nH name ./package.json in Bash.
Hover and click ./package.json:2 in the output, with a host editor selected.
Expected behavior
The editor opens sub/package.json at the reported line, the file that produced the grep output.
Actual behavior
The editor opens the different existing package.json under the terminal launch directory. When only the shell-relative file exists, the link does not activate.
Impact
Minor bug or occasional failure. Deterministic with colliding paths; population incidence is unknown.
Version or commit
Reproduced on main at 5e0127ca834a8af5bf59d38fdf5261e014e46699.
Environment
Linux, Bash, web client, GNU grep. The hunt also reproduced this with a same-host paired environment; no native desktop, mobile, or cross-machine claim.
Logs or stack traces
Recording host editor: actual --goto <project>/package.json:2; expected --goto <project>/sub/package.json:2.
Screenshots, recordings, or supporting files
Workaround
Use absolute paths in terminal output.
Found by the Terminal Improvement Hunt with GPT 6.1 Sol; independently confirmed by Claude Opus 5.5 in a separate isolated app and worktree.
Activity