Repository navigation
Google Drive folder selections follow the connected account - #1502
Merged
WaylandYang merged 2 commits intoNov 16, 2026
Merged
WaylandYang merged 2 commits into
WaylandYang merged 2 commits into
Conversation
Signed-off-by: Maya Kid <BinjunYann@gmail.com>
WaylandYang
approved these changes
Nov 16, 2026
WaylandYang
left a comment
Contributor
There was a problem hiding this comment.
Thanks — account identity mirrors same_account on the server. Merging.
Maya-Kid
deleted the
codex/reset-drive-folder-draft-on-account-change
branch
November 29, 2026 05:59
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.
Why
Switching Google accounts in an open Drive settings dialog clears the saved folders on the server. The dialog keeps the old account's local selection. Clicking Save folders and sync can then write those old folder IDs back. Disconnecting and reconnecting with the dialog still open has the same problem.
What changes
Keep unsaved selections with the verified account that owns them. A different account or a disconnect discards that draft and uses the current source configuration. Reconnecting to the same verified account preserves unsaved selections. The folder browser starts at the root of a new connection, and the save button is unavailable while the dialog is changing the connection.
How it was checked
dev(f33f9fc9). All three scenarios passed onec2fe1d2, including source refresh and reconnect with the same verified email. The tests check folder queries and the exact payload sent by Save.Before review
git commit -s).