Skip to content

URL linkifier hijacks www. inside absolute file paths — renders http:// mid-path, path becomes unclickable and uncopyable #13619

Description

@mrlerch

Bug

When terminal output contains an absolute POSIX file path whose directory name contains a web domain (a very common layout for web developers: ~/Sites/www.example.com/...), Warp's URL smart-linkifier fires on the www. in the middle of the path. It wins over file-path detection, visually injects http:// into the middle of the rendered text, and splits the path into a useless web link plus fragments.

Repro

  1. Have a project under a domain-named folder, e.g. /Users/me/Sites/www.proproductssales.com/html-phpstorm/
  2. Run anything that prints a full path in that tree, e.g.:
    echo "Report saved: /Users/me/Sites/www.proproductssales.com/html-phpstorm/docs/report.md"
    
  3. Look at the rendered output.

Actual

Rendered as:

Report saved: /Users/me/Sites/http://www.proproductssales.com/html-phpstorm/docs/report.md
  • The www.proproductssales.com/html-phpstorm/docs/report.md portion becomes a web link to http://www.proproductssales.com/... (404s — it's a local folder name).
  • The leading /Users/me/Sites/ is orphaned plain text.
  • Cmd-clicking cannot open the file; selecting/copying the rendered line yields the corrupted http://-injected string, so the path can't even be copy-pasted.
  • file:// URIs don't help: file:///Users/me/Sites/www.example.com/... — the linkifier STILL grabs the inner www. and splits the file URI.

Expected

If a token parses as an absolute path (starts with / or ~/, no scheme), path/file linkification should take precedence over bare-www. URL detection for the interior of that token — or at minimum the copied text should be the original bytes, never the linkifier's rewritten form.

Impact

This affects every AI-agent workflow (Warp AI, Claude Code, etc.) where the agent prints file paths for the user to click — any project living in an Apache-style ~/Sites/www.<domain>/ folder produces permanently broken links. Current workaround is creating dot-free symlinks next to every domain-named project folder, which shouldn't be necessary.

Environment

  • Warp 0.2026.07.08.17.54.02 (stable)
  • macOS 15.7.7 (Intel)

Metadata

Metadata

Assignees

Labels

area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.os:macmacOS-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-review

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions