mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
* fix(store): keep setup-script dismissal array identity on no-op repo fetches filterSetupScriptPromptDismissalsToValidRepos always allocated a new array, so fetchRepos, fetchRuntimeEnvironmentRepos, and validateRepoScopedUi replaced setupScriptPromptDismissedRepoIds even when every entry was already a valid host-identity key. SetupScriptPromptCard Object.is-subscribes to that array, so a no-op catalog refresh missed 100% of the time. Return the original store array when the filtered result is element-wise identical to the input. Allocate only when an entry is dropped, rewritten from a legacy generation-v1:repoId key, or deduped. Call sites already assign the helper result. Co-authored-by: Orca <help@stably.ai> * type: make setupScriptPromptDismissedRepoIds readonly Return readonly string[] from filterSetupScriptPromptDismissalsToValidRepos and sanitizeSetupScriptPromptDismissals, and update the store field type to readonly. This prevents accidental mutation of the live store array on no-op prune cycles. Add isUnchangedDismissalList type predicate for identity check. Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Orca <help@stably.ai>