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
@@ -9,7 +9,7 @@ export type RuntimeLinearCommandPorts = {
resolveWorktreeSelector: (selector: string) => Promise<ResolvedWorktree>
listResolvedWorktrees: () => Promise<ResolvedWorktree[]>
setWorktreeMeta: (
worktreeId: string,
worktree: Pick<ResolvedWorktree, 'id' | 'hostId'>,
meta: {
linkedLinearIssueWorkspaceId: string
linkedLinearIssueOrganizationUrlKey: string | null
@@ -41,13 +41,13 @@ export class RuntimeLinearCommandBase extends RuntimeLinearBrowseCommands {
}
protected setWorktreeMeta(
worktreeId: string,
worktree: Pick<ResolvedWorktree, 'id' | 'hostId'>,
meta: {
linkedLinearIssueWorkspaceId: string
linkedLinearIssueOrganizationUrlKey: string | null
}
): void {
this.ports.setWorktreeMeta(worktreeId, meta)
this.ports.setWorktreeMeta(worktree, meta)
}
protected emitClientEvent(event: LinearLinkedIssueUpdatedEvent): void {