-
Notifications
You must be signed in to change notification settings - Fork 94
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
Positrons pops up "code-oss-dev Safe Storage" dialog when launched from within VSCode #2274
Comments
Yeah, if I close Positron, and then relaunch it from VSCode, I get it every time |
Screen.Recording.2024-02-15.at.6.31.14.PM.mov |
This pop up is originating from this file: the exact line that causes the pop-up to show up is
See https://www.electronjs.org/docs/latest/api/safe-storage On my computer, I have a bunch of Electron apps that seem to use this API: ![]() If this quirk seems to only apply to running Positron in development mode, maybe we can just fix the "code-oss-dev" piece (somehow?) to say "Positron" instead and recommend that people authorize the keychain access? See also microsoft/vscode-discussions#748 |
Release build instance of this issue: #5485 |
Moving back into triage as we have at least 2 instances of this this in a release build. |
This may possibly be related to recent work from the Connections pane that uses the secret storage. |
I investigated this a little and it doesn't seem to be related to the secret storage usage in the connections pane (implemented in #5456) as even after removing all the refrences to the Secret storage in that files we still get the modals. |
I did some debugging here and discovered that it is in fact the Connections code that is triggering the dialog. Specifically this line: positron/src/vs/workbench/services/positronConnections/browser/positronConnectionsService.ts Lines 106 to 108 in a66d65e
It is also true that removing this line doesn't make the dialog go away though. It just makes it appear later, because Quarto is also hitting the secret storage service later during startup. We need to deal with both of these usages if we want this prompt to go away. Possible paths forward:
|
@dfalbel I think the right first step for now is to make sure the Connections pane only hits the secret storage service when we are sure there are connections to retrieve (we will have to remember that out of band) to prevent spurious prompts. That will help a lot because (as I read it) the Quarto extension doesn't activate eagerly unless you are using R, so it should solve the prompt-on-boot issue entirely for Python-only folks. We can follow up with an improvement to the Quarto extension that makes the polling for Zotero web API keys less aggressive. |
This has started happening to me since installing 2025.01.0 build 152. I believe my previous installation was from september or october 2024 edit: this is still occurring in the latest version i've installed Positron Version: 2025.02.0 (Universal) build 79 |
I filed an issue here for the Quarto extension: quarto-dev/quarto#659 |
We believe we have made the changes needed in Positron itself to reduce these prompts to access to safe storage. I'm moving this to verification but note that you will need to uninstall Quarto and maybe Jupyter extensions as noted in #6266. |
This comes up frequently when launching Positron from within VSCode
The text was updated successfully, but these errors were encountered: