Tasks overhaul: finish desktop gaps, decide suggestion expiry, and propose the mobile "AI never adds tasks" scope
Why
The product rule (invariant INV-TASK-2, product/invariants/task-capture-suggestion-only.md) is that automatic capture only suggests tasks, and an item becomes a task only on an explicit user gesture. Unused suggestions expire after 2 days, and task execution was removed. Most of this has shipped, but some gaps remain, and one scope question is open.
Current state on main
| Rule | State |
|---|---|
| Suggestion-only capture | Partial by design since #12424. Desktop conversations produce suggestions. Phone, pendant, watch and SD-card conversations write extracted items straight to the task list, using the stricter extraction prompt. #12424 narrowed the invariant to "surfaces that have a Suggested lane". |
| 2-day suggestion expiry | Partial. SUGGESTION_TTL is stored as expires_at and filtered on read (backend/…/candidates.py), but status stays pending. Nothing calls /expire, there is no Firestore TTL, and accepting a suggestion doesn't check expiry, so an old chat card can accept an expired one. |
| Execution removed | Partial. "Execute with Omi" and the tmux agent are gone. The floating-bar task notification still has an Execute button that launches an agent (FloatingControlBarView.swift, ProactiveTaskExecute.swift). TaskPromotionService still starts but does nothing. |
| Summary Action Items with "Add to Tasks" | Done on desktop. Gap: it calls createTask(description:) with no conversation_id and doesn't resolve the matching pending suggestion, so the item stays in the Suggested lane and accepting it there creates a duplicate. The "Added" state is view-local and is lost when the view is rebuilt. |
| Chat suggested-task card | Done (accepts the suggestion by its ID). |
| Select mode keeps category grouping | Done visually. Keyboard and select-all order may go flat; check it. |
| Chat/MCP write tasks directly | Done, and declared out of scope in the invariant. |
Acceptance criteria
Summary "Add to Tasks" resolves the matching pending suggestion (via its semantic identity), keeps the
conversation_idlink, and keeps its state when the view is rebuilt. A test proves no duplicate appears in the Suggested lane.Expired-suggestion accept: decide between rejecting (409) and allowing late accepts, implement it, and test it. Then decide whether expiry becomes a real state change (backfill, a TTL, or an expiry job).
Floating-bar Execute removed. Keeping it requires an explicit exemption recorded in the invariant doc.
Dead code removed, or kept with a one-line justification:
TaskPromotionService,/v1/staged-tasks/promote, and the control endpoint'sofffallback.Running-app check on a desktop build of summary Action Items, the chat card and select mode, with screenshots on the PR.
Mobile scope proposal: a short write-up posted on this issue giving both options with trade-offs, for a maintainer to rule on.
- (a) Accept #12424: mobile conversations write tasks directly.
- (b) Restore suggestion-only on mobile, which needs a mobile Suggested lane (#9359, #12368).
Don't implement either until the ruling.
Legacy backlog (W8): a read-only inventory of stale pending suggestions without
expires_at, legacystaged_tasks, and orphan rows in the desktop mirror, aggregate counts only. Any data change needs separate maintainer authorization.
Prerequisites
A desktop build environment (CI pins its Xcode version; check the workflow), backend tests via backend/test.sh, and the invariant doc. PRs touching the invariant's paths must follow its PR-body rule. W8 needs data read access; ask a maintainer.
Related
#9352, #9359, #12368, #12121 (fixed the suggestion-merge TTL mismatch), #12424. #12251 is a separate Windows cleanup PR, not this work.
Source: BasedHardware/omi