Skip to content

Keep streaming reasoning collapsed with live previews#293

Merged
SDSLeon merged 4 commits into
masterfrom
poracode/golden-harbor-51058e3b
Jul 13, 2026
Merged

Keep streaming reasoning collapsed with live previews#293
SDSLeon merged 4 commits into
masterfrom
poracode/golden-harbor-51058e3b

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • keep standalone and grouped reasoning rows collapsed while reasoning streams
  • show the latest non-empty reasoning line as the live collapsed preview
  • retain the pinned live viewport when expanded and the flattened completed preview afterward
  • avoid splitting the full accumulated reasoning text on every streaming update

Why

Streaming state was coupled to expanded state, so active reasoning automatically opened a full viewport and only gained a compact preview after completion. The updated flow keeps the row compact throughout while preserving manual expansion.

Impact

Active reasoning uses less vertical space while still exposing current progress. Users can expand it at any time to inspect the full live stream.

Validation

  • pnpm run fmt:check
  • pnpm run typecheck
  • pnpm run lint
  • pnpm exec vitest run src/renderer/components/thread/ChatPane/parts/items/Reasoning.test.tsx src/renderer/components/thread/ChatPane/parts/items/ToolCallGroup.test.tsx src/renderer/components/thread/ChatPane/parts/items/reasoningPreview.test.ts (37 tests passed)

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightcode-landing Ready Ready Preview, Comment Jul 13, 2026 9:22pm

@SDSLeon SDSLeon marked this pull request as ready for review July 13, 2026 21:22
@SDSLeon SDSLeon merged commit a242b3d into master Jul 13, 2026
9 checks passed
@SDSLeon SDSLeon deleted the poracode/golden-harbor-51058e3b branch July 13, 2026 21:22
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