feat(chat): add a Copy button to every assistant response
Author: chriscrosstalkCreated Sep 25, 2026Updated Sep 26, 2026
Labelsenhancement
Problem
There's no way to copy an AI answer except by drag-selecting it, which picks up the Sources list and timestamp and flattens markdown. Code blocks have no copy button either. That makes it hard to get commands, checklists, or long answers out of chat and into notes or a terminal.
Proposal
- A Copy button on every assistant message that copies the answer as markdown, without the Sources block or timestamp.
- A copy button on each fenced code block.
- Brief "Copied" confirmation.
Implementation note
NOMAD is normally reached over plain HTTP on a LAN address (http://192.168.x.x:8080), which is not a secure context, so navigator.clipboard is undefined there - it only exists on HTTPS or localhost. A navigator.clipboard.writeText()-only implementation would silently do nothing for almost every user. It needs a fallback (hidden <textarea> + document.execCommand('copy')) when window.isSecureContext is false.
Files involved
admin/inertia/components/chat/(message rendering and the markdown code-block renderer)
cc @jakeaturner
Source: Crosstalk-Solutions/project-nomad