mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* perf(renderer): keep project catalog identity on SSH readoption SshPane calls recordSshRepoReadoptions on every Manage-pane importConfig(), often with []. The publisher always rebuilt projects and projectHostSetups via projectCompatibilityFromRepos then mergeProjectHostSetupCompatibility and spread the new objects into set(), so WeakMap and Object.is selectors missed even when nothing was re-adopted. Fetch paths already reconcile through mergeFetchedProjectCompatibilityForHost, but that helper is host-scoped and this write is all-repos. Reconcile the merged rows against the previous catalog with the same identity keys, omit unchanged keys from set(), and skip the work entirely when both the incoming and pending readoption lists are empty. Tests reuse the production-shaped nested repo fixture and the structuredClone fetch path. A pending-only readoption stays identity-stable, and removing the two reconcile calls turns that case red. Co-authored-by: Orca <help@stably.ai> * type(store): mark pending SSH readoptions readonly Widen pendingSshRepoReadoptions, recordSshRepoReadoptions, and the merge/reconcile helpers to readonly so a reused pending queue cannot be mutated in place after a no-op catalog reconcile. Co-authored-by: Orca <help@stably.ai> * perf(renderer): drop redundant catalogRowsUnchanged after reconcile reconcileCatalogRows already hands back the previous array when nothing moved, so the extra element-wise compare could never disagree. Pin the empty-readoption early return with a whole-state identity assertion, which is the only guard the previous test could not distinguish. Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Orca <help@stably.ai>