fix(persistence): worktree meta and lineage writes take the row's host, not the id (R4-2b) (#30811)

* fix(persistence): worktree meta and lineage writes take the row's host, not the id (R4-2b)

* fix(persistence): review fixes for host-targeted worktree writes

* test: SAFETY notes on partial runtime store mocks

* test: drop imports duplicated by the rebase onto #30797
This commit is contained in:
Neil
2026-10-19 11:39:54 -07:00
committed by GitHub
parent 86ef00ad55
commit eedca5ee1c
142 changed files with 1625 additions and 772 deletions
@@ -47,7 +47,10 @@ export type RuntimeGitCommandHost = {
* no store (avoids unrelated ownership-inheritance/refspec-migration side effects), so a
* lazily-minted remote still needs a way back into the store's `pushTarget.remoteCreated`
* for #17842's orphan sweep. Called only when materialize reports `remoteCreated: true`. */
persistMaterializedPushTarget?(worktreeId: string, pushTarget: GitPushTarget): void
persistMaterializedPushTarget?(
worktree: Pick<Worktree, 'id' | 'hostId'>,
pushTarget: GitPushTarget
): void
}
/**