Skip to content

Path detection: CJK / full-width punctuation not treated as word boundary, paths become un-clickable #10245

@Jokairui

Description

@Jokairui

Pre-submit Checks

Describe the bug

Warp's clickable-path detection fails when a file path is immediately preceded by a CJK / full-width punctuation character with no ASCII whitespace in between. The same path with a leading ASCII space (or preceded by ASCII punctuation) is recognized correctly.

This is common when terminal output is generated by AI CLIs or Chinese/Japanese developer tooling that prints file paths inline in prose, e.g. 路径:<path> or 出力先:<path>. Today those paths are un-clickable in Warp, while iTerm2 (Cmd+Click) and VS Code's integrated terminal handle them fine.

Concrete example:

路径:/Users/me/project/plan.md          ← NOT clickable (fullwidth :touching /)
路径: /Users/me/project/plan.md          ← clickable  (ASCII : + space)
/Users/me/project/plan.md                ← clickable  (bare)

The only difference between line 1 and line 2 is (FULLWIDTH COLON, U+FF1A) directly touching /, vs : (ASCII colon + space). The path itself is identical and exists on disk in all three cases.

To reproduce

  1. Create any file, e.g. touch /tmp/warp-repro.md
  2. In Warp, run:
    printf '路径:/tmp/warp-repro.md\n路径: /tmp/warp-repro.md\n/tmp/warp-repro.md\n'
  3. Hover each line and try Cmd+Click:
    • Line 1 (full-width touching path): not recognized, no hover underline, Cmd+Click does nothing
    • Line 2 (ASCII : + space): recognized, opens in configured editor
    • Line 3 (bare path): recognized, opens in configured editor

Expected behavior

The path should be recognized in all three cases. The path-detection logic should treat Unicode punctuation and CJK characters as word boundaries, not just ASCII whitespace / punctuation.

The most common offenders are:

Char Codepoint Name
U+FF1A FULLWIDTH COLON
U+FF0C FULLWIDTH COMMA
U+3002 IDEOGRAPHIC FULL STOP
/ U+300C / U+300D CJK corner brackets
/ U+300E / U+300F CJK white corner brackets
/ U+FF08 / U+FF09 FULLWIDTH PARENTHESES

A pragmatic fix: in the left/right boundary check, accept any character whose Unicode General Category is P* (punctuation / Z* separator / Lo CJK ideograph) as a boundary, rather than only ASCII whitespace + specific ASCII punctuation.

Screenshots, videos, and logs

No response

Operating system (OS)

macOS

Operating system and version

26.4.1 (Tahoe)

Shell Version

zsh 5.9

Current Warp version

v0.2026.04.29.08.57.01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Impact: LLM-backed CLIs (Claude Code, etc.) and Chinese/Japanese developer tooling routinely print file paths inline in CJK prose. Today every such path requires selecting + right-click → Open File, which defeats the purpose of Cmd+Click.

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes — iTerm2 Cmd+Click and VS Code integrated terminal both recognize the same paths.

Metadata

Metadata

Assignees

No one assigned

    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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions