Skip to content

fix(desktop): keep retired tasks consistent across surfaces - #9940

Merged
Git-on-my-level merged 5 commits into
mainfrom
codex/fix-macos-task-projection
Jul 17, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
codex/fix-macos-task-projection

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 17, 2026 •

Copy link
Copy Markdown
Member

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 #9365 and #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.

Review in cubic

@Git-on-my-level
Git-on-my-level merged commit 5cbda3a into main Jul 17, 2026
25 of 28 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/fix-macos-task-projection branch July 17, 2026 22:58
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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant