Skip to content

fix(mobile): correct terminal link extraction edge cases#8

Merged
r4iju merged 1 commit into
mainfrom
fix/terminal-link-extraction-review
Jul 26, 2026
Merged

fix(mobile): correct terminal link extraction edge cases#8
r4iju merged 1 commit into
mainfrom
fix/terminal-link-extraction-review

Conversation

@r4iju

@r4iju r4iju commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Fixes the three real bugs flagged by automated review on the accidental upstream PR (pingdotgg#4549) in the terminal link chip extraction:

  • Adjacent URLs wrongly joined (high): a continuation line that starts its own http(s):// scheme is now treated as a separate link, never glued onto the previous wrapped URL.
  • OSC 8 links lose recency (medium): OSC 8 hyperlink targets are now inlined at their buffer position instead of prepended, so the most-recent-first ranking and 3-result cap treat them fairly.
  • Prefix dedup hides distinct URLs (medium): replaced with proper \r-overwrite resolution (keep only the final paint of a line), which removes spinner-truncated intermediates at the source without suppressing e.g. …/repo next to …/repo-utils.

3 new regression tests; 16 total pass, typecheck and lint clean.

🤖 Generated with Claude Code

Address review findings from the accidental upstream PR (pingdotgg#4549):

- Never join an adjacent URL onto a wrapped one: a continuation line
  that starts its own http(s) scheme is a separate link, not a wrap
  continuation of the previous line.
- Rank OSC 8 hyperlinks by buffer position instead of prepending them,
  so a recent OSC link is no longer dropped by the 3-result cap when
  older plain-text URLs exist.
- Replace prefix dedup (which hid distinct URLs like .../repo next to
  .../repo-utils) with \r-overwrite resolution: keep only the final
  paint of a line, which removes spinner-truncated intermediates at
  the source.
@r4iju
r4iju merged commit eaa6520 into main Jul 26, 2026
@r4iju
r4iju deleted the fix/terminal-link-extraction-review branch July 26, 2026 03:09
r4iju added a commit that referenced this pull request Jul 26, 2026
…k chips (#10)

Updates the exit-path register now that the pingdotgg#4549 review findings are
fixed (#8): the terminal link chips delta is code-ready, blocked only on
device verification media. Captures the full remaining path — issue-first
framing as mobile parity with web link handling, the exact seven-file
trimmed diff to cherry-pick from upstream/main, and what the PR body must
disclose (native alternative, heuristic limits, candid pingdotgg#4549 reference) —
so the contribution can be picked up cold another day.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant