Switchbordswitchbord
v0.18.13

v0.18.13 — Inbox chat JSON export

Operators can copy the full open inbox conversation as structured JSON, including context and the current composer draft.

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_token are 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=1
  • pnpm --filter app exec tsc --noEmit