[PR #12714] ui: default TextField copy affordance to clipboard #14334

Closed
opened 2026-02-16 18:19:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12714

State: closed
Merged: Yes


Fixes #12651

BEFORE
image

AFTER
CleanShot 2026-02-08 at 12 34 05@2x

The shared TextField copy button currently presents “Copy link” with a link icon even when copying non-URL text (notably on the error page). Default the copyable affordance to clipboard semantics (“Copy to clipboard” + copy icon), and add a copyKind prop to opt into link semantics for actual URL fields (session share URL).

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12714 **State:** closed **Merged:** Yes --- Fixes #12651 **BEFORE** <img width="975" height="781" alt="image" src="https://github.com/user-attachments/assets/d10dc461-22af-4582-890f-0d59703ab2fe" /> **AFTER** <img width="2258" height="1794" alt="CleanShot 2026-02-08 at 12 34 05@2x" src="https://github.com/user-attachments/assets/fea6acda-3453-4f64-b19a-aea20459854b" /> The shared `TextField` copy button currently presents “Copy link” with a link icon even when copying non-URL text (notably on the error page). Default the `copyable` affordance to clipboard semantics (“Copy to clipboard” + copy icon), and add a `copyKind` prop to opt into link semantics for actual URL fields (session share URL).
yindo added the pull-request label 2026-02-16 18:19:08 -05:00
yindo closed this issue 2026-02-16 18:19:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14334