Repository navigation
Keep workspace folders when live configuration overtakes the cache - #8178
Merged
Merged
Conversation
kyuz0
marked this pull request as ready for review
December 1, 2026 20:01
code-asher
approved these changes
Dec 4, 2026
fengwk
added a commit
to fengwk/code-server
that referenced
this pull request
Dec 4, 2026
Take upstream coder#8178 for the workspace initialization race; it supersedes the kk-studio refresh in local-storage.diff. Keep the upstream CI files that kk-studio removed.
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.
Keep saved workspace folders when the live configuration finishes between cached workspace creation and its first assignment. The existing late-initialization branch marks the cached snapshot ready without refreshing its folders, leaving Explorer and extensions with an empty workspace.
Extract the normal workspace constructor into one synchronous helper and reuse it in that branch. This keeps folders, transient state, workspace identity and URI handling consistent.
I reproduced the race in code-server 4.146.0 and forced the same callback order in Chromium against the released workbench and the equivalent compiled correction.
workspaceFolders; the Pi workflow received and rendered its promptnode --checkpassedThe maintained browser regression gates the real cached/live reads without replacing the snapshot or retrying the page.
The full source build and upstream test suite were not run.