fix(desktop): keep thinking, answers, and writer output visible in compact view#4101
Merged
Merged
Conversation
…mpact view Compact/minimal mode folded each completed step into "Processed", which hid what the user most wants to see: the model's reasoning (stripped entirely in minimal), its answer text between tool calls, and writer output (bash was stripped in minimal). Only read-only research should fold away. Render the hot zone the way the warm zone already does — flat, batching only completed read-only tools into ReadOnlyBatch. Thinking now shows live while it streams; answer text and writer diff/output are visible by default; read-only research stays in the slim batch fold. Drops the now-unused TurnCollapse + stepGroups machinery and the expandWhileStreaming flag that only existed to mask the fold flicker.
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
Follow-up to #4059. In compact/minimal mode the transcript folded every completed step into a "Processed" block, which hid the substance of a turn:
expandWhileStreaming={false}), and minimal mode stripped reasoning from completed steps entirely.bashcards outright.Only read-only research (read/grep/glob/ls/web_fetch) should fold to keep a long run of reads quiet. Everything else is the substance the user wants visible.
Changes
WarmTurnItems) already does: flat, batching only completed read-only tools intoReadOnlyBatch. Running tools, writers, and assistant text/thinking render directly. Removes thestepGroups+TurnCollapsestep-fold machinery (net -175 lines).expandWhileStreamingflag (it only existed to mask the now-gone fold flicker); reasoning auto-opens while streaming, then stays available behind the toggle once the answer arrives.ToolCardopens by default for non-read-only tools that produced a diff or output (and for any errored tool), so you see what a command did without expanding. Read-only research stays folded. Sub-agent cards still open while running. Manual toggle / Ctrl+B still override.TurnCollapseCSS and thetranscript.processed*i18n keys.Behavior by mode
Compact and minimal now behave the same (both show substance + batch reads); collapsing the two modes can be a separate follow-up.
Test status
tsc --noEmitclean for the changed files (local env still reports the usualwailsjs/ new-dep gaps that CI resolves viawails generate+ a fresh install).