Files
codeg/src-tauri
xintaofei ff48810603 fix(workspace-state): keep git-presence flag and branch poll in sync with runtime state
Reconcile the cached is_git_repo flag against the filesystem on every watch flush so `git init` or deletion of .git is reflected immediately: sync the stored flag, drop stale git_snapshot data when the repo goes away, emit a meta delta when presence flips without any data change, and mark the event as requires_resync so the frontend re-fetches the snapshot to pick up the new flag.

Replace the title-bar branch polling interval with a self-adjusting setTimeout chain that backs off to 60s when get_git_branch returns null or throws and drops back to 10s once a branch is detected, so branches created externally recover within one slow tick without hammering the backend on non-git folders.
2026-04-18 17:44:45 +08:00
..
2026-03-31 13:44:23 +08:00
2026-03-22 13:57:07 +08:00
2026-03-06 22:56:13 +08:00
2026-03-29 18:36:30 +08:00
2026-04-18 12:03:07 +08:00
2026-04-18 12:03:07 +08:00
2026-04-18 12:03:07 +08:00