Skip to content

Dev#37

Merged
olegedly merged 35 commits into
mainfrom
dev
Jun 24, 2026
Merged

Dev#37
olegedly merged 35 commits into
mainfrom
dev

Conversation

@olegedly

Copy link
Copy Markdown
Owner

No description provided.

olegedly added 30 commits June 24, 2026 07:15
…sagePartRenderer

update conversations: ChatView, MessagePartRenderer
…sagePartRenderer

update conversations: ChatView, MessagePartRenderer
…ction, MessagePartRenderer

update conversations: CollapsibleSection, MessagePartRenderer
…nderer, toolResultTracker

update conversations: MessagePartRenderer, toolResultTracker
…n isNew detection

Forward the `isLoading` state through the component tree to `ToolResultPartRenderer` and use it to collapse tool results on tick changes. Fix a race condition in the tool result tracker where the `loading()` signal could change in the same batch as tool result rendering, causing incorrect `isNew` evaluation for streaming results.

The change lazy-initializes the `hasLoadedSinceMount` snapshot on first `isNew()` call instead of eagerly in the constructor, ensuring the current loading state is captured at the right time and cached for the rest of the session.
…enderer, toolResultTracker

update conversations: MessagePartRenderer, toolResultTracker
…nderer, toolResultTracker

update conversations: MessagePartRenderer, toolResultTracker
…te, not newness

Change the `ToolResultPartRenderer` to expand the result section when `isLoading` is true instead of when `isNew` is true. This fixes a race condition where tool results appearing in the same reactive batch as `isLoading=false` would incorrectly start collapsed.

Remove stale comments in `toolResultTracker.ts` and `console.log` debug statements. Update test expectations to match the new behavior where results remain expanded during loading and re-expand when previously collapsed results become loading again.
…ection, MessagePartRenderer

update conversations: CollapsibleSection, MessagePartRenderer
olegedly added 5 commits June 24, 2026 18:32
…ection, MessagePartRenderer

update conversations: CollapsibleSection, MessagePartRenderer
update 0009-tool-result-collapse.md
@olegedly
olegedly merged commit 8165c1f into main Jun 24, 2026
3 checks passed
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