Repository navigation
fix(cli): exclude the Electron application entry from file arguments - #5834
Merged
Merged
Conversation
This was referenced Oct 21, 2026
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.
Refs #2222
Summary
An unbundled Electron launch can place runtime switches before the application entry. Treating that entry as a document directory opens an extra window and prevents session restoration. Remove the entry from initial and second-instance user arguments, and explicitly configure sidebar visibility in affected E2E fixtures. The collapsed-folder regression test now opens its own temporary project instead of depending on the application directory being treated as a user folder.
Type of change
Test plan
Evidence
Startup argument parsing is covered by CLI unit tests and the sidebar/session E2E fixtures. UI evidence for the feature is attached to #5835.
Stack
Merge from top to bottom; after merging a parent, retarget its child to
developbefore deleting the parent branch.developfix/2222-electron-entry-argsfeat/2222-multi-folder-corefeat/2222-multi-folder-searchfeat/2222-add-folder-menuNotes for reviewers
This is part 1 of a five-PR stack. Review this PR against its current base branch; merge the stack in order and retarget each child to develop after its parent lands.
Local native validation was on macOS; Windows and Linux are covered by CI when available. No screenshots or recordings are committed to the repository.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.