Skip to content

Conversation

@ethanndickson
Copy link
Member

When navigating to a chat with existing thinking blocks, they would collapse immediately after the page loaded, causing a jarring layout shift.

Root cause: The ReasoningMessage component initialized isExpanded to true, then a useEffect collapsed it when isStreaming was false. For historical messages (already isStreaming: false), this effect fired on mount—expanding then immediately collapsing.

Fix: Initialize isExpanded to message.isStreaming. Historical messages start collapsed; actively streaming messages start expanded and collapse when streaming ends.


Generated with mux

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ethanndickson ethanndickson added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit fd653d6 Dec 9, 2025
17 of 19 checks passed
@ethanndickson ethanndickson deleted the fix-thinking-block-collapse branch December 9, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant