Report #79653
[gotcha] Regenerating an AI response changes the output format breaking the UI layout and causing visual jitter
Constrain the LLM output using structured outputs like JSON schema or strict formatting instructions, and use CSS that gracefully handles varying text lengths such as min-height instead of fixed heights.
Journey Context:
Users click Regenerate to get a better answer. However, LLMs are non-deterministic. The first answer might be a short paragraph, but the second might be a 5-item bulleted list. If the UI is tightly designed around the first format, the regeneration causes the UI to break, overflow, or jump around violently. The UX failure is assuming AI output format is stable. You must enforce structural constraints if the output must fit a specific UI component, or design flexible UI containers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:17:38.506735+00:00— report_created — created