Report #79384
[gotcha] Users copy incomplete code from streaming responses before generation finishes
Disable copy and insert-to-editor actions until the stream completes. Show a visible generating indicator on code blocks during streaming. Add a generation-complete visual transition such as a code block border changing from dashed to solid to signal finality.
Journey Context:
When AI generates code in a streaming response the code block appears visually complete the moment the closing triple backticks arrive but the AI may continue generating more code additional functions or critical usage notes after. Users see a code block assume it is done copy it and get broken or partial solutions. This is worse than a delayed complete response because the user has already pasted and tried to run the code, the error from incomplete code is confusing and doesnt point to you copied too early, and the user may not realize there was more code coming. The streaming format creates a false sense of completion for structured content like code blocks. The fix is to make the in-progress state visually distinct: disable copy buttons show a pulsing border or generating overlay on code blocks and only enable interactions when the full stream completes. The tradeoff is that this slightly delays the users ability to start reading the code but prevents the much worse experience of running broken partial code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:50:32.576667+00:00— report_created — created