Skip to content

fix(clients): honor the server's failed Home projection on mobile, web and macOS (stuck Processing rows) - #25013

Merged
Git-on-my-level merged 8 commits into
mainfrom
lane/homestep-client
Nov 10, 2026
Merged

Git-on-my-level merged 8 commits into
mainfrom
lane/homestep-client

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Requested by David (stuck Home rows; coordinator 412a48, lead2 1c9079)

What changed and why

#24885 (merged, live since the 16:28Z train) makes the server return home_step=failed for a conversation stuck in processing/merging past 6 hours, but its status stays processing. The clients still drew those rows from status, so they stayed "Processing…" on Home indefinitely (Luna FIX-FIRST on #24885). This PR makes every client honor the server projection:

  • Mobile (Flutter): a tracked id with home_step=failed leaves the local processing set and is never re-added by detail fetch, the websocket, page admission or cache restore. Explicit failure takes precedence over deferred/client-processing metadata. Activity's Needs-attention ledger is not fed by the 6h projection (it only gets finalization dead-letter rows), so the row stays on Home as an openable "Omi couldn't finish" row with Retry: no spinner, no polling. homeStep is carried across every whole-row replacement (calendar link/unlink, update, upsert, grouped/bridge replacement, search decode and pagination).
  • Web: failed rows lose the Processing badge and polling, stay openable as a non-processing tile, and pagination accounting is preserved.
  • macOS: decodes optional home_step. A failed row isn't shown as processing or "Stuck", detail replacement keeps the failed projection, and the no-cache detail race returns the current row instead of a stale seed.

When home_step is absent (older servers), every client keeps its prior behavior exactly.

Product invariants affected

  • INV-NAV-1 (desktop shell feature parity): the macOS change touches the conversations destination's state handling only. It keeps the same feature-complete Conversations owner and adds no shell-specific or reduced page. It changes processing-state presentation (failed rows aren't shown as Processing/Stuck), not navigation or routing.
  • A conversation is never unreachable on any client.
  • A failed row never shows Processing or polls; Retry is the only path back to processing.

How it was verified

  • Flutter: 157 tests across the touched files (final round) plus the render test; flutter analyze clean on the touched files.
  • Web: full suite 1,024 tests + 6 smoke tests; typecheck and lint pass.
  • macOS: debug build and 109 focused Swift tests on an earlier round. The no-cache race regression is added; local execution was skipped under host load, so CI covers it.
  • Preflight: 44 checks.
  • Pushed from m1-mac-studio with the full pre-push hook, no skips (lead2 a82bf7). On m5 the Flutter/Dart SDK hangs at startup (syspolicyd), so the hook couldn't run there.
  • Independent Luna reviews: correctness SHIP (round 2), user-data/prod-safety SHIP (round 3 delta at 1a5e346).

Tests

Flutter conversation_provider_processing_reconcile_test.dart, home_rows_test.dart, conversation_home_projection_replacement_test.dart, conversation_search_projection_decode_test.dart, conversation_summary_retry_row_test.dart, home_failed_processing_render_test.dart; web ConversationTile.homeStep.test.tsx, useConversations.test.tsx; macOS ConversationDisplayStateTests.swift, ConversationRepositoryTests.swift.

UI evidence

Mobile (iOS), failed row: .agent-artifacts/ui-evidence/lane-homestep-client/002-mobile-ios-home-failed-processing.png

Mobile failed Home row

Web, failed tile without the Processing badge: .agent-artifacts/ui-evidence/lane-homestep-client/001-web-home-processing-projection.png

Web failed tile

Manifest: .agent-artifacts/ui-evidence/lane-homestep-client/evidence.json. macOS: state logic only (no rendered change).

Failure class (fixes)

Failure-Class: none

Rollback: revert the PR. With no client change, the server projection is ignored and rows behave as before #24885.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

Keep failed list projections authoritative across lifecycle reconciliation,
detail refreshes and processing-start replays. A fresh list response restores
normal admission, including legacy servers without home_step.

Failure-Class: none
UI-Evidence: none -- provider logic only
Hide failed projections from the conversation feed without changing page offsets. Share the explicit-failure override between Processing badges and polling; preserve status-only behavior for older servers.

Failure-Class: none

UI-Evidence: .agent-artifacts/ui-evidence/lane-homestep-client/001-web-home-processing-projection.png
Decode the optional Home step without changing pipeline status. Render failed projections through the existing failed state, stop processing watchers and detail polling, and retain a known failure when processing detail responses omit the list projection. Terminal details and fresh list responses can acknowledge recovery.

Failure-Class: none

UI-Evidence: none -- state logic only
Return the current repository row when detail and cache reads fail, so a newer failed Home projection cannot be replaced by the original processing seed. Add a deterministic suspended-request regression test.

Validation: pinned Swift formatting, touched SwiftLint, desktop test-quality checks passed. macOS: CI only; the test target depends on the executable and app compilation is excluded under host load.

Failure-Class: none

UI-Evidence: none -- state logic only
The six-hour Home failure projection does not populate the separate Activity attention ledger. Retain terminal mobile Home rows with the existing retry action and retain web feed tiles without processing admission or polling. Preserve failed projections through mobile cache and detail hydration, and prioritize explicit failure over deferred/client processing metadata.

Validation: 150 touched Flutter tests plus one production Home render test passed; touched Flutter analysis clean. Web: 24 focused tests, typecheck, and touched lint passed. Commit inspected RepaintBoundary and web PNG evidence with the shared manifest.

Failure-Class: none
Carry omitted Home presentation through local list edits, search replacement and pagination, and calendar copies. Preserve the raw optional search field across generated DTO decoding. Explicit reprocess results and fresh server pages can still clear old projections.

Add behavioral coverage for replacement entry points, failed and legacy calendar link/unlink presentation, and search decoding.

Failure-Class: none

UI-Evidence: none -- provider logic only
@Git-on-my-level Git-on-my-level self-assigned this Nov 9, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T00:46:49.032413Z a52e6a2 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.

@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: 1a5e346b03

ℹ️ 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".

_failedHomeProcessingIds.add(row.id);
}
}
conversations = conversations.map(_withHomeProcessingProjection).toList();

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 Badge Preserve row identity until the refresh merge completes

When an already-visible processing row receives a failed Home projection, this mapping clones it before the refresh merge checks whether it changed during the request. Both fetchConversations and forceRefreshConversations compare against conversationsAtStart by identity to protect live updates, so they mistake this projection-only clone for a newer live update. Consequently, even if the lifecycle probe returns a completed conversation with fresh notes, the merge retains the old processing row marked failed instead. Apply the projection after authoritative rows are merged, or distinguish projection-only replacements from actual concurrent updates.

Useful? React with 👍 / 👎.

Comment on lines +157 to +159
guard server.homeStep == nil, current?.id == server.id, current?.homeStep == "failed",
[.inProgress, .processing, .merging].contains(server.status)
else { return server }

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 Badge Retain Home failures for unchanged completed detail responses

For a completed conversation classified as failed because of summary_retryable or finalization_status == 'dead_letter', the detail endpoint returns the same completed status without home_step: get_conversation_by_id applies only transcribing_hold.project, unlike the list endpoint. This guard therefore discards the known failure even though no recovery occurred. Since ConversationRepository.detail publishes that response back into the list, simply opening a titled failed recording removes its Failed badge and its row-menu Reprocess action. Preserve the projection for unchanged completed failures too, while allowing an explicit reprocess result or authoritative list projection to acknowledge recovery.

Useful? React with 👍 / 👎.

Git-on-my-level and others added 2 commits November 10, 2026 07:03
Reuse the existing conversation reprocess API for terminal Home failures and keep legacy tiles unchanged. Refresh the feed and matching open detail after retry, prevent duplicate requests, and retain a visible error when retry fails.

Failure-Class: none
Preserve live episode ownership when projected failures are restored as terminal Home rows. Extend the state-space model to require a unique standalone failure row once Listening releases it, without weakening noise or processing invariants.

Failure-Class: none

@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: a52e6a2b69

ℹ️ 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 on lines +48 to +51
} else if (_processingStateRevisionById[row.id] == revisionsAtStart[row.id]) {
// A fresh list response also restores legacy behavior when the server
// disables/does not support the projection.
_failedHomeProcessingIds.remove(row.id);

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 Badge Remove the stale failed row when a fresh page restores processing

When an already-visible failed row receives a fresh page with home_step: 'writing_notes' or no projection (for example, after the server disables the projection), clearing this set does not clear the existing row's homeStep == 'failed'. During forceRefreshConversations, reconciliation adds the fresh row to processingConversations, but _fetchNewConversations only merges Home-list rows and leaves the old failed object in conversations. conversations_page.dart then prefers that listed object over the processing object with the same ID, so Home continues showing the failure and Retry action instead of Processing. Replace or remove the old failed list row when an authoritative page restores active processing.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 3ac8775 into main Nov 10, 2026
45 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/homestep-client branch November 10, 2026 11:40
Git-on-my-level added a commit that referenced this pull request Nov 10, 2026
…bile, web and macOS" (#25013) (#25037)

## What and why

Revert #25013 (merge commit 3ac8775). Main has been red since
11:52Z on decode_migration_complete after #25013, and David ruled at
11:53Z that failed rows must not appear on Home (failed items go only to
Activity). The client changes will be re-landed inside #25024.

Product invariants: none

Tests: the revert restores the pre-#25013 code

UI-Evidence: none -- revert of #25013 restores the prior UI

Failure-Class: none

Rollback: revert this revert

## Required gate records

The generated revert commit is unchanged. A separate commit adds only
the mobile and macOS changelog entries required by the full pre-push
hook.

Path-based invariant citation: INV-NAV-1 — this revert restores the
prior implementation without changing desktop navigation destinations.

Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1493
-> 1503 | Exact revert of #25013 restores the prior code; splitting it
would add unrelated implementation changes to this urgent revert

Line-Count-Exception: app/lib/providers/conversation_provider.dart |
2294 -> 2349 | Exact revert of #25013 restores the prior code; splitting
it would add unrelated implementation changes to this urgent revert


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/25037?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="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/25037?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25037&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
MichaelC001 pushed a commit to MichaelC001/omi that referenced this pull request Nov 11, 2026
…bile, web and macOS" (BasedHardware#25013)

Main has been red since 11:52Z on decode_migration_complete after BasedHardware#25013, and David ruled at 11:53Z that failed rows must not appear on Home (failed items go only to Activity). The client changes will be re-landed inside BasedHardware#25024.

Failure-Class: none
Git-on-my-level added a commit that referenced this pull request Nov 11, 2026
…#25024)

Home shows processing only on the current local day on mobile. Failed
conversations stay off mobile Home, the web conversation gallery and
macOS Conversations; Activity lists them with retry. Completion restores
the normal conversation on its recorded day. Authority: David ff0427
item 4, relays 66d9fd / 9e09f1 / 714b03; prior renders approved by relay
718fe8.

The existing default-on HOME_STEP_PROJECTION switch confirms placement
through enabled=true plus home_processing_today=true from pending-work.
Missing/false fields, 404, failed reads and account changes restore the
previous Home and pending consumers. Registry and pending-work contract
cover every affected surface. Backend must ship before new clients can
confirm placement.

Mobile applies the local recorded start day to grouped rows and local
insertion, including captures crossing midnight. Open Home/Activity
pages re-evaluate midnight, clock/timezone changes and resume. Home
honors episode_id before the episode fetch, and ServerConversation
parses/copies/caches episodeId. Activity merges pending, loaded,
searched and episode failures, deduplicates ledger entries, redacts
locked titles and retains retry after errors. Pending items optionally
carry home_step to keep an expired today wait reachable. Classification
deadlines and stored job state are unchanged. Pending reads three
bounded single-field candidate sources (processing/merging, stamped
transcription and summary debt); failed placement adds no further query.

Web uses an Activity tab inside /conversations; /home remains
chat/tasks/goals. Native macOS uses its existing Memory hub Activity
destination and excludes failed rows from its chronological spine to
avoid duplicates. Web retry responses update list/search state and cache
immediately, rejecting older in-flight reads, so completion survives
refresh errors. All clients reuse existing conversation navigation and
use general reprocess for legacy failed rows, fence duplicate retry
requests and apply/refresh authoritative results. Web and native
failures from loaded Home lists and searches retain Activity links
across Home filters, and clear on completion, successful local deletion
or account reset. Discovery remains bounded by loaded rows and the
existing server window.

#25013 integration: wanted projection parsing/copying,
list/detail/search reconciliation, terminal watcher stop, retry-response
replacement and compatibility tests are retained. Its default
failed-Home UI is dropped: confirmed failures appear only in Activity.
The previous presentation remains available for kill-switch rollback.
Integration order: #25037 reverted #25013 on main as
d24d101; this branch then merged fresh
main 35e63b5 in merge/re-land commit
474edfb. At that integration commit,
the adapted #25013 source/test/changelog files exactly matched the
pre-merge tested checkpoint 86b59df.
There were no independent post-revert changes to those paths. Rejected
Home screenshots were left removed. No landing-order dependency remains.
No force push, PR merge or deploy by this agent.

Schema fix: main run
[42812549326](https://github.com/BasedHardware/omi/actions/runs/42812549326)
failed test_inventory_openapi_route_response_decode_migration_complete
after #25013 moved the generated search decode behind a Dart part
helper. The API route now directly calls
GeneratedSearchConversationsResponse.fromJson and passes the decoded
result into the helper that preserves home_step. All 14 inventory tests
pass again on the post-revert integrated tree; no assertion or allowlist
is weakened.

Luna FIX-FIRST on 591c10f — fixed: macOS authoritative replacement now
drops the previous failed Home projection when retry returns processing
without home_step. Both replacement layers honor the incoming response;
ordinary detail reads retain known failures and explicit failed
projections remain failed. Regression covers failed stored/projected
rows restarting as in-progress/processing/merging or completing,
immediate removal from Activity-failed, Home admission and processing
display. Mobile retry already clears its remembered failure id (detail
retry opts out of retention); web list/search already replace whole
objects and cache. New mobile/web regressions exercise omitted
home_step, Activity removal, failed refresh and cache remount. No
mobile/web production fix was necessary. Main was fetched; newer
backend-only commits do not overlap this fix, so no additional merge was
needed. Approved render PNGs are unchanged because no
layout/copy/fixture changed.

## Notes-only attention: cases 010/011/012 (relay-cl1 94a9ed / David
4ddd04)

Conversations whose notes failed while tasks/events were kept now appear
once in Activity Needs attention on mobile, web and macOS. Re-run notes
calls POST /v1/attention-items/{item_id}/retry, preserving the existing
task/event models and destinations. Clients consume
conversation_notes_failed_with_outputs; they do not infer eligibility
from noise, overview absence or title provenance. Unknown kind strings
remain readable without retry, even when retryable=true. Mobile bulk
retry avoids the global endpoint when a non-legacy kind is present, so
it cannot implicitly retry a displayed unknown kind.

Accepted in_progress/succeeded notes retries remove the item and
suppress stale ledger/projected duplicates. 409, transport errors and
failed-operation responses retain an error row. Busy state, account
fences and read generations reject duplicate clicks and old callbacks; a
genuinely new ledger generation or confirmed failed operation can
surface again. The existing explicit pending-work confirmation gates new
notes placement; off/missing/read failure keeps the rollback. Web/macOS
also honor explicit server noise on Home without treating ordinary noise
as Activity attention. No new flag, query, scheduler or history scan.
Pipeline-driver's separate backend PR owns eligibility, discovery and
notes-only side-effect isolation; this client change is safe before that
kind ships.

Conflict resolution: merged main 7ebd845 (#25034) normally in
0bb9d47. home_step.py and the generated
registry doc auto-merged. The feature-flags.yaml conflict keeps #25024's
expanded HOME_STEP_PROJECTION entry and #25034's HOME_EMPTY_OUTPUT_NOISE
entry exactly once, then regenerates the registry doc. #25034's overview
OR section-body, banked receipt/live debt, curated-row and failure
precedence guards remain intact, alongside today-only mobile processing
and failed-only-on-Activity. Then merged fresh main
8a9f00b normally as
c6013b4 after the addition commit
44d470e. This second merge was clean;
no rebase or force push.

[Addition-only non-test
delta](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/notes-addition-line-delta.json):
+954 / -81 (1,035 changed lines across 119 non-test files; 205 added
localization/generated lines) (excludes upstream merges, tests/e2e, UI
evidence and render harness; includes source, config, docs and
localizations/generated files). Verification: 181 focused Flutter tests,
112 native tests with PNG captures enabled, 190 affected backend tests
and 14 schema-inventory tests pass; analyzer ratchet passes without
baseline changes. Web typecheck, six smoke tests and all 1,054 Vitest
tests pass. Integrated post-merge Home/pending-work/flag-budget/schema
tests pass all 204 tests (190 + 14). Full preflight passes all 89
checks. The ONE normal full-hook push succeeded at
3840bee with the requested credential
variables unset, OMI_PR_BODY_FILE, and
BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. All 89 shared checks, backend
typecheck (zero errors), bounded backend units, OpenAPI compatibility,
generated-client checks, Flutter generation/format checks and native
Swift debug build passed. No force push or hook bypass.

| Activity case | Mobile | Web | macOS |
| --- | --- | --- | --- |
| 010 | ![mobile-ios case
010](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/019-mobile-ios-notes-case-010.png)
| ![web case
010](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/022-web-notes-case-010.png)
| ![desktop-macos case
010](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/025-desktop-macos-notes-case-010.png)
|
| 011 | ![mobile-ios case
011](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/020-mobile-ios-notes-case-011.png)
| ![web case
011](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/023-web-notes-case-011.png)
| ![desktop-macos case
011](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/026-desktop-macos-notes-case-011.png)
|
| 012 | ![mobile-ios case
012](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/021-mobile-ios-notes-case-012.png)
| ![web case
012](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/024-web-notes-case-012.png)
| ![desktop-macos case
012](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/027-desktop-macos-notes-case-012.png)
|

### Luna FIX-FIRST at 3840bee: macOS retry idempotency

Fixed the missing `Idempotency-Key` on macOS attention-item retries. A
per-item UUID lives in account-scoped memory, is reused after ambiguous
transport errors, and is cleared after a confirmed operation
(in_progress/succeeded/failed), a confirmed `409 not_retryable`, or
account reset. State-only 409 responses are recognized by the native
HTTP error parser. Error rows remain reachable. Both notes-only and
summary retries use the keyed endpoint. Mobile and web notes-only paths
already send keys and retain ambiguous requests in memory; their
existing API/store/hook tests were rerun. No UI, copy, fixtures or PNGs
changed; the 3840bee render links below remain valid.

INV-AUTH-1: the bodyless POST helper keeps its existing owner-policy
resolution, auth/BYOK header construction, owner validation and request
execution. The new optional key only adds the Idempotency-Key header.
Retry keys and late callbacks remain fenced by the ledger account
session.

Validation for this follow-up: four new native HTTP/state regressions
pass; the broader native run passed 185 tests with two render-only
opt-in skips (187 executed). Mobile notes/pending-store tests pass
22/22; web attention API/hook tests pass 9/9. Desktop test-quality and
diff checks pass. After removing forced unwraps from the HTTP fixture,
the four new native regressions were reconfirmed and all 1,920 Swift
files pass SwiftLint with zero violations. The remaining preflight
checks passed; the full push hook reruns the complete manifest. One NDK
installer process-group cleanup test flaked on this host, then passed in
isolation (8/8) and the full rerun; its code is unchanged. Fresh fetch
found no unseen feature-branch commits and GitHub reports MERGEABLE, so
main was not merged. The ONE normal full-hook push succeeded at
6206927 (3840bee..6206927), with
the requested credential variables unset, OMI_PR_BODY_FILE and
BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. All 90 selected shared preflight
checks passed, followed by backend typecheck (zero errors), affected
backend units, OpenAPI compatibility, Flutter generation/formatting and
the native Swift debug build. No force, hook bypass or PR merge. GitHub
confirms this head and reports MERGEABLE. [CI
checks](https://github.com/BasedHardware/omi/pull/25024/checks) show the
current results.

## Luna FIX-FIRST at 6206927 — web off-page retry reconciliation

Follow-up head: `51cbb86c011aeb6b79c13e6579e2fb7061220894`. Hold:
David’s render verdict is still required; do not merge.

**Fixed.** Conversation retries now acknowledge the account-scoped
remembered-failure
cache directly when the authoritative response is non-failed, including
processing
without `home_step`, or an explicit `409 {"state":"not_retryable"}`.
This works when
the conversation came from an earlier search and is absent from both
current lists.
Old loaded object snapshots cannot immediately restore the cleared tile;
a fresh
failure can be discovered again. Failed results, generic conflicts and
transport
errors keep the failed tile and error. Kill-switch rollback keeps the
old Home path.

The notes-only ledger calls the same reconciliation on accepted
in-progress/succeeded
retries and explicit terminal conflicts. A terminal conflict clears its
old projected
duplicate while the ledger item retains its error, as required by the
attention
contract. Ambiguous errors keep their retry key; terminal
acknowledgments clear it.
The HTTP error type preserves only the structured state needed to
distinguish the
explicit terminal conflict from other 409 responses.

Mobile and macOS do not have the same successful-retry bug: mobile
applies the result
to shared provider state even without a current list match; macOS
Activity explicitly
remembers the authoritative replacement outside the repository's loaded
query. Their
notes stores suppress accepted retries by conversation ID independent of
loaded pages.
Added off-page regressions on both; no mobile/native production change
was needed.
Existing notes acceptance, failure, deduplication and idempotency tests
remain passing.

Validation: web type checking, six Bun smoke tests and 1,071 Vitest
tests; 69 focused
Flutter tests; 70 native tests passed (72 executed, two opt-in PNG tests
skipped).
New web coverage includes off-page processing/completed responses,
explicit terminal
409, generic conflicts, failed/transport retries, notes-only
acknowledgments and HTTP
state decoding. Full preflight passed all 90 checks (270.31s), including
zero SwiftLint violations across 1,920 files. The one normal full-hook
push succeeded (`6206927cdf..51cbb86`), with all 90 shared checks,
backend type checking (0 errors), affected backend units,
OpenAPI/generated Dart, Flutter generation/format and native debug build
checks passing. No hooks were bypassed. CI for this head is tracked in
the [live PR
checks](https://github.com/BasedHardware/omi/pull/25024/checks); the
render hold remains active. No layout, fixture or PNG changed; existing
commit-pinned renders remain valid.
GitHub reported MERGEABLE after the fresh fetch, so main was not merged
for this fix.
The PR remains unmerged and on hold for David's render verdict.


Failure-Class: new

The violated contract is reachable work with exactly one intended list
placement. FC-home-processing-on-past-days records the shared local-day
admission primitive and Home/Activity failure partition, with regression
tests for midnight, rollback, episode ownership, completion, navigation
and retry. Product invariants: INV-UI-1 / INV-UI-3 preserve existing
components, Flutter localization and date formatting. INV-NAV-1
preserves one chat/composer and existing peer/detail navigation; the web
Activity tab and native Activity section do not create a second chat.

Tuning: no pipeline capacity, concurrency, presentation-wait threshold
or lifecycle-state changes. New flags: none. No CPU-guard adjustment.
Source files remain under the repository line-count ratchet (existing
grandfathered files checked normally).

Validation:

- Notes-only attention addition on
3840bee: 181 focused Flutter tests, 112
native tests with renders enabled, 204 integrated backend tests,
analyzer ratchet, web typecheck/six smoke/1,054 Vitest tests and all 89
preflight checks pass. All nine new Activity PNGs were inspected; one
row per case with Re-run notes, no clipped text or missing fonts.
- Luna retry follow-up: native tests passed (104 passed, one opt-in
render skip), all 148 focused Flutter tests passed, and web typecheck +
six smoke tests + 1,041 Vitest tests passed. `make preflight` passed all
88 checks. The ONE normal full-hook push succeeded at
09ec57b (no force or skipped hooks):
all 88 shared checks, backend typecheck (zero errors), bounded backend
unit tests, OpenAPI contract, Flutter generation/format checks, desktop
flow lint and native Swift debug build passed. New tests cover retry to
processing without home_step and immediate Activity-failed removal on
all three clients.
- 313 expanded Flutter tests for rows/Activity, pending state, episode
ownership/model, account fencing and inherited #25013
reconciliation/detail behavior. The 84-test search/reconciliation subset
was rerun after the schema-route fix; analyzer ratchet passes.
- 35 unit/widget tests in each of America/New_York, Pacific/Kiritimati
and Pacific/Pago_Pago. These now run on ordinary PR CI and cover DST
short/long days, UTC/local date boundaries and midnight rollover while
both real pages are open.
- 146 focused backend tests (pending work, Home classification, phase
shadow readers), 14 schema/inventory tests, generated Dart
wire-hardening check.
- Web: bun run check passes typechecking, smoke suite and 1,039 Vitest
tests. Regression covers exclusive failure placement, retry, rollback
after read failure, and ignoring an older success after a newer failed
read.
- Native: 103 selected Swift tests pass, including projection
decode/reconciliation, terminal watchers, exclusive placement, wire/read
failures, retry double taps/errors, search-only reachability and account
reset/late responses.
- Web render fixture asserts Home/Activity/retry/rollback with external
requests blocked; native real-component renders use injected
dependencies. Post-revert schema/inventory regression passes all 14
tests; integrated preflight passes all 88 checks. The earlier normal
full-hook push succeeded at 591c10f:
shared preflight 88 checks, backend typecheck (zero errors),
generated-client and Flutter generation/format checks, and native Swift
debug build passed. Command used env -u GOOGLE_APPLICATION_CREDENTIALS
-u CLOUDSDK_CONFIG -u CLOUDSDK_CORE_ACCOUNT, OMI_PR_BODY_FILE and
BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. No force push or hook bypass.
Full platform suites remain CI authority.

UI-Evidence: tracked manifest at
.agent-artifacts/ui-evidence/processingtoday/evidence.json; reproducible
commands and limits in README.md in the same directory. Synthetic
fixtures, no production data. Mobile captures the real
ConversationsPage/ActivityPage using RepaintBoundary, iOS/SF Pro at
393×852 @3x. Web captures actual tabs/gallery/tiles and admission via
hermetic Chromium at 1280×800 @2x. Native captures the actual SwiftUI
components mounted in the two destinations via ImageRenderer, Aqua/SF at
720×420 @2x. Web/native are isolated component evidence, not a signed
full-app session. All affected renders were regenerated.

| Mobile state | Before / rollback | After |
| --- | --- | --- |
| Home today |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/001-mobile-ios-home-today-before.png)
| ![Home
today](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/002-mobile-ios-home-today-after.png)
|
| Home past day |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/003-mobile-ios-home-past-before.png)
| ![Home past
day](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/004-mobile-ios-home-past-after.png)
|
| Activity older processing |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/005-mobile-ios-activity-processing-before.png)
| ![Activity older
processing](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/006-mobile-ios-activity-processing-after.png)
|
| Activity empty |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/007-mobile-ios-activity-empty-before.png)
| ![Activity
empty](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/008-mobile-ios-activity-empty-after.png)
|
| Episode before fetch |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/009-mobile-ios-episode-owner-before.png)
| ![Episode before
fetch](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/010-mobile-ios-episode-owner-after.png)
|
| Home failed row hidden |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/011-mobile-ios-home-failed-before.png)
| ![Home failed row
hidden](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/012-mobile-ios-home-failed-after.png)
|
| Activity failed row + retry |
[Before](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/013-mobile-ios-activity-failed-before.png)
| ![Activity failed row +
retry](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/014-mobile-ios-activity-failed-after.png)
|

