Repository navigation
fix(desktop): keep retired tasks consistent across surfaces - #9940
Merged
Merged
Conversation
added 5 commits
July 17, 2026 17:43
Failure-Class: FC-split-mutation-authority
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…dware#9940) ## Summary - Project cancelled and superseded task statuses through one shared lifecycle rule, so the local cache, Dashboard refresh, and To Do reconciliation all retire the same task. - Make Tasks-page first-load, loading, error, and retry behavior follow the selected To Do or Done view instead of aggregate task rows. - Add regression coverage for soft retirement, Dashboard visibility, selected-view state, and both terminal statuses. ## Failure class Failure-Class: FC-split-mutation-authority The violated contract was that separate callers projected task retirement differently. The fix converges this lifecycle transition in `TaskActionItem.isRetired`, the shared domain model, rather than adding another surface-specific observer. It covers the reported cross-surface disagreement and follows the class's prior evidence in BasedHardware#9365 and BasedHardware#9597. ## Product invariants None. `scripts/pr-preflight --suggest` found no product-invariant citations required by these changed paths. ## Verification - `xcrun swift test -c debug --package-path Desktop --filter 'ActionItemStorageVisibilityReconciliationTests|TasksStoreEmptyCloudReconcileTests|DashboardTaskRefreshPolicyTests|StartupWarmupPolicyTests|TasksViewModelCompletedToggleTests'` (59 tests passed) - `./scripts/agent-logic-harness.sh --cross-surface-smoke` (Swift, agent, and Rust contract smoke passed) - `./scripts/swift-format-wrapper.sh lint ...` and `python3 scripts/check_desktop_test_quality.py` - Built and launched the named ad-hoc `omi-task-projection` bundle; its automation bridge navigated to Tasks. The dev bundle was signed out, so live account data could not be exercised. - Independent Sol review approved the implementation with no blocking findings. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9940?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Failure class
Failure-Class: FC-split-mutation-authority
The violated contract was that separate callers projected task retirement differently. The fix converges this lifecycle transition in
TaskActionItem.isRetired, the shared domain model, rather than adding another surface-specific observer. It covers the reported cross-surface disagreement and follows the class's prior evidence in #9365 and #9597.Product invariants
None.
scripts/pr-preflight --suggestfound no product-invariant citations required by these changed paths.Verification
xcrun swift test -c debug --package-path Desktop --filter 'ActionItemStorageVisibilityReconciliationTests|TasksStoreEmptyCloudReconcileTests|DashboardTaskRefreshPolicyTests|StartupWarmupPolicyTests|TasksViewModelCompletedToggleTests'(59 tests passed)./scripts/agent-logic-harness.sh --cross-surface-smoke(Swift, agent, and Rust contract smoke passed)./scripts/swift-format-wrapper.sh lint ...andpython3 scripts/check_desktop_test_quality.pyomi-task-projectionbundle; its automation bridge navigated to Tasks. The dev bundle was signed out, so live account data could not be exercised.