fix(sync): render sessions in worktrees created while the client is running #2603

This commit is contained in:
Bohdan Triapitsyn
2026-08-04 02:05:29 +03:00
committed by GitHub
9 changed files with 203 additions and 20 deletions
+5 -1
View File
@@ -441,7 +441,11 @@ export const debugUtils = {
const sources = {
attachment,
worktreeMetadata,
authoritative: owningStoreDirectory ?? recordDirectory,
// Record first, matching the resolver: holding a session proves
// containment, not ownership, so the parent repository holds its
// worktrees' sessions too. Reporting membership first made this
// diagnostic contradict the routing it exists to explain.
authoritative: recordDirectory ?? owningStoreDirectory,
selected,
remembered: remembered.runtime,
};