Skip to content

[codex] Fix git init workspace reclassification#2358

Draft
marcelocastrobarbosa wants to merge 1 commit into
getpaseo:mainfrom
marcelocastrobarbosa:git-detection-issue
Draft

[codex] Fix git init workspace reclassification#2358
marcelocastrobarbosa wants to merge 1 commit into
getpaseo:mainfrom
marcelocastrobarbosa:git-detection-issue

Conversation

@marcelocastrobarbosa

@marcelocastrobarbosa marcelocastrobarbosa commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • refresh Git snapshots before emitting reconciled workspace updates
  • cover opened directory workspaces that become Git repos after git init

Fixes #2356.

Root Cause

The global reconciliation path could update persisted workspace/project classification, then emit workspace updates before the session had a fresh Git runtime snapshot for the reclassified workspace. Desktop could keep seeing the workspace as lacking Git runtime metadata until restart.

Validation

  • npx vitest run packages/server/src/server/daemon-e2e/project-becomes-git.e2e.test.ts --bail=1
  • npm run build:server
  • npm run typecheck
  • npm run lint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop does not reclassify an added non-git project after git init

1 participant