GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: A project cloned from GitHub keeps a null repository identity after the clone finishes · Issue #19268 · pingdotgg/t3code

[Bug]: A project cloned from GitHub keeps a null repository identity after the clone finishes #19268

New issue
Copy link
New issue
Copy link
Closed
Closed
[Bug]: A project cloned from GitHub keeps a null repository identity after the clone finishes#19268
Copy link

Description

@Byntham
Byntham
opened on Oct 14, 2026
Issue body actions

Before submitting

  • I searched existing issues and did not find a duplicate. Open PR fix(server): cloned projects no longer show the enclosing repository #17047 changes the same code path for a different symptom (a clone inside another repository picks up that repository's identity); see Code investigation.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Have a project for a GitHub repository, for example pingdotgg/t3code, in one environment.
  2. In another environment, add a project with clone from GitHub for the same repository, into a folder that is not inside another Git repository.
  3. Wait for the clone to finish, then look at the sidebar on a client connected to both environments.

Expected behavior

When the clone finishes, the new project gets the repository's identity and groups with the other pingdotgg/t3code project.

Actual behavior

The project keeps repositoryIdentity: null after the clone finishes. Clients group it by its folder path, so it shows as its own sidebar entry. It only joins the group after the server's cached null expires and something asks for that project's metadata again.

Timeline from one occurrence:

  • 22:34:32: project created; its empty folder appears in the same second
  • 22:34:50: .git/config written by the clone
  • 22:34:52: the project-clone-done update runs and still sends repositoryIdentity: null

Impact

Minor bug or occasional failure

Version or commit

Source inspected: main @ 4d73e1d

Environment

Server-side; does not depend on OS or client.

Code investigation

At the inspected commit, repository identity is cached in two layers:

  1. RepositoryIdentityResolver keeps a null result for 1 minute; resolve(cwd, { refresh: true }) bypasses it.
  2. ProjectEnrichmentService has its own repositoryIdentityCache keyed by workspace root. A resolved null counts as a success and is kept for 1 minute. Clients read identity from this layer.

The clone flow:

  • createProject calls ProjectService.create, which invalidates enrichment. The folder is still empty, so the next read resolves null and layer 2 caches it.
  • onCloned calls repositoryIdentityResolver.resolve(root, { refresh: true }), which refreshes only layer 1, then projectService.update({ projectId }). ProjectService.update invalidates enrichment only when the workspace root changes, so the update reads the stale null from layer 2 and sends it to clients.
  • With no identity, deriveLogicalProjectKey falls back to the per-environment path key, so the project gets its own group.

#17047 adds ProjectEnrichmentService.refresh, which refreshes both layers and publishes the result, and calls it from onCloned. That covers this case too, but its test only covers the parent-repository case, not a project created with no identity that gains one when the clone lands.

Other refresh: true call sites I checked:

  • sourceControlPublishRepository has the same gap: it refreshes only layer 1, so a project that gains a remote by publishing keeps its cached null until layer 2 expires. fix(server): cloned projects no longer show the enclosing repository #17047 leaves this unchanged.
  • ThreadPullRequestService resolves a fresh identity only for a local comparison and does not publish it, so it is not affected.
  • ThreadSettlementService and storageCleanup pass refresh: true to branchPullRequest, not to the identity resolver.

Workaround

None needed in most cases: it fixes itself once the cached null expires (1 minute after it was resolved) and the project's metadata is read again, for example on a client reconnect.

Activity

  1. sliva0
    added a commit that references this issue on Oct 15, 2026

    fix(server): a refreshed repository identity is not overwritten by an…

    b1db48c
  2. t3dotgg commented on Oct 21, 2026

    @t3dotgg
    t3dotgg
    on Oct 21, 2026
    Member
    More actions

    Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. One part of this is fixed on main in #22180. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: publishing a project to a remote keeps a cached null identity until the cache expires (sourceControlPublishRepository). If that part still matters to you, please open a new issue for that part only.

  3. t3dotgg
    closed this as completedon Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.