Fix console hang on first startup after upgrade#12919
Merged
melissa-barca merged 3 commits intomainfrom Apr 14, 2026
Merged
Conversation
On first startup after upgrade, extensions are scanned from the pre-bootstrap profile while the shared process installs updated bootstrap extensions. The subsequent delta-update events disrupt the running extension host, causing the console to hang for several minutes. Detect the version mismatch by reading the .version file before scanning extensions. When a mismatch is found, wait for the shared process to finish bootstrap installation before proceeding with the extension scan. This ensures the extension host starts with the correct, post-bootstrap extension list and eliminates the disruptive delta events.
|
E2E Tests 🚀 |
Match the logging convention used by the existing bootstrap extension installer, which does not use a prefix.
jmcphers
previously requested changes
Apr 10, 2026
Log a warning when the version file exists but cannot be read, and catch errors from the bootstrap wait so startup is never blocked.
Contributor
Author
|
@timtmok do you mind taking a look at this since Jonathan is out? |
Contributor
|
@melissa-barca Yes, I'll take a look now 👍 |
timtmok
approved these changes
Apr 13, 2026
Contributor
timtmok
left a comment
There was a problem hiding this comment.
It was easy to reproduce this and the fix works for me!
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Addresses #11230.
After upgrading Positron, the first startup can cause the console to hang indefinitely. This is caused by a race condition between bootstrap extension installation and extension scanning. I was only able to reproduce the hang when I had existing bootstrapped extensions in my directory that needed to be upgraded.
With the fix, the extension service waits for bootstrapped extensions to be installed before starting scanning. Instead of the console hanging, users will see a brief pause on the first launch after upgrade while bootstrap extensions install.
Release Notes
New Features
Bug Fixes
QA Notes
@:console @:critical @:extensions
After upgrading Positron, the console should not hang on first launch.