Repository navigation
Accept quoted local repository paths - #23108
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change to accept quoted local repository paths.
No open issues 🎉
What changed in this PR
This PR addresses #23099 by allowing the Add Local Repository dialog to accept quoted paths copied from Windows Explorer.
Changes:
- Remove one matching pair of outer double quotes before path validation and resolution.
- Add a regression test verifying that a quoted path is validated, added, and the dialog dismissed.
| File | Description |
|---|---|
app/test/unit/ui/repository-directory-exceptions-test.tsx |
Tests successful addition of a repository using a quoted path. |
app/src/ui/add-repository/add-existing-repository.tsx |
Normalizes outer quotes before validating and resolving repository paths. |
Review effort: Balanced
niik
approved these changes
Nov 3, 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.
Closes #23099
Description
Normalize one matching pair of double quotes around a local repository path before validation and resolution, so paths copied from Windows Explorer can be added directly. Paths without matching outer quotes are unchanged.
Validation
yarn test app/test/unit/ui/repository-directory-exceptions-test.tsx— passed (5 tests).yarn lint:fix— passed.yarn test:e2e:build:unpackaged && DESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-repository-path.e2e.ts) — passed.yarn test:e2e:build:unpackaged && EXPECT_QUOTED_PATH_SUCCESS=true DESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-repository-path.e2e.ts) — passed. The temporary E2E spec was removed after capturing evidence.e1bc8abadf6bc70bc3067427d6c2f52575aeb636on macOS:yarn test:e2e:build:unpackagedandDESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-path-video.e2e.ts— passed. The temporary recording spec was removed afterward. Windows was not directly exercised.yarn test— failed with six unrelated Git integration-test failures across checkout, push, rev-parse, and pull-error parsing; the targeted test above passes.Screenshots
Before:
After: Playwright recording showing a path with surrounding double quotes being added successfully and the repository opening.
quoted-path-after.mp4
Release notes
[Fixed] Accept local repository paths copied with surrounding quotes - #23099
Team-authored review
Evidence: Validation results, before screenshot, and Playwright after video above.
Review path: Lightweight review.
Author assessment of the change and evidence is pending; keep this PR in draft until completed.