Skip to content

fix(desktop): compact-mode step fold follow-ups (centering, empty folds, 0s label, thinking flicker)#4000

Merged
esengine merged 2 commits into
main-v2from
fix/transcript-fold-centering
Jun 11, 2026
Merged

fix(desktop): compact-mode step fold follow-ups (centering, empty folds, 0s label, thinking flicker)#4000
esengine merged 2 commits into
main-v2from
fix/transcript-fold-centering

Conversation

@esengine

@esengine esengine commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Follow-ups to #3991, all in the compact/minimal step-fold path:

  1. Centering.turn-collapse / .readonly-batch set margin: Npx 0, which outranks the .transcript > * column rule (max-width + margin auto) by source order, so folds rendered flush against the pane's left edge. Switch to horizontal auto like .msg/.tool already do.
  2. Empty folds — the body filter counted reasoning-only assistants as content, but minimal mode strips reasoning on expand, producing a chevron over an empty body. Filter to items the body actually renders and hide the fold when nothing survives; also exclude subcall/todo_write/exit_plan_mode tools to match the live path.
  3. "Processed 0s" — sub-second batches rounded to a literal "0s". Drop the seconds suffix below 1s.
  4. Thinking open/close flicker — streaming reasoning auto-expanded, then the completed step immediately folded away, reading as repeated open/close. New expandWhileStreaming={false} in the step-group path keeps the shimmer head as the running indicator; the expand-thinking setting still wins.
  5. Nested tool calls now show inside expanded folds (subcalls threaded through).

.turn-collapse and .readonly-batch set margin: Npx 0, which outranks
the .transcript > * auto centering by source order, so compact-mode
folds rendered flush against the pane's left edge.
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 08:30
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026
Processed folds counted reasoning-only assistants as content, so
minimal mode produced expandable folds over an empty body, and
sub-second batches labeled themselves 0s. Filter to items the body
actually renders (hiding the fold when nothing survives), drop the
seconds suffix below 1s, and thread subcalls so nested tool calls
show inside the fold. Streaming reasoning no longer auto-expands in
compact/minimal — steps fold away on completion, so auto-open read
as open/close flicker.
@esengine esengine changed the title fix(desktop): keep step folds in the centered transcript column fix(desktop): compact-mode step fold follow-ups (centering, empty folds, 0s label, thinking flicker) Jun 11, 2026
@esengine esengine merged commit f528630 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the fix/transcript-fold-centering branch June 11, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant