Files
orca/config
Jinwoo-H 94c76c0657 refactor(terminal-links): make one shared file-link matcher serve desktop and mobile
src/shared/terminal-file-link-matcher.ts was a branch-only copy of the
renderer matcher, frozen at its 2026-07-27 shape. Main has changed the
renderer twice since, including widening LOCAL_PATH_REGEX to Unicode
property classes, so mobile terminal taps missed every non-ASCII path
that desktop already linked.

Moves the renderer's file-link cluster to src/shared and deletes the
copy. Nothing in it was renderer-only: the eight modules import each
other plus file-link-location and terminal-file-url-target, which
already live in shared. Mobile's tap and web link provider now import
the same module, so they also pick up the file-uri and bare-filename
passes the copy never had. matchTerminalFileLinkAtColumn moves in with
them, replacing both the copy's version and the renderer test's local
helper.

The WebView-injected copy has to stay a copy, since that script is
interpolated into HTML and cannot import. Its path regex gets the same
Unicode widening, and the drift that let it diverge in the first place
is closed by two non-ASCII cases in the shared conformance suite, which
all three implementations run. Reverting either widening reddens them.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-06 15:56:19 -04:00
..