Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't clear chat disposables too early while progressive rendering #215907

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

roblourens
Copy link
Member

@roblourens roblourens commented Jun 17, 2024

This clear() is wrong because this loop is incrementally updating content, not rerendering everything. Deleting is also not quite right because we are technically leaking when things get rerendered. But that is only the case while in the middle of streaming content, and things will always be fixed up when the response is done loading. Got another change on the plan for June which will fix all of this in a more complete way.
Fix #212853

This clear() is wrong because this loop is incrementally updating content, not rerendering everything. Deleting is also not quite right because we are technically leaking when things get rerendered. But that is only the case while in the middle of streaming content, and things will always be fixed up when the response is done loading.
Fix #212853
@roblourens roblourens merged commit 85e9b07 into main Jun 17, 2024
7 checks passed
@roblourens roblourens deleted the roblou/economic-asp branch June 17, 2024 03:47
roblourens added a commit that referenced this pull request Jun 18, 2024
roblourens added a commit that referenced this pull request Jun 18, 2024
bricefriha pushed a commit to bricefriha/vscode that referenced this pull request Jun 26, 2024
…icrosoft#215907)

This clear() is wrong because this loop is incrementally updating content, not rerendering everything. Deleting is also not quite right because we are technically leaking when things get rerendered. But that is only the case while in the middle of streaming content, and things will always be fixed up when the response is done loading.
Fix microsoft#212853
bricefriha pushed a commit to bricefriha/vscode that referenced this pull request Jun 26, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't click on links in streaming chat response
3 participants