Added
- Added a Copy chat button to the top-right of the desktop inbox chat pane.
- The clipboard payload is formatted JSON with the canonical inbox link, conversation UUID, client identity, channel/status/assignment metadata, ad attribution, hydrated client context, loaded chat messages, Flow-response summaries, pending AI draft cards, staged reply state, selected template, pending attachment metadata, and the current composer text.
Privacy and safety
- WhatsApp group invite links stay out of the copied JSON because they are capability-bearing secrets.
- Flow exports use the existing redacted Flow-answer helpers, so hidden fields such as
flow_tokenare excluded while operator-visible answers remain available. - No server-side permissions change: the export only reflects data already loaded in the operator's authenticated inbox view.
Verification
pnpm --filter app exec vitest run lib/inbox-copy-chat-export.test.ts --no-file-parallelism --maxWorkers=1pnpm --filter app exec tsc --noEmit