Repository navigation
feat: add setting to expand thinking blocks by default - #639
Merged
Merged
Conversation
Thinking blocks always rendered collapsed, forcing users who review model reasoning to click each block on every response (agegr#411). Add a General settings toggle persisted in localStorage (pi-thinking-expanded). ThinkingBlock reads it as its initial state, already-mounted blocks sync via a custom window event, and deferred history content loads automatically through the existing promise cache when blocks start expanded. Closes agegr#411
Closed
zmhuanf
added a commit
to zmhuanf/pi-web
that referenced
this pull request
Sep 5, 2026
sleepinginsummer
pushed a commit
to sleepinginsummer/pi-web
that referenced
this pull request
Sep 9, 2026
* feat: add setting to expand thinking blocks by default Thinking blocks always rendered collapsed, forcing users who review model reasoning to click each block on every response (agegr#411). Add a General settings toggle persisted in localStorage (pi-thinking-expanded). ThinkingBlock reads it as its initial state, already-mounted blocks sync via a custom window event, and deferred history content loads automatically through the existing promise cache when blocks start expanded. Closes agegr#411 * fix: keep thinking outside process details and refine settings switches --------- Co-authored-by: Alex Yang <agegcn@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Thinking blocks now appear as independent disclosures outside Process details, so users can read reasoning without opening tool output. They remain collapsed by default; General settings can expand them automatically and update already-mounted blocks immediately. Closes #411.
Validation