# fix\(web\): make the paste shortcut deterministic and refuse truncated links · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/dcc5b37554fa5ae75cd66035f1ac35c5d9ee6f2c)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: dcc5b37554fa5ae75cd66035f1ac35c5d9ee6f2c

Requested commit: dcc5b37554fa5ae75cd66035f1ac35c5d9ee6f2c

Commit: dcc5b37554fa5ae75cd66035f1ac35c5d9ee6f2c

Tree: 6b670c83303758ee4bb1f5da7f4f18eb437ae228

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): make the paste shortcut deterministic and refuse truncated links

The terminal paste shortcut now reads the clipboard through
navigator.clipboard when available and encodes the bracketed paste
itself, instead of relying on Ctrl+Shift+V's browser-specific default
action to fire a paste event; browsers without the API keep the native
paste-event path.

Wrapped-link resolution only sees viewport rows, so a wrapped line
whose head scrolled above the viewport, or a match running to the end
of a full-width bottom row, now resolves to no link instead of
activating a truncated URL. OSC 8 hyperlinks are unaffected because
Ghostty resolves them per cell.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [005486999ddddce8aebe66a7e706b595d2226718](https://git.cafe/stienswout/t3code/commit/005486999ddddce8aebe66a7e706b595d2226718?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/dcc5b37554fa5ae75cd66035f1ac35c5d9ee6f2c?format=markdown)
