Skip to content

[Bug]: GNU ls hyperlink filenames cannot open files on the emitting server #37132

Closed

Description

@StiensWout

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

Steps to reproduce

  1. Open a project terminal on a Linux T3 server with GNU coreutils.
  2. Create one.txt and run ls --hyperlink=always --color=never -1 one.txt.
  3. Ctrl-click the displayed filename. GNU ls emits an OSC 8 URI containing the server's own hostname.

Expected behavior

The local file opens through the configured editor, as it does with a hostless file URI.

Actual behavior

The filename renders as a link but activation does nothing. The environment's own hostname becomes a UNC path and the metadata guard declines it. This is distinct from the cwd-prefix issue fixed by #36025 (related closed #36005).

Impact

Minor bug or occasional failure

Version or commit

Reproduced on main e101cae; also proven on main c8a1b5f in the companion PR.

Environment

Linux server, GNU coreutils 9.4, Chromium web client. No native or Windows claim.

Logs or stack traces

file://<server-hostname>/<absolute-project-path>/one.txt is classified as \\<server-hostname>\<path>, while a hostless URI to the same file opens.

Screenshots, recordings, or supporting files

Found by the Terminal Improvement Bug Hunt. Independently reproduced twice by Claude Opus 5.5 at medium effort on main 32c069e; the fix thread reproduced the unchanged scenario on e101cae. A repository scenario verifies editor dispatch after scrolling and resizing.

Workaround

Emit a hostless OSC 8 file URI instead of one containing the machine hostname.

Activity

  1. added
    vouch:trusted
    on Nov 15, 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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions