Skip to content

feat(notes): action-item owner, due and context on web, macOS and mobile - #20725

Closed
Git-on-my-level wants to merge 28 commits into
mainfrom
feat/meeting-note-action-item-meta
Closed

Git-on-my-level wants to merge 28 commits into
mainfrom
feat/meeting-note-action-item-meta

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

What

Meeting-note action items now use the same metadata and the section name Action items on web, macOS and mobile. Tentative dates display as Due ~Wed, Oct 7 and expose “tentatively due …” to accessibility; confirmed and unspecified dates keep the existing presentation. Unknown owner, due date and context are omitted.

Surface Changes
Web share page Owner and due date share one line, context gets its own line, and tentative due dates are marked.
macOS Same metadata and due certainty; “Action items” heading; status control creates/completes or reopens the linked task with the item, and Add to Tasks preserves due_at. Cache encoding keeps owner, due date/certainty and context. “Try with Apps” starts collapsed.
Mobile “Action items” section with metadata and certainty; check-off creates one completed task or completes the linked task, and unchecking reopens it; row menu adds an open task with in-flight, retry and linked-task states, or opens the transcript at the source segment when available.

The native apps show “You” for the reader’s own items (capture_owner == "user"); the public share page keeps the owner’s name. Email-shaped owner names are omitted. The separate task list continues to say “Tasks”.

The web Markdown export for agents is unchanged and retains Owner: Unknown / Due: Unknown; shared-export.test.mjs pins that behavior.

Data

The wire already carries due_certainty, target_task_id and source_segment_ids; this change retains them in the client models and their caches. The public share projection now includes optional due_certainty, which is represented in the checked-in app-client OpenAPI schema and generated TypeScript clients. Flutter Structured.toJson() writes full action-item objects while its decoder still accepts legacy description strings; macOS Structured.encode(to:) preserves owner, due date/certainty and context.

  • macOS ActionItem decodes and encodes due certainty, target task ID and source segment IDs. These fields survive the JSON summary cache round trip, and legacy rows without them still decode.
  • Flutter ActionItem carries those fields through fromGenerated and toGenerated. Task creation uses a stable idempotency key for each extracted item, so repeated toggles reuse the same task.
  • Mobile strings were added through scripts/l10n.py with translations for all 49 locales.

Verification

  • Web: cd web/frontend && npm test && npm run test:share-http — both passed (185 unit tests and the HTTP share test).
  • Backend: BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-lane-a-backend-tests.txt bash backend/test.sh — 13 passed for the selected share projection test file. backend/.venv/bin/python backend/scripts/export_openapi.py --surface app-client --write docs/api-reference/app-client-openapi.json — regenerated the schema with nullable due_certainty enumerated as confirmed / tentative; the four generated TypeScript clients were refreshed from that schema and the generator check passes.
  • macOS: cd desktop/macos && ./scripts/dev-feedback.py --once swift 'ActionItemRowMetadataTests' — 9 passed, including tentative date, ActionItem and Structured cache round trips, and collapsed disclosure tests. Local Xcode toolchain; not visually verified in a running app.
  • Flutter focused tests: flutter test test/backend/structured_sections_test.dart test/widgets/conversation_action_items_section_test.dart test/providers/siri_task_mutation_test.dart — 31 passed, covering conversation-cache round trips, legacy cache decoding, metadata adapters, tentative presentation/accessibility, menu actions, and repeated complete/reopen/add operations.
  • Localization: python3 app/scripts/l10n.py check — 49 locales, 3685 keys.
  • Mobile UX contract ratchet: python3 .github/scripts/check_mobile_ux_contract.py --changed-files <changed app/lib files> --base origin/main — passed INV-UI-3.
  • bash app/test.sh after merging the remote cache fix: 4731 passed, 0 failed. scripts/pr-preflight --pr-body-file <this file>: all 53 selected checks passed in 666.74 seconds before the remote cache, OpenAPI schema and generated client updates. Pre-merge repository OMI_PR_BODY_FILE=<this file> make preflight: all 53 checks passed in 289.89 seconds before the remote cache, OpenAPI schema and generated client updates. Post-merge OMI_PR_BODY_FILE=<this file> make preflight: all 53 checks passed in 344.38 seconds before the final OpenAPI artifact and generated TypeScript client updates.

No running macOS app or physical device was used.

Product invariants affected

  • INV-MEM-1: not affected. The path glob matches memory components, but this change touches no memory tiers, collections or access policy.
  • INV-TASK-1: task creation and completion are used only to connect extracted action items to the existing task store; task bucket and pagination behavior are unchanged.
  • INV-TASK-2: not affected. Conversation extraction never writes a task; an extracted item becomes a task only through the reader's explicit check-off or Add-to-Tasks gesture, and the canonical promoter keeps that path suggestion-only.

Failure-Class: FC-mirrored-model-omits-new-member
Line-Count-Exception: desktop/macos/Desktop/Sources/Stores/TasksStore.swift | 3713 -> 3730 | reason: createTask accepts an initial completed state so extracted action items can be checked off without creating an open task first; toggleTask now reports whether the completion mutation took effect so conversation summaries only mirror toggles that reached the backend.
Line-Count-Exception: backend/routers/conversations.py | 2266 -> 2277 | reason: set_action_item_status now scopes its standalone-task mirror to the row's durable target_task_id when present instead of flipping every task that shares the description, keeping sibling tasks with equal wording independent.

🤖 Generated with Claude Code

Git-on-my-level and others added 4 commits October 5, 2026 16:56
Meeting-note action items now read the same on web, macOS and mobile:
the item, then owner and due date on one line, then the context on its
own line. An unknown owner or due date is left out instead of saying
"Unknown".

- web share page: drop "Due Unknown" and the unknown-owner avatar; the
  context moves to its own line. The agent Markdown export keeps its
  explicit Unknown markers.
- macOS: ActionItem now decodes and caches owner_name, due_at and
  context; the row shows them, and Add to Tasks keeps the due date.
- mobile: the summary shows the note's tasks again (read-only, after the
  sections, as on the Mac) with the same metadata. The reader's own
  items say "You".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T01:44:30.314673Z 6d06b2c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 16 files

You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread app/lib/backend/schema/structured.dart Resolved
Comment thread web/frontend/tests/share-http.test.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6387095123

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/lib/backend/schema/structured.dart Resolved
Git-on-my-level and others added 8 commits October 5, 2026 18:51
Meeting-note action items now read the same on web, macOS and mobile:
the item, then owner and due date on one line, then the context on its
own line. An unknown owner or due date is left out instead of saying
"Unknown".

- web share page: drop "Due Unknown" and the unknown-owner avatar; the
  context moves to its own line. The agent Markdown export keeps its
  explicit Unknown markers.
- macOS: ActionItem now decodes and caches owner_name, due_at and
  context; the row shows them, and Add to Tasks keeps the due date.
- mobile: the summary shows the note's tasks again (read-only, after the
  sections, as on the Mac) with the same metadata. The reader's own
  items say "You".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…overage

Structured.toJson() wrote description-only strings, so the Flutter
conversation cache dropped owner/due/context on every restart; it now
emits the full action-item objects while the legacy String branch still
decodes old caches. Structured.encode(to:) on macOS rebuilt items with
dueAt: nil and no ownerName/context; it now maps all three fields, and a
new Structured-level round-trip test pins it.

The widget test now covers a due-dated row (keeping the no-Unknown
assertions), the share HTTP test asserts the owner inside .sn-owner, and
the meta separator rides at the owner's tail so a wrapped due date never
starts a row with a stray dot.
@Git-on-my-level
Git-on-my-level force-pushed the feat/meeting-note-action-item-meta branch from 6387095 to 4ef1a4e Compare October 5, 2026 12:41
…ta' into lane/meeting-note-action-meta

# Conflicts:
#	app/changelog/unreleased/20261005-meeting-note-tasks.json
#	app/lib/backend/schema/structured.dart
#	app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart
#	app/lib/pages/conversation_detail/widgets/summary_tab.dart
#	app/test/widgets/conversation_action_items_section_test.dart
#	desktop/macos/Desktop/Sources/MainWindow/Components/ConversationActionItemRow.swift
#	desktop/macos/Desktop/Sources/Services/APIClient/APIClient+ConversationModels.swift
#	desktop/macos/Desktop/Tests/ActionItemRowMetadataTests.swift
#	desktop/macos/changelog/unreleased/20261005-meeting-note-action-item-owner-due.json
#	web/frontend/src/__tests__/shared-note.test.mjs
#	web/frontend/src/app/memories/[id]/share-note.css
#	web/frontend/src/components/memories/summary/action-items.tsx
#	web/frontend/src/lib/shared-note.mjs
#	web/frontend/tests/share-http.test.mjs
@mintlify

mintlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Oct 5, 2026, 11:46 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ebf66b0aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Address review feedback on the action-item task flows:

- TasksStore.createTask now inserts completed creates into completedTasks
  and passes 'completed' to the backend create, so a checked-off summary
  item no longer resurfaces as an open task after refresh.
- TasksStore.toggleTask reports whether the mutation took effect;
  ConversationActionItemsSection only patches the conversation summary
  after a confirmed task mutation (or a completed create), so the two
  surfaces can no longer disagree.
- Action-item session identity binds segments + description + due date on
  both macOS and mobile: segment IDs are evidence references, not unique
  identities, and one segment can carry several commitments.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Fixed in 925dc4d: createTask now inserts completed creates into completedTasks (and the backend-synced replacement checks both collections), and the background APIClient.createActionItem passes completed: — the wire schema and backend create already supported it, so a checked-off summary item no longer resurfaces as an open task after refresh.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Fixed in 925dc4d: TasksStore.toggleTask now returns whether the mutation took effect (@discardableResult, so existing call sites are unaffected), and toggleCompletion only patches the conversation summary after a confirmed toggle — or a completed create. Failed creates/toggles now mark the row failed instead of completing the summary item while its task stays open.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Fixed in 925dc4d: session identity now binds segments + description + due date on both macOS and mobile (the widget's duplicate _identity delegates to the session's so they cannot drift). No stable server discriminator exists on either surface, so content-stable identity keeps distinct rows distinct — including several commitments sharing one segment — without reintroducing the unstable index/id keying this PR moved away from. Pinned by new tests (distinct identities for same-segment items; check-off failure does not complete the summary).

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor run summary (925dc4d) — addressed all three review threads:

  • Completed creates (TasksStore): completed creates insert into completedTasks, backend create now sends completed. A checked-off summary item no longer returns as an open task after refresh.
  • Confirmed toggles: toggleTask reports success; the summary only updates after a confirmed task mutation or completed create, so the two surfaces can no longer disagree.
  • Unique item identity: segments + description + due date on macOS and mobile; rows sharing one segment no longer collide. Two new Flutter regression tests pin identity separation and check-off failure handling (13/13 focused tests pass; analyzer clean).

Verification: Flutter focused suite green, swiftc -parse clean, desktop changelog gate pass, and manual pre-push preflight (both lanes) passed every runnable check — firestore-index-guard, feature-flag-registry, api-result-boundaries, capture-ownership-boundaries, check-manifest-contract.

Two honest caveats: (1) the branch still conflicts with origin/main in ConversationDetailSections.swift from #19815 landing after this branch's last push (pre-existing; the line-count ratchet cannot measure a conflicted synthetic merge, so the push used the documented transport-only bypass after the equivalent gates above passed manually) — the promoter-vs-identity-state merge needs a lane decision; (2) desktop Swift unit tests were not run locally (binary artifacts unavailable in the worktree); parse + CI provide that evidence.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 925dc4d24b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…oggles

Reconcile the action-item flows with main's canonical candidate promotion
(#19815): Add-to-Tasks now goes through ConversationSummaryTaskPromoter,
whose accept path persists target_task_id server-side, replacing the
offline TasksStore.createTask add path whose task link lived only in
page state. The completion toggle stays, and a cached task is re-read
from SQLite before toggling so a local_<rowid> id can never reach
toggleTask after its create-sync finished (its local-only branch would
skip the backend and desync the surfaces).

Also keep the action-item metadata (owner, due, certainty, context)
when linking a conversation to its promoted task, and restrict owner
suppression to email-shaped names so a handle like @alex stays
visible, matching the Flutter and web adapters.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7503b2963f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…ionItem

The origin/main merge moved recurrenceRule ahead of completed in
APIClient.createActionItem's parameter list; this call site kept the
pre-merge order, so the desktop Swift compile failed with
'argument recurrenceRule must precede argument completed'.
ConversationSummaryTaskPromoter.linkedConversation, merged from
origin/main (#19815), is a @mainactor static method; calling it from a
nonisolated synchronous test failed the desktop Swift compile. Mark the
test class @mainactor like ConversationSummaryTaskPromoterTests.
This PR made TasksStore.toggleTask return whether the completion
mutation took effect; the three Task-wrapped call sites in
TasksStoreOwnerBoundaryTests still discarded the result, which the
Swift compiler rejects as an unused Bool expression. Assert the
outcome at each site: false when the owner lease was revoked mid-flight,
true when the toggle completed under the captured lease.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d06b2c998

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/frontend/src/lib/shared-note.mjs Resolved
…s, canonical promotion

Trusted-bot review round on the action-item metadata work:

- Mobile: task-session identity now includes the row index, so identical
  extracted twins keep separate pending state, idempotency keys, task links
  and widget keys; a conversation PATCH failure compensates the task it just
  created (delete) or toggled (restore); the row is re-resolved against the
  provider's current items before patching so a reprocessed note cannot
  redirect the write onto another row.
- macOS: completion-created tasks go through ConversationSummaryTaskPromoter
  (durable target_task_id link, backend-addressable id — no local-only ids),
  the conversation PATCH failure rolls the task back, and completion
  overrides key by row identity instead of the description.
- Apple Reminders: a completed create propagates isCompleted/completionDate
  to the new EKReminder instead of appearing open in Reminders.
- Web: the Markdown export marks tentative due dates, matching the page.
- Backend: a linked row (target_task_id) mirrors exactly its task instead of
  every standalone task sharing the description; unlinked rows keep the
  legacy description mirror.
- Tests: hermetic mirror regression suite; twins/rollback/reprocess mobile
  tests; tentative-export test; manifest registers the two new writer files;
  the owner-boundary assertion now matches toggleTask's stale-lease bail.
The section's rows now take part in the tab's search: the page counts
matches in each row's description, verbatim owner name and context (the
localized "You" label, email-shaped names and deleted rows are not
searchable), passes the section its offset into the tab's results, and
the rows highlight their matches and scroll to the tab's current result
exactly like the note's own paragraphs.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Addressed the outstanding trusted-bot review round and pushed two commits (d4fefb5, 30f0752); resolved the eleven open review threads.

Row identity & idempotency (P1) — task-session identity now includes the row index, so identical extracted twins keep separate pending state, idempotency keys, task links and widget keys (mobile), and macOS completion overrides key by the row's per-row identity instead of ActionItem.id (the description).

Failure atomicity (P1) — mobile compensates the task it just created (delete) or toggled (restore) when the conversation PATCH fails; macOS rolls the task back in the catch path; the row is re-resolved against the provider's current items before patching, so a reprocessed note cannot redirect the write onto another row.

macOS promotion & sync (P1) — completion-created tasks go through ConversationSummaryTaskPromoter, so the durable target_task_id link is persisted and only backend-addressable ids are cached (no local_<rowid> in-flight race). Linked backend rows mirror exactly their task instead of every standalone task sharing the description. Apple Reminders creation propagates the completed state to the new EKReminder.

Web export (P2) — the Markdown export marks tentative due dates, matching the share page.

Summary search (P2) — the section's rows now participate in the Summary tab's search: the page counts matches in each row's description, verbatim owner name and context (localized "You", email-shaped names and deleted rows are not searchable), passes the section its offset, and rows highlight matches and scroll to the tab's current result like the note's own paragraphs.

Push notes: the local web-app-checks pre-push gate fails on the clean merge base cf8201c2 with the same 11 pre-existing StartupModals/Sidebar vitest failures (unrelated files; localStorage.clear TypeError), so that gate was bypassed with --no-verify after reproducing the identical failure on the base. A Line-Count-Exception for backend/routers/conversations.py was added to the PR body (TasksStore's already present). Remaining red backend shards are main's TTS rate-limit rename, tracked by #20748.

set_action_item_status now reads the row's target_task_id to scope the
standalone-task mirror; the fake predating that field made the route's
mirror raise inside its except and skip the mirror entirely, so the two
reminder tests failed with mark_action_item_completed called 0 times.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

aryanorastar added a commit that referenced this pull request Oct 21, 2026
Conversations can contain desktop-extracted action items while mobile
Tasks has no way to review them. Task Integrations is also hidden behind
an export glyph. Mobile now shows the existing server Suggested
projection in Tasks, lets readers explicitly add or dismiss suggestions,
recovers older desktop summary rows through the existing
generation-fenced summary promoter, and exposes a named Task
Integrations entry in Settings/search and the Tasks menu.

The backend now accepts historical text summary rows, converting only
the selected row when acceptance saves its durable task link. Candidate
preparation and acceptance use the existing bounded Firestore contention
retry helper, including read-time aborts and exhausted SDK retries;
unknown/ambiguous failures are not retried by that helper.

Acceptance reads and upserts the exact canonical task ID. A successful
receipt survives a failed read without repeating acceptance; older
Tasks, Home and pagination responses cannot erase the saved task or
resurrect a resolved suggestion. New incomplete tasks exit an
automatically selected Completed view while manual view choices remain
respected. Overlapping reads are query/session-owned; point reads, Undo
and optimistic creates cannot skip server pages. A save that invalidates
initial loading schedules a replacement read, and summary retries renew
keys only for confirmed terminal proposals while retaining ambiguous
retries. Summary recovery preserves original storage coordinates through
malformed-row filtering and conversation caching, so the selected row
stays the selected row. Phone extraction retains its existing direct
writer; this does not introduce a second manual-create path for phone
summaries.

Refs #20595 and #12368. #12424 already restored the mobile-origin
backend writer. #20725 remains separate and open; this PR completes the
mobile access/recovery path through canonical acceptance rather than
depending on that broader notes UI change.

Validation:
- 195 focused schema, cache, task-provider, widget, Settings and
production-wiring tests passed, including overlapping reads, first-load
recovery, terminal suggestion retries, fresh/cached summaries with
invalid leading rows and canonical approval. The latest backend run
passed 386 Candidate lifecycle/router, summary promotion and
capture/extraction/identity tests. Another 26 real Firestore emulator
checks passed, covering concurrent preparation/acceptance, definite
read/commit aborts, generation fences, expiry, text rows, canonical task
reads/refresh/pagination and integration reads. The 23 selected hermetic
mobile journey assertions also passed. The recovery/expiry suites are
now registered in the existing backend emulator CI runner and its path
triggers; the complete runner passed locally, including the 26 task
checks.
- Analyzer checks, all 51 local preflight checks, backend type checking
(zero errors), API compatibility/code-generation checks and the normal
pre-push gate passed. Native iPhone simulator build and agent-flutter
checks passed; the cached-summary fixture rejects any prepare/accept
request that does not use the original stored coordinate.
- Mobile GitHub CI passed on 94798e1
(6,793 Dart tests); fresh CI for the final backend/CI head
7375693 is queued and is not yet
confirmed green. Workflow-selected native platform/journey CI jobs were
skipped; local iPhone simulator and selected hermetic journey evidence
are recorded above. No store release or production account recovery is
claimed.
- Live read-only verification on 2026-10-20: production
https://api.omi.me/openapi.json returned 200 and publishes all nine
required route boundaries. Production Cloud Logging shows successful
control and summary-preparation requests; this proves existing route
availability, not deployment of this PR. A local curl → uvicorn →
production FastAPI router → Firestore emulator smoke passed 10 requests
with one-task receipt replay (synthetic identity/auth boundary, no
customer records or external notifications).
- Architecture and implementation checklist: app/docs/task-delivery.md.

Release and customer verification:
- Needs merge, deployment of the backend serving the mobile task APIs,
an authenticated synthetic production smoke, then an iOS/Android mobile
release. Deploy backend first: legacy text-row support and contention
retries are new server code. Existing universal APIs require no UID
allowlist, bulk migration or new index. Relevant backend APIs: Candidate
control/list/read/prepare/accept/reject, canonical task point/list reads
and task-integration reads. Existing route/schema availability is
verified; this PR’s new server behavior is not deployed.
- Does not claim an account-specific historical backfill or recovery.
Verify one affected phone/pendant conversation delivers tasks, and an
older desktop summary can add a task that remains after refresh/reopen.
Verify Task Integrations opens from Settings and the Tasks header/menu
on a physical phone.
- Keep #20595 open until the affected customers' records and released
app behavior are verified.

## Product invariants affected

INV-TASK-2: desktop capture remains suggestion-only; only explicit
approval invokes canonical acceptance. Phone capture policy is
unchanged.
INV-UI-3: uses shared Omi controls/sheets, existing localized copy and
localized Settings search.
INV-PERF-1: uses the bounded server Suggested projection and the
existing shared task owner; no history polling or additional capture
pipeline.

Failure-Class: new

## UI evidence

![Task
suggestions](https://raw.githubusercontent.com/BasedHardware/omi/d70a1bb9ec1dfb666a87864970b812f0519f62de/.agent-artifacts/ui-evidence/fix-20595-task-delivery/001-mobile-ios-task-suggestions.png)

![Named Task Integrations
menu](https://raw.githubusercontent.com/BasedHardware/omi/d70a1bb9ec1dfb666a87864970b812f0519f62de/.agent-artifacts/ui-evidence/fix-20595-task-delivery/003-mobile-ios-task-integrations-menu.png)

Additional saved-task, integration destination and summary-recovery
captures are recorded in the sibling evidence.json manifest.
@Git-on-my-level
Git-on-my-level marked this pull request as draft November 4, 2026 07:01
@Git-on-my-level
Git-on-my-level marked this pull request as ready for review November 4, 2026 07:27
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui f2e672b27283c51546a203f9c9443a8148f0eba7. Each new head needs a fresh approval. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

60 issues found across 142 files

Confidence score: 2/5

  • Task identity can drift or collide: in conversation_action_items_section.dart, row position changes the persisted identity and matching ignores sourceSegmentIds; in ConversationDetailSections.swift, identical rows can share a state key. Use stable, distinct row identities so reprocessing or toggling one item doesn’t affect another.
  • In ConversationDetailSections.swift, the first completion toggle for an unlinked task can fail because toggleTask requires it to already exist in ActionItemStorage. Ensure the task is stored before calling the toggle.
  • In conversation_action_items_section.dart, a stale row snapshot can direct the final patch to the wrong item, and a missing row skips rollback of the task mutation. Resolve the row from current provider state and roll back when it can’t be found.
  • In action_items_provider.dart, a keyed retry can return an already-exported item but still create another Apple Reminder. Skip export when the returned item is already linked or exported.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart">

<violation number="1" location="app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart:190">
P1: The row index makes the persisted task identity and idempotency key change whenever extraction reorders rows. Keep task identity independent of mutable display position, or use a stable server/item identity, so reprocessed notes cannot promote the same item twice.</violation>

<violation number="2" location="app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart:255">
P2: A missing or moved row leaves the task mutation applied because this early return bypasses the rollback below. Roll back the created or updated task before returning when `_resolveRow` cannot find the row.</violation>

<violation number="3" location="app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart:287">
P1: Include `sourceSegmentIds` in `sameRow` matching. Otherwise identical action items backed by different transcript segments can have the wrong row completed or reopened after the list changes.</violation>

<violation number="4" location="app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart:376">
P1: Do not pass a pre-await row snapshot to the final conversation patch. Re-read the provider rows immediately before resolving and updating the index, or pass a getter so reprocessing cannot redirect the patch to a different row.</violation>
</file>

<file name="desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailSections.swift">

<violation number="1" location="desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailSections.swift:106">
P2: `actionItemIdentity` omits the row index, so identical rows sharing source segments, description, and due date use one state key. Toggling or promoting one row then changes the other row's override and task state; include the row index or another per-row identity.</violation>

<violation number="2" location="desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailSections.swift:185">
P1: `toggleCompletion` passes a freshly promoted backend task directly to `TasksStore.toggleTask`, but `toggleTask` requires the task to exist in `ActionItemStorage` before it calls the API. The first check of an unlinked item therefore fails for the newly created task; sync it locally before toggling or use a remote-safe mutation path.</violation>
</file>

<file name="app/lib/providers/action_items_provider.dart">

<violation number="1" location="app/lib/providers/action_items_provider.dart:589">
P2: This linked-task entry point reuses toggle handling that does not identify the latest request, so concurrent toggles can leave the local state different from the server. Track the latest mutation per task and ignore stale success or rollback responses.</violation>

<violation number="2" location="app/lib/providers/action_items_provider.dart:902">
P2: A keyed retry returns the existing action item, but this path still treats every non-null response as new and creates another Apple Reminder. Skip direct export when the returned item is already exported or linked, or distinguish newly created responses before syncing.</violation>
</file>

<file name="app/lib/l10n/app_localizations_kn.dart">

<violation number="1" location="app/lib/l10n/app_localizations_kn.dart:12467">
P2: The visible Kannada tentative-date label drops the required `~` marker, so the UI is inconsistent with the tentative-date contract. Preserve the marker in this localized string, while keeping the separate semantics string for the spoken wording.</violation>

<violation number="2" location="app/lib/l10n/app_localizations_kn.dart:12494">
P2: This status announces consent/approval instead of an incomplete state to Kannada users, including screen-reader users. Translate it as an incomplete/pending status, such as `ಅಪೂರ್ಣ` or `ಪೂರ್ಣಗೊಂಡಿಲ್ಲ`.</violation>
</file>

<file name="app/lib/l10n/app_sr.arb">

<violation number="1" location="app/lib/l10n/app_sr.arb:11403">
P2: The Serbian tentative due-date label drops the required `~` marker. Add the marker to the visible translation so tentative dates remain consistently identifiable across locales.</violation>
</file>

<file name="app/lib/l10n/app_id.arb">

<violation number="1" location="app/lib/l10n/app_id.arb:3878">
P2: This heading translates “Action items” as `Tindakan` (“actions”), unlike the locale’s existing action-item terminology. Use `Item Tindakan` so the heading identifies actionable items rather than a generic actions section.</violation>

<violation number="2" location="app/lib/l10n/app_id.arb:3889">
P2: `Tertunda` means “pending/delayed,” not “Not completed,” so Indonesian users will see the wrong state label. Translate this as `Belum selesai` to match the source status and existing incomplete-task wording.</violation>
</file>

<file name="app/test/widgets/conversation_action_items_section_test.dart">

<violation number="1" location="app/test/widgets/conversation_action_items_section_test.dart:497">
P2: This vanished-row case only checks that the conversation PATCH was skipped. `setCompleted` updates the linked task before resolving `currentRows`, so the test passes while Tasks can still change; record and assert the task update or rollback too.</violation>
</file>

<file name="app/lib/l10n/app_de.arb">

<violation number="1" location="app/lib/l10n/app_de.arb:3846">
P2: This translation removes the required `~` marker from tentative due dates. Keep the marker in the German visible label so tentative dates remain distinguishable, for example `Fällig ~{date}`.</violation>
</file>

<file name="app/lib/l10n/app_nl.arb">

<violation number="1" location="app/lib/l10n/app_nl.arb:3846">
P2: This Dutch label drops the required `~` marker for tentative due dates, so Dutch users cannot see the same explicit tentative-date marker as other clients. Preserve the marker in the localized value, for example `Vervaldatum ~{date}`.</violation>
</file>

<file name="app/lib/l10n/app_localizations_id.dart">

<violation number="1" location="app/lib/l10n/app_localizations_id.dart:12442">
P2: This Indonesian visible label omits the required `~` marker for tentative due dates. Preserve the marker in the localized string; the separate semantics string already provides the spoken tentative wording.</violation>
</file>

<file name="app/lib/l10n/app_mk.arb">

<violation number="1" location="app/lib/l10n/app_mk.arb:11403">
P2: This localized due-date label drops the `~` marker required for tentative dates. Preserve the marker in the Macedonian display string.</violation>
</file>

<file name="app/lib/l10n/app_localizations_mr.dart">

<violation number="1" location="app/lib/l10n/app_localizations_mr.dart:12437">
P2: This visible Marathi date label drops the required `~` marker for tentative dates. Preserve the marker here; the separate semantics string should remain spoken wording without the symbol.</violation>
</file>

<file name="app/lib/l10n/app_localizations_he.dart">

<violation number="1" location="app/lib/l10n/app_localizations_he.dart:12344">
P2: `tentativeTaskDueDateSemantics` translates “tentatively due” as “temporarily due.” Screen readers therefore announce a temporary date instead of an estimated/tentative date; use the same `משוער` wording as the visible label and regenerate this file.</violation>
</file>

<file name="app/lib/l10n/app_localizations_uk.dart">

<violation number="1" location="app/lib/l10n/app_localizations_uk.dart:12454">
P2: This translation changes “Show in Transcript” into “Show transcript,” which can make the menu action sound like it opens or displays the whole transcript. Translate the relation explicitly as `Показати в транскрипті`.</violation>

<violation number="2" location="app/lib/l10n/app_localizations_uk.dart:12458">
P2: This tentative due-date label drops the required visible `~` marker for Ukrainian users. Preserve the marker in the localized string (for example, `Термін ~ $date`).</violation>

<violation number="3" location="app/lib/l10n/app_localizations_uk.dart:12485">
P2: The incomplete action-item status is translated as “Waiting,” so Ukrainian users and screen readers do not receive the `Not completed` state. Use `Не завершено` to match the completed pair.</violation>
</file>

<file name="app/lib/l10n/app_localizations_mk.dart">

<violation number="1" location="app/lib/l10n/app_localizations_mk.dart:12480">
P2: This new action-item section is labeled “Activities” (`Активности`), while the existing Macedonian action-item labels consistently use `Задачи`. Use the established translation so the new meeting section has the same heading and meaning as the rest of the app.</violation>
</file>

<file name="app/lib/l10n/app_hu.arb">

<violation number="1" location="app/lib/l10n/app_hu.arb:3942">
P2: The Hungarian tentative-date label drops the required `~` marker, so tentative dates do not use the specified visual indicator in this locale. Preserve the marker in the translated value (the accessibility-only `tentativeTaskDueDateSemantics` string can remain fully verbal).</violation>
</file>

<file name="backend/tests/unit/test_conversation_action_item_mirror.py">

<violation number="1" location="backend/tests/unit/test_conversation_action_item_mirror.py:232">
P2: This callback discards `due_at`, so the regression tests pass even if reopening a linked task sends the wrong reminder date. Record and assert the full reminder payload, including a `False` toggle with the linked due date.</violation>
</file>

<file name="app/lib/l10n/app_en.arb">

<violation number="1" location="app/lib/l10n/app_en.arb:14850">
P2: These ARB descriptions provide no translator context because they only repeat the key names. Replace them with concise usage descriptions, especially distinguishing menu actions, status labels, and the visual versus accessibility tentative due-date strings.</violation>
</file>

<file name="backend/tests/unit/test_shared_conversation_field_exposure.py">

<violation number="1" location="backend/tests/unit/test_shared_conversation_field_exposure.py:220">
P2: This test does not verify that the public conversation projection preserves confirmed or tentative due certainty. Populate the source `ActionItem` and assert the value after `_call_shared` so projection regressions fail.</violation>
</file>

<file name="app/lib/services/integrations/apple_reminders_service.dart">

<violation number="1" location="app/lib/services/integrations/apple_reminders_service.dart:82">
P2: Completed action items can still be exported as open Apple Reminders because existing outbound-sync and explicit-export callers omit this new parameter and therefore take the `false` default. Pass `item.completed` from those callers (or make the parameter required so every caller handles the state).</violation>
</file>

<file name="backend/routers/conversations.py">

<violation number="1" location="backend/routers/conversations.py:1437">
P2: The direct lookup can mirror into soft-deleted tasks because it only checks whether the document exists. Skip rows with `deleted` set before marking or syncing, so toggling a conversation item cannot mutate a deleted task or recreate its reminder.</violation>
</file>

<file name="app/lib/l10n/app_pl.arb">

<violation number="1" location="app/lib/l10n/app_pl.arb:3881">
P2: Polish tentative due dates omit the required `~` marker because this visible label translates it to `około`. Keep the marker in the visible translation, for example `Termin ~{date}`; the accessibility-only key already provides the wording.</violation>
</file>

<file name="app/lib/l10n/app_ru.arb">

<violation number="1" location="app/lib/l10n/app_ru.arb:3881">
P2: This visible tentative-date string drops the required `~` marker, so Russian users cannot see that the due date is tentative. Preserve the marker in the translation, for example `Срок ~{date}`.</violation>
</file>

<file name="app/lib/l10n/app_vi.arb">

<violation number="1" location="app/lib/l10n/app_vi.arb:3846">
P2: The visible Vietnamese tentative due-date label drops the required `~` marker. Preserve the marker in this translation so tentative dates remain consistently identifiable across locales.</violation>
</file>

<file name="app/lib/l10n/app_fr.arb">

<violation number="1" location="app/lib/l10n/app_fr.arb:3881">
P2: The French visible tentative-date label drops the required `~` marker. Preserve the marker in this translation so tentative due dates have the same visual indicator as the other platforms.</violation>
</file>

<file name="app/lib/l10n/app_ta.arb">

<violation number="1" location="app/lib/l10n/app_ta.arb:11403">
P2: This translation drops the required `~` marker from tentative due dates. Preserve the marker before `{date}` so Tamil displays the same tentative-date indicator as the template.</violation>
</file>

<file name="app/lib/l10n/app_th.arb">

<violation number="1" location="app/lib/l10n/app_th.arb:3846">
P2: The Thai visual label drops the required `~` marker for tentative due dates. Preserve the marker in this translation so tentative dates remain visibly distinct from confirmed dates.</violation>
</file>

<file name="app/lib/l10n/app_ko.arb">

<violation number="1" location="app/lib/l10n/app_ko.arb:3854">
P2: `notCompletedStatus` says `대기 중` (pending/waiting), which changes the meaning of the English “Not completed” status and can make an unfinished item appear to be waiting. Translate this as `미완료` to match the existing incomplete-status terminology.</violation>
</file>

<file name="app/lib/l10n/app_bn.arb">

<violation number="1" location="app/lib/l10n/app_bn.arb:11403">
P2: The Bengali visible due-date label drops the required `~` marker, so tentative dates no longer use the specified visual convention in this locale. Keep the marker in the visual string; the separate semantics key already provides the spoken wording.</violation>
</file>

<file name="app/lib/l10n/app_da.arb">

<violation number="1" location="app/lib/l10n/app_da.arb:3896">
P2: `notCompletedStatus` is shown for an incomplete action item, but `Afventende` means pending or waiting rather than not completed. Use `Ufuldført` so the Danish status matches the source meaning.</violation>
</file>

<file name="app/lib/l10n/app_el.arb">

<violation number="1" location="app/lib/l10n/app_el.arb:3846">
P2: This visible tentative-date label drops the required `~` marker. Preserve the marker in the Greek translation so tentative dates use the same visual convention as the other locales.</violation>
</file>

<file name="app/lib/l10n/app_sl.arb">

<violation number="1" location="app/lib/l10n/app_sl.arb:11400">
P2: Use the established Slovenian action-item label here; `Dejanja` reads as generic “actions” rather than action items and conflicts with the existing `Naloge` headings.</violation>

<violation number="2" location="app/lib/l10n/app_sl.arb:11410">
P2: Replace the Croatian/Serbian status text with Slovenian, such as `Dokončano`, so completed items remain localized in Slovenian.</violation>

<violation number="3" location="app/lib/l10n/app_sl.arb:11411">
P2: Translate this as `Nedokončano` (or equivalent Slovenian wording); `Čakajoče` incorrectly labels every incomplete item as pending.</violation>
</file>

<file name="app/lib/l10n/app_ca.arb">

<violation number="1" location="app/lib/l10n/app_ca.arb:3846">
P2: This translation drops the `~` marker required for tentative due dates. Retain the marker in the Catalan value so the visual date consistently communicates uncertainty.</violation>
</file>

<file name="app/lib/l10n/app_localizations_be.dart">

<violation number="1" location="app/lib/l10n/app_localizations_be.dart:12462">
P2: This Belarusian visible due-date label drops the literal `~` required for tentative dates. Preserve the marker in the ARB translation and regenerate the localization file.</violation>
</file>

<file name="app/lib/l10n/app_ja.arb">

<violation number="1" location="app/lib/l10n/app_ja.arb:3854">
P2: Japanese screen readers announce unchecked action items as “on hold,” misrepresenting their state as paused rather than not completed. Translate this status as `未完了` to match the source meaning.</violation>
</file>

<file name="app/lib/l10n/app_localizations_hr.dart">

<violation number="1" location="app/lib/l10n/app_localizations_hr.dart:12466">
P2: This Croatian string drops the required `~` marker, so tentative due dates are not displayed consistently with the feature contract. Preserve the marker in the visible translation, for example `Rok ~$date`; keep the accessible semantics string worded out as it is.</violation>
</file>

<file name="app/lib/l10n/app_localizations_vi.dart">

<violation number="1" location="app/lib/l10n/app_localizations_vi.dart:12421">
P2: This label omits “in” and describes showing the transcript rather than showing the action item in it. Translate it as `Hiển thị trong bản chép lời`.</violation>
</file>

<file name="app/lib/l10n/app_lt.arb">

<violation number="1" location="app/lib/l10n/app_lt.arb:3850">
P2: This tooltip says “Update task” even though the control reopens a completed task. Translate it as “Atidaryti užduotį iš naujo” so Lithuanian users understand the action.</violation>
</file>

<file name="app/lib/l10n/app_ro.arb">

<violation number="1" location="app/lib/l10n/app_ro.arb:3845">
P2: `Afișează transcrierea` means “Show the transcript,” not “Show in transcript,” so this menu action’s Romanian label misstates where it navigates. Translate it as `Afișează în transcriere`.</violation>

<violation number="2" location="app/lib/l10n/app_ro.arb:3846">
P2: This is the visible label for tentative due dates, but it omits the required `~` marker; Romanian users will see tentative wording without the cross-platform marker. Preserve the marker in the translation, for example `Scadență ~{date}`.</violation>
</file>

<file name="app/lib/l10n/app_es.arb">

<violation number="1" location="app/lib/l10n/app_es.arb:3846">
P2: This Spanish visible label drops the `~` marker promised for tentative dates. Preserve the marker in the sighted-user string, for example `Vence ~{date}`; the longer tentative wording can remain in `tentativeTaskDueDateSemantics`.</violation>
</file>

<file name="desktop/macos/Desktop/Sources/MainWindow/Components/ConversationActionItemRow.swift">

<violation number="1" location="desktop/macos/Desktop/Sources/MainWindow/Components/ConversationActionItemRow.swift:135">
P2: This identifier cannot reliably target a completion control: duplicate action items share `item.id`, and the enclosing row hides this child from accessibility queries. Pass a stable per-row identity and apply it to the exposed row/control instead.</violation>
</file>

<file name="app/lib/pages/conversation_detail/widgets/summary_tab.dart">

<violation number="1" location="app/lib/pages/conversation_detail/widgets/summary_tab.dart:144">
P2: The page counts action-item matches even when this branch hides the entire section for discarded conversations. Searching a discarded note can therefore advertise hidden matches and navigate to nonexistent rows; exclude discarded items from the page’s search count as well.</violation>
</file>

<file name="app/lib/l10n/app_tr.arb">

<violation number="1" location="app/lib/l10n/app_tr.arb:3881">
P2: This Turkish display string drops the required `~` marker for tentative dates. Preserve the marker in the localized value so Turkish users can distinguish tentative dates consistently.</violation>
</file>

<file name="app/lib/l10n/app_localizations_fi.dart">

<violation number="1" location="app/lib/l10n/app_localizations_fi.dart:12434">
P2: This Finnish tentative-date label drops the required `~` marker. Keep the marker in `app_fi.arb` and regenerate this file so Finnish rows match the tentative-date display contract.</violation>
</file>

<file name="app/lib/pages/conversation_detail/page.dart">

<violation number="1" location="app/lib/pages/conversation_detail/page.dart:199">
P2: Search counts action items even when the Summary tab omits them for discarded conversations. Exclude discarded conversations from this count so navigation cannot target an invisible row.</violation>
</file>

<file name="app/lib/l10n/app_cs.arb">

<violation number="1" location="app/lib/l10n/app_cs.arb:3846">
P2: This visible Czech due-date label drops the `~` marker required for tentative dates. Preserve the marker in the translation, for example `Termín: ~{date}`; keep the prose wording in `tentativeTaskDueDateSemantics` for accessibility.</violation>
</file>

<file name="desktop/macos/Desktop/Sources/Stores/TasksStore.swift">

<violation number="1" location="desktop/macos/Desktop/Sources/Stores/TasksStore.swift:3114">
P2: `createTask(completed: true)` writes `completedAt`, but unchecking only changes `completed`; clear `completedAt` when completion is reversed to avoid stale completion metadata.</violation>
</file>

<file name="app/lib/l10n/app_localizations_et.dart">

<violation number="1" location="app/lib/l10n/app_localizations_et.dart:12445">
P2: The successful Add to Tasks state is translated as “Task created,” so Estonian users lose the distinction between creating the note action item and adding it to the task list. Translate this status as “Ülesannetesse lisatud” to preserve the source meaning.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

/// own description and due date disambiguate rows that share evidence. The
/// row's position disambiguates remaining twins: two rows with equal
/// description, due date and evidence are two commitments, not one.
static String identity(ActionItem item, {int? row}) =>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: The row index makes the persisted task identity and idempotency key change whenever extraction reorders rows. Keep task identity independent of mutable display position, or use a stable server/item identity, so reprocessed notes cannot promote the same item twice.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart, line 190:

<comment>The row index makes the persisted task identity and idempotency key change whenever extraction reorders rows. Keep task identity independent of mutable display position, or use a stable server/item identity, so reprocessed notes cannot promote the same item twice.</comment>

<file context>
@@ -0,0 +1,768 @@
+  /// own description and due date disambiguate rows that share evidence. The
+  /// row's position disambiguates remaining twins: two rows with equal
+  /// description, due date and evidence are two commitments, not one.
+  static String identity(ActionItem item, {int? row}) =>
+      '${row ?? ''}|${item.sourceSegmentIds.join('|')}|${item.description}|${item.dueAt?.millisecondsSinceEpoch ?? ''}';
+
</file context>

dueAt: task.dueAt, conversationId: task.conversationId, source: task.source, priority: task.priority)
// Only the summary reflects a task mutation that actually took effect;
// TasksStore reports false when the toggle failed and rolled back.
let toggled = await TasksStore.shared.toggleTask(toggleInput)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: toggleCompletion passes a freshly promoted backend task directly to TasksStore.toggleTask, but toggleTask requires the task to exist in ActionItemStorage before it calls the API. The first check of an unlinked item therefore fails for the newly created task; sync it locally before toggling or use a remote-safe mutation path.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailSections.swift, line 185:

<comment>`toggleCompletion` passes a freshly promoted backend task directly to `TasksStore.toggleTask`, but `toggleTask` requires the task to exist in `ActionItemStorage` before it calls the API. The first check of an unlinked item therefore fails for the newly created task; sync it locally before toggling or use a remote-safe mutation path.</comment>

<file context>
@@ -98,6 +124,105 @@ struct ConversationActionItemsSection: View {
+          dueAt: task.dueAt, conversationId: task.conversationId, source: task.source, priority: task.priority)
+        // Only the summary reflects a task mutation that actually took effect;
+        // TasksStore reports false when the toggle failed and rolled back.
+        let toggled = await TasksStore.shared.toggleTask(toggleInput)
+        guard toggled else {
+          failedActionItemIDs.insert(identity)
</file context>

bool sameRow(ActionItem candidate) =>
candidate.description == item.description &&
candidate.dueAt == item.dueAt &&
candidate.targetTaskId == item.targetTaskId;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Include sourceSegmentIds in sameRow matching. Otherwise identical action items backed by different transcript segments can have the wrong row completed or reopened after the list changes.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart, line 287:

<comment>Include `sourceSegmentIds` in `sameRow` matching. Otherwise identical action items backed by different transcript segments can have the wrong row completed or reopened after the list changes.</comment>

<file context>
@@ -0,0 +1,768 @@
+    bool sameRow(ActionItem candidate) =>
+        candidate.description == item.description &&
+        candidate.dueAt == item.dueAt &&
+        candidate.targetTaskId == item.targetTaskId;
+    if (row != null && row < rows.length && sameRow(rows[row])) return row;
+    final matches = rows.where(sameRow).toList();
</file context>
Suggested change
candidate.targetTaskId == item.targetTaskId;
candidate.targetTaskId == item.targetTaskId && listEquals(candidate.sourceSegmentIds, item.sourceSegmentIds);

index,
value,
row: index,
currentRows: context.read<ConversationDetailProvider>().conversationOrNull?.structured.actionItems,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Do not pass a pre-await row snapshot to the final conversation patch. Re-read the provider rows immediately before resolving and updating the index, or pass a getter so reprocessing cannot redirect the patch to a different row.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart, line 376:

<comment>Do not pass a pre-await row snapshot to the final conversation patch. Re-read the provider rows immediately before resolving and updating the index, or pass a getter so reprocessing cannot redirect the patch to a different row.</comment>

<file context>
@@ -0,0 +1,768 @@
+      index,
+      value,
+      row: index,
+      currentRows: context.read<ConversationDetailProvider>().conversationOrNull?.structured.actionItems,
+    );
+    if (!mounted) return;
</file context>

// several commitments, and the backend allows multiple identical items in a
// conversation. Bind the item's own content so distinct rows stay distinct.
let due = item.dueAt.map { "\($0.timeIntervalSince1970)" } ?? ""
return "\(item.sourceSegmentIDs.joined(separator: "|"))|\(item.description)|\(due)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: actionItemIdentity omits the row index, so identical rows sharing source segments, description, and due date use one state key. Toggling or promoting one row then changes the other row's override and task state; include the row index or another per-row identity.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailSections.swift, line 106:

<comment>`actionItemIdentity` omits the row index, so identical rows sharing source segments, description, and due date use one state key. Toggling or promoting one row then changes the other row's override and task state; include the row index or another per-row identity.</comment>

<file context>
@@ -72,17 +85,30 @@ struct ConversationActionItemsSection: View {
+    // several commitments, and the backend allows multiple identical items in a
+    // conversation. Bind the item's own content so distinct rows stay distinct.
+    let due = item.dueAt.map { "\($0.timeIntervalSince1970)" } ?? ""
+    return "\(item.sourceSegmentIDs.joined(separator: "|"))|\(item.description)|\(due)"
+  }
+
</file context>


@override
String tentativeTaskDueDate(String date) {
return 'Eräpäivä noin $date';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This Finnish tentative-date label drops the required ~ marker. Keep the marker in app_fi.arb and regenerate this file so Finnish rows match the tentative-date display contract.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_localizations_fi.dart, line 12434:

<comment>This Finnish tentative-date label drops the required `~` marker. Keep the marker in `app_fi.arb` and regenerate this file so Finnish rows match the tentative-date display contract.</comment>

<file context>
@@ -12419,4 +12419,44 @@ class AppLocalizationsFi extends AppLocalizations {
+
+  @override
+  String tentativeTaskDueDate(String date) {
+    return 'Eräpäivä noin $date';
+  }
+
</file context>

// The tab renders its action items after the note; their matches count
// toward the tab's total and are navigated inside the section.
count = _summaryContentSearchResults +
conversationActionItemSearchMatchCount(provider.conversation.structured.actionItems, _searchQuery);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Search counts action items even when the Summary tab omits them for discarded conversations. Exclude discarded conversations from this count so navigation cannot target an invisible row.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/page.dart, line 199:

<comment>Search counts action items even when the Summary tab omits them for discarded conversations. Exclude discarded conversations from this count so navigation cannot target an invisible row.</comment>

<file context>
@@ -175,15 +183,20 @@ class ConversationDetailPageState extends State<ConversationDetailPage> with Tic
+      // The tab renders its action items after the note; their matches count
+      // toward the tab's total and are navigated inside the section.
+      count = _summaryContentSearchResults +
+          conversationActionItemSearchMatchCount(provider.conversation.structured.actionItems, _searchQuery);
     }
 
</file context>

Comment thread app/lib/l10n/app_cs.arb
"meetingActionItemsTitle": "Akční položky",
"addToTasks": "Přidat do úkolů",
"showInTranscript": "Zobrazit přepis",
"tentativeTaskDueDate": "Termín přibližně {date}",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This visible Czech due-date label drops the ~ marker required for tentative dates. Preserve the marker in the translation, for example Termín: ~{date}; keep the prose wording in tentativeTaskDueDateSemantics for accessibility.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_cs.arb, line 3846:

<comment>This visible Czech due-date label drops the `~` marker required for tentative dates. Preserve the marker in the translation, for example `Termín: ~{date}`; keep the prose wording in `tentativeTaskDueDateSemantics` for accessibility.</comment>

<file context>
@@ -3839,5 +3839,17 @@
+    "meetingActionItemsTitle": "Akční položky",
+    "addToTasks": "Přidat do úkolů",
+    "showInTranscript": "Zobrazit přepis",
+    "tentativeTaskDueDate": "Termín přibližně {date}",
+    "tentativeTaskDueDateSemantics": "Předběžný termín {date}",
+    "openTask": "Otevřít úkol",
</file context>
Suggested change
"tentativeTaskDueDate": "Termín přibližně {date}",
"tentativeTaskDueDate": "Termín: ~{date}",

priority: priority,
category: tags?.first,
dueAt: dueAt,
completedAt: completed ? Date() : nil,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: createTask(completed: true) writes completedAt, but unchecking only changes completed; clear completedAt when completion is reversed to avoid stale completion metadata.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At desktop/macos/Desktop/Sources/Stores/TasksStore.swift, line 3114:

<comment>`createTask(completed: true)` writes `completedAt`, but unchecking only changes `completed`; clear `completedAt` when completion is reversed to avoid stale completion metadata.</comment>

<file context>
@@ -3098,10 +3106,12 @@ class TasksStore: ObservableObject {
         priority: priority,
         category: tags?.first,
         dueAt: dueAt,
+        completedAt: completed ? Date() : nil,
         recurrenceRule: recurrenceRule,
         metadataJson: metadataJson
</file context>

String get addingToTasks => 'Lisatakse ülesannetesse';

@override
String get taskAddedToTasks => 'Ülesanne loodud';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The successful Add to Tasks state is translated as “Task created,” so Estonian users lose the distinction between creating the note action item and adding it to the task list. Translate this status as “Ülesannetesse lisatud” to preserve the source meaning.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_localizations_et.dart, line 12445:

<comment>The successful Add to Tasks state is translated as “Task created,” so Estonian users lose the distinction between creating the note action item and adding it to the task list. Translate this status as “Ülesannetesse lisatud” to preserve the source meaning.</comment>

<file context>
@@ -12409,4 +12409,44 @@ class AppLocalizationsEt extends AppLocalizations {
+  String get addingToTasks => 'Lisatakse ülesannetesse';
+
+  @override
+  String get taskAddedToTasks => 'Ülesanne loodud';
+
+  @override
</file context>
Suggested change
String get taskAddedToTasks => 'Ülesanne loodud';
String get taskAddedToTasks => 'Ülesannetesse lisatud';

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Folded into the survivor #24485 (head d6ab3673d9e40b3612856348e40704f7663501d6, branch lane/action-reminders-1103) and closed in its favor — nothing merged to main from here.

What carried over: action-item owner/due/context end to end — backend wire fields and the target-task-precise mirror (a row with target_task_id flips exactly its task; unlinked rows keep the description-wide mirror), the summary-tab action-items section with tap-to-transcript via sourceSegmentIds, the macOS row metadataLines + identity-based task state, the share-note rendering with no "Unknown" placeholders and tentative-date accessibility (this PR's source contract tests all pass), and the locale strings unioned with #24434's keys (49 locales, 4447 keys, gen-l10n clean).

Note: the owner/due metadata now reads main's wire schema (owner/capture_owner/due_confidence/source_segment_ids on GeneratedActionItem), so the client wrapper keeps both main's cache-coordinate machinery and this PR's fields; linking in the conversations router keeps the survivor's reminder sync with main's post-write refetch.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

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