mirror of
https://github.com/stablyai/orca.git
synced 2026-11-05 03:27:44 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user