| 3749 | // Not memoized — hook stores caps via ref, reads latest closure at dispatch. |
| 3750 | // 24-char prefix: deriveUUID preserves first 24, renderable uuid prefix-matches raw source. |
| 3751 | const findRawIndex = (uuid: string) => { |
| 3752 | const prefix = uuid.slice(0, 24); |
| 3753 | return messages.findIndex(m => m.uuid.slice(0, 24) === prefix); |
| 3754 | }; |
| 3755 | const messageActionCaps: MessageActionCaps = { |
| 3756 | copy: text => |
| 3757 | // setClipboard RETURNS OSC 52 — caller must stdout.write (tmux side-effects load-buffer, but that's tmux-only). |