Repository navigation
fix(engine): a checkout looks up whatever its directory is called - #283
Merged
Merged
Conversation
local_name fed the directory name to validate_repo, so a checkout in a directory like count-patchula@t3-05262923 failed discovery with "invalid repository identity". The local identity now reports local/<name> when the name is a valid repository name — unchanged, so report JSON and cache keys for existing checkouts are byte-identical — and local/<sha256 of the name> otherwise, which validates and stays stable on every run. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 4beae2e | Commit Preview URL Branch Preview URL |
Nov 12 2026, 07:55 PM |
Merged
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.
patchula lookupin a checkout whose directory name is not a valid repository name (such ascount-patchula@t3-05262923) failed with "invalid repository identity":local_nameused the directory name as the identity, anddiscovervalidates it like a GitHub name.local_namekeepslocal/<directory name>whenever the name is a valid repository name, byte-identical to before. Otherwise it islocal/<SHA-256 of the name>, which always validates and is the same on every run.validate_repo's owner/name rule moved intorepo_part, unchanged.Test:
a_directory_named_anything_is_looked_uplooks upcount patchula@t3-üñïcode(an@, a space and unicode) andcount-patchula, pinning both report identities. Docs:guide/how-it-works.mdx, "Working tree or GitHub".Found while measuring for the performance work; no report or request bytes change for a validly named checkout.