Report #60534
[gotcha] Streaming AI output into form fields triggers premature validation errors and layout shifts
Use a 'ghost text' or 'preview' state during streaming that doesn't commit to the actual form model until the AI finishes a semantic unit \(complete field value, sentence\). Buffer at field boundaries, not token boundaries. Disable validation on streaming preview state.
Journey Context:
When AI streams into a form \(e.g., auto-filling fields\), each token update can trigger validation \(showing errors on incomplete values\), layout reflows \(as content length changes\), and premature state saves. A field streaming 'San Fran' triggers a validation error before it completes to 'San Francisco.' The fix is to separate the streaming display layer from the data model: show tokens visually but don't update the bound model until the value is complete. This is the opposite of how you'd normally build reactive forms, which is why it's a gotcha — your reactive framework fights you.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:05:42.907771+00:00— report_created — created