---
title: ww-unit issue body loses pretty-print formatting on update
source: phase-20-uat
priority: low
created: 2026-04-11
---

When a ww-unit GH Issue is first created, the body contains pretty-printed JSON (indented, readable). After a state change update, the body is overwritten with minified single-line JSON. There should be a unified output format — always pretty-printed.

## Evidence

- Create: `{ "assigned_card_id": null, "product_id": "...", ... }` (indented)
- After update: `{"assigned_card_id":null,"product_id":"...","serial_id":"...","state":"Processing"}` (minified)

## Likely Fix

Find the `serde_json::to_string()` call in the flusher's UpdateUnitBody handler and replace with `serde_json::to_string_pretty()`.