| Client | Home without failed row | Activity with retry |
| --- | --- | --- |
| Web |
![Home](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/015-web-home-failed-after.png)
|
![Activity](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/016-web-activity-failed-after.png)
|
| macOS |
![Home](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/017-desktop-macos-home-failed-after.png)
|
![Activity](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/018-desktop-macos-activity-failed-after.png)
|


[Manifest](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/evidence.json),
[commands/limits](https://raw.githubusercontent.com/BasedHardware/omi/3840beec7540828cf0a4ecdfd0573a4659051dbe/.agent-artifacts/ui-evidence/processingtoday/README.md),
[every pre-review
disposition](https://raw.githubusercontent.com/BasedHardware/omi/51cbb86c011aeb6b79c13e6579e2fb7061220894/.agent-artifacts/ui-evidence/processingtoday/prereview-dispositions.md).

Open limits: no physical-device/signed-session QA or live account
latency measurement on this headless host. Pending is capped;
loaded/search/episode rows supplement it. Episode-only composition debt
beyond the loaded episode range and legacy unstamped empty completed
history require a separate bounded discovery API. Summary candidates
retain capped earliest-due ordering. Catch-up/On the Way retain their
existing through-notes-completion interpretation; summary debt may
contribute recording duration after upload.

Pre-existing PCM guard:
test_pusher_storage_pcm_saturation.py::test_50_sockets_plateau_refuse_without_ack_then_retry_once
failed only its load-sensitive CPU-duration limit on the previously
reviewed head; pre-review reproduced it on main. [Owning
log](https://github.com/BasedHardware/omi/actions/runs/42782215635/job/129714715607).
The test, threshold, allowlist and pusher/storage implementation are
untouched. New-head CI remains authoritative.
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