Repository navigation
fix(conversations): show localized recording dates without changing titles - #20359
Conversation
Failure-Class: FC-terminal-leaves-kept-row-untitled Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
2 issues found across 20 files
Confidence score: 4/5
process_conversation.pynow always includesstructure_reasonon refusedselfheal_guardevents, so the unchanged exact-match assertion intest_selfheal_recovery.pywill fail. Update the assertion to match the event shape.conversation_summary_retry_title_test.dartderives its expected title with the same expression asrecordingFallbackTitle, so it won’t catch a formatting regression. Assert an independently specified expected value.
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="backend/utils/conversations/process_conversation.py">
<violation number="1" location="backend/utils/conversations/process_conversation.py:3110">
P2: `structure_reason` is now a static key on the refused `selfheal_guard` event (the ternary only varies its value), but the exact-match assertion in `backend/tests/unit/test_selfheal_recovery.py` (unchanged in this PR) still expects the refused event without it. In that test's first `process_conversation` call `recovery_transcript_decoded` is not passed and defaults to True, so the emitted event carries `'structure_reason': 'no_enriched_structure'` and the dict-equality assertion fails. Update the expected dict to include the new field (and confirm the '%s' decode-failed branch has its own assertion, which `test_recovery_discard_pipeline.py` covers).</violation>
</file>
<file name="app/test/unit/conversation_summary_retry_title_test.dart">
<violation number="1" location="app/test/unit/conversation_summary_retry_title_test.dart:161">
P3: This expected value recomputes the exact expression `recordingFallbackTitle` executes (`OmiDateFormat(locale: 'en', use24HourFormat: false).dateTime(createdAt.toLocal())`), so both sides always produce the same string and the assertion can never fail on a regressed fallback title. It only verifies the implementation agrees with a copy of itself. Give the conversation a fixed `createdAt` and pin a concrete string (normalizing the narrow no-break space as `omi_date_format_test.dart` does), like the new 24-hour test does.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| 'event': 'selfheal_guard', | ||
| 'outcome': 'refused', | ||
| 'reason': 'empty_structured', | ||
| 'structure_reason': ( |
There was a problem hiding this comment.
P2: structure_reason is now a static key on the refused selfheal_guard event (the ternary only varies its value), but the exact-match assertion in backend/tests/unit/test_selfheal_recovery.py (unchanged in this PR) still expects the refused event without it. In that test's first process_conversation call recovery_transcript_decoded is not passed and defaults to True, so the emitted event carries 'structure_reason': 'no_enriched_structure' and the dict-equality assertion fails. Update the expected dict to include the new field (and confirm the '%s' decode-failed branch has its own assertion, which test_recovery_discard_pipeline.py covers).
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 backend/utils/conversations/process_conversation.py, line 3110:
<comment>`structure_reason` is now a static key on the refused `selfheal_guard` event (the ternary only varies its value), but the exact-match assertion in `backend/tests/unit/test_selfheal_recovery.py` (unchanged in this PR) still expects the refused event without it. In that test's first `process_conversation` call `recovery_transcript_decoded` is not passed and defaults to True, so the emitted event carries `'structure_reason': 'no_enriched_structure'` and the dict-equality assertion fails. Update the expected dict to include the new field (and confirm the '%s' decode-failed branch has its own assertion, which `test_recovery_discard_pipeline.py` covers).</comment>
<file context>
@@ -3107,6 +3107,9 @@ def report_persistence(
'event': 'selfheal_guard',
'outcome': 'refused',
'reason': 'empty_structured',
+ 'structure_reason': (
+ 'no_enriched_structure' if recovery_transcript_decoded else 'transcript_decode_failed'
+ ),
</file context>
| expect( | ||
| conversationDisplayTitle(conversation, l10n, surface: ConversationUntitledRenderedSurface.list), | ||
| l10n.untitledConversation, | ||
| '${l10n.recording} · ${OmiDateFormat(locale: const Locale('en'), use24HourFormat: false, l10n: l10n).dateTime(conversation.createdAt.toLocal())}', |
There was a problem hiding this comment.
P3: This expected value recomputes the exact expression recordingFallbackTitle executes (OmiDateFormat(locale: 'en', use24HourFormat: false).dateTime(createdAt.toLocal())), so both sides always produce the same string and the assertion can never fail on a regressed fallback title. It only verifies the implementation agrees with a copy of itself. Give the conversation a fixed createdAt and pin a concrete string (normalizing the narrow no-break space as omi_date_format_test.dart does), like the new 24-hour test does.
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/test/unit/conversation_summary_retry_title_test.dart, line 161:
<comment>This expected value recomputes the exact expression `recordingFallbackTitle` executes (`OmiDateFormat(locale: 'en', use24HourFormat: false).dateTime(createdAt.toLocal())`), so both sides always produce the same string and the assertion can never fail on a regressed fallback title. It only verifies the implementation agrees with a copy of itself. Give the conversation a fixed `createdAt` and pin a concrete string (normalizing the narrow no-break space as `omi_date_format_test.dart` does), like the new 24-hour test does.</comment>
<file context>
@@ -140,12 +153,12 @@ void main() {
expect(
conversationDisplayTitle(conversation, l10n, surface: ConversationUntitledRenderedSurface.list),
- l10n.untitledConversation,
+ '${l10n.recording} · ${OmiDateFormat(locale: const Locale('en'), use24HourFormat: false, l10n: l10n).dateTime(conversation.createdAt.toLocal())}',
);
}
</file context>
Remove the read-time structured.title projection and its telemetry/registry artifacts. Keep localized Flutter recording dates and bounded recovery diagnostics; verify unchanged Rename never persists a placeholder. Failure-Class: FC-terminal-leaves-kept-row-untitled Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Also brings two tests in line with intended changes already on main: - test_rate_limiting pins the developer conversation-list cap that #13955 unified at 200 (was 25 with transcripts / 100 without). - test_selfheal_recovery expects the bounded structure_reason field that #20359 added to the selfheal_guard refusal event. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, chat, settings and diagnostics (#20415) * fix(memories): list never waits on the graph; compact graph states; emoji-free titles - The graph preview draws its own card: a faint static node sketch while it loads (a short pulse, none under Reduce Motion) at 140 pt instead of a 180 pt spinner, the graph at the same height once loaded, and one row with Try Again on failure so the list moves up. - Hide the floating add button while the account has no memories; the empty state's one action adds the first (ux-contract 13). - The edit sheet's category chip uses the filter sheet's labels instead of the raw enum name. - noMemoriesYet / noMemoriesFound drop the leading emoji in every locale; English empty-state titles and the first-memory button use Title Case. - Visual audit: memories-graph-loading, -failed and -loaded scenarios. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): onboarding chrome, voice intro, permissions and no-device polish - Onboarding wrapper: extract OnboardingChrome. When the progress dots or back button show, the step gets a MediaQuery whose top padding includes the chrome row, so no step can sit under them (the voice title did). Drop the per-step 64/60 px offsets in OnboardingStep and the knowledge-graph step. Backgrounds are drawn outside the chrome and still bleed full-screen. - Voice introduction: no intro or hint paragraph; a "1 of 4" caption replaces the grey progress bar; the sentence is centred with Try Another Prompt under it. Before recording: Start Speaking plus one whole-step Skip. Recording: Next leads, Pause and Skip Question are small, a centred live waveform replaces the Listening row, and the silence hint shows only after two seconds without speech (GuidedVoiceController.quiet). Review shows one heading, a shorter hint and no save caption. Title Case for the step's buttons. - Permissions: OmiPermissionRow puts its action on the title line so the reason and status text use the card width; the subtitle reuses permissionsChangeAnytime. - Find device, nothing found: hide "Searching for devices", show the turned-off Omi image, "No Omi Found" and a one-line hint; Scan Again, How to Pair, Not Now, with Contact Support as a small link (the pairing guide has no support route). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(mobile): chat, start-up failure, announcement and task polish - Ask Omi: the greeting drops the "No conversations today." line (the count shows once there is one); the Chat Apps drawer drops the "Select App" label and the sentence that explained the Enable Apps row. Composer unchanged. - Start-up failure: centred error layout; the raw exception sits behind a collapsed Details disclosure (open by default for a configuration error, whose message points at it). New key startupFailedDetails. - Announcements: the call to action now understands the backend's documented actions (navigate:/route opens in Home, url:https://... opens externally); before, both failed to parse as launchable URLs. - Tasks: the character counter shows only in the last 10% of the limit; group headers use Title Case like OmiSectionHeader instead of all caps. - Visual audit: the resumed-thread fixture is a realistic reply, the announcement carries a CTA, and start-up failure captures Details open. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): confirm messages state the consequence, not "Are you sure" Dialog titles already ask the question (ux-contract §4), so the message under them now names only what happens: "This can't be undone." and the like, in sentence case. Rewrites 30 English strings plus all 48 locales; placeholders unchanged. Delete-account strings are left to the settings lane. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): settings UI polish (delete account, device, notifications, apps, people, plans) Implements the settings lane of the mobile UI-polish audit: - Delete account confirm: irreversibility said once (subtitle); one consequence list; export is a row; the typed DELETE field sits with the pinned buttons; Delete Account is the live destructive action once typed, Keep My Account secondary. - Developer Settings: API and MCP key load failures show "Couldn't load API keys." with Try Again; the raw exception is logged instead. - Notifications: one frequency value label (no badge, no Off subtitle, no end labels); the Daily Summary toggle names itself. Language and Offline Sync section headers use OmiSectionHeader/OmiSettingsGroup in Title Case. - Device: title falls back to "Omi"; unknown name and hardware rows are hidden; the Forget Device message drops the repeated re-pair sentence. - Transcription, Transcribe Later, Language footer, person Pin row, plans sheet (no crown, plainer lines, no "Please") copy fixes. - Apps: filter sheet hides empty sections and says "Apply Filters"; Integrations drops the info line; search says "Search apps"; app detail keeps the header rating only. - People / Clean Up: Select and Select All are plain text app-bar actions; the Select menu sheet has a title. - Goals: standard app bar with centred title and trailing +. - Integration settings: status and account line in one row, Disconnect follows the content. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): untitled list rows and one upgrade action per locked run F15: a list row with no title and no transcript says "Untitled Conversation" instead of repeating its date and time under the day header; the untitled telemetry still reports. Other surfaces keep the localized date. F16: two or more consecutive locked rows share one OmiLockedPreview card and one "Upgrade to Unlimited" action; a lone locked row is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): conversation detail, voice card and speaker sheet polish F4: the conversation menu is grouped with dividers (summary, organise, find and copy, developer tools last before Delete) and says "Delete". The share button opens the system sheet, so copy and audio actions stay. F5: the folder chip shows only for a filed conversation; the tab row shows "Shared" only when not private; the transcript pill drops the duration; the likely-speaker prompt is two light chips under the line. F11: the voice card asks Yes / No… / Not Sure; No… opens Who Is It?, which now offers That's Me and Not a Person first; the confirm footnote is gone. The owner card keeps its answers. The Tag Speaker sheet uses OmiFilterChip (with an optional leading icon) and "You". Why Likely says Helps, Barely helps and Hurts. F20: OmiFeedbackClearance lifts toasts above the pinned Ask Omi bar. F21: the screenshots audit scenario renders on the default platform like the rest; the page already uses OmiBackButton and showOmiConfirm. F32: "Labeled 3 lines" and "Found in 2 earlier conversations". Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(app): Device Diagnostics shows a plain verdict instead of a card grid Replaces the five status cards with two settings lists. Right Now holds connected-for, battery and signal (quality word, a coloured dot and the dBm value). Last 7 Days opens with a verdict, then neutral counts: drops with an hourly rate, longest gap and failed connections. Lifetime counts move to a "Since pairing" footnote, or fill the rows when the window anchor is unavailable. The verdict reads "Having trouble connecting" only when a connection attempt failed in the last 24 hours. Otherwise it reads "Reconnects on its own" with the median reconnect time. Long gaps stay informational because the pendant buffers audio through them. The signal word, dot and chart now share one set of thresholds, so -68 dBm is Good and green. Battery colours switch at 20% and 10%. The signal chart has a fixed -100 to -40 dBm axis over the last 60 s, with labels inside the plot. The battery chart is about half its old height. History dots for auto-recovered drops are neutral. Adds healthy and trouble visual-audit scenarios with faked pigeon replies, plus tests for the verdict rule and the colour thresholds. New strings are translated into all 48 locales. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(app): restore lane formatting after integration merges; keep #20359 date titles on list rows The integration merge commits ran the pre-commit formatter before pub get, so it used the default 80-column width. Restore each file to its lane version. Drop the lane's F15 change ("Untitled Conversation" on list rows): #20359 chose the localized date deliberately. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): Device Diagnostics signal chart labels on a left axis The inline line labels put −40 under its line, crowding −60. A standard left axis at 20 dBm steps keeps every label level with its grid line. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(app): changelog entry for the mobile UI polish pass Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): address review of the UI polish pass - Locked runs keep each row's long-press menu, swipe-to-delete and selection handling; OmiLockedPreview gains an interactive mode so gestures reach the blurred rows while the tint stays inert. - The run's shared upgrade action honours selection mode, like a lone locked row. - Announcement url: actions open only http(s) links with a host. - Diagnostics history: a dot is red only for a failed connection in the last 24 hours, amber for an older one; drops (including those with no recorded reconnect time) stay neutral. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Flutter conversations with neither a title nor transcript text now display a localized date/time with the device clock setting on every surface, including the home-widget payload. The fallback is presentation-only:
structured.titleremains authoritative, and an unchanged Rename does not save the placeholder.Changes
OmiDateFormatwith the device clock setting; the widget payload remains pure by accepting the formatter as an optional input. The fallback is only the localized date/time, with no recording-status label.summary_retryable. Add a widget regression that focuses/blurs Rename with an empty or unchanged title and observes zero persistence calls.structure_reason(transcript_decode_failedorno_enriched_structure) to the existing recovery-refusal log, with no control-flow change.ConversationUntitledRenderedmeasures render-time fallbacks per conversation/surface/session, subject to a session budget, not unique empty-title conversations created per day. The consumer description reflects the Flutter wording change.Considered and rejected
structured.title: rejected after Sol review. A synthetic value makes macOS classify a failed summary as titled and hides Reprocess even withsummary_retryable=true; unchanged Rename can PATCH it into bothstructured.titleanduser_title. Star/folder responses can replace it with the raw blank value. MCP lacks the projected status and shared detail bypasses the helper, so coverage was inconsistent. English UTC strings preempt Flutter's localized local-time fallback. Per-read fallback warnings create log spam and filled titles bypass client render telemetry. The authoritative field must stay untouched.display_title: deferred. This could be evaluated if MCP/share/web/desktop need a separate presentation contract, with explicit consumer coverage and no mutation/retry coupling. This PR adds no field and does not claim to fix every client's fallback.RecoveryStructureUnavailableErrorafter non-rich structure, including unreadable transcripts. No production cause distribution establishes a model, retry or timeout defect. The bounded refusal reason is the useful diagnostic step; extra retries could repeatedly decode corrupt input or add cost.omi-journey-capture-failmanifest covers the durable terminal projection with a denominator and dwell; dead-emission/backlog/surge coverage also exists. Render counters cannot establish unique newly created failures. A correct daily creation metric would need a durable write-time signal, not request counts or an account scan. No alert rollout or workflow added.Evidence and validation
Decisions use current code, the supplied Sol review and synthetic tests. Earlier aggregate-monitoring observations did not establish production cause frequency or coverage and were not re-queried in this continuation. No deployment or device acceptance is claimed.
BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-20359-scope-reduction-20261002-tests.txt bash backend/test.sh— exit 0; 234 passed across six isolated files:test_conversation_redact_enrich.py,test_recovery_discard_pipeline.py,test_dead_letter_visible_row_title.py,test_parity_contracts.py,test_fallback_observability.py,test_listen_finalization_cloud_tasks.py.From
app/:bash test.sh test/unit/conversation_summary_retry_title_test.dart test/unit/home_widgets_payload_test.dart test/widgets/conversation_detail_title_alignment_test.dart test/widgets/conversation_summary_retry_row_test.dart— exit 0; hermetic bootstrap and spine checks passed, along with 33 focused tests including the unchanged-Rename persistence spy and the new 24-hour widget payload case.From
app/:bash scripts/analyze_ratchet.sh— exit 0, no analyzer regression.agent-flutter connect— unavailable (exit 2): no running Flutter VM Service. No interactive screenshot, physical-device build or live endpoint test.scripts/pr-preflight --pr-body-file /tmp/OMI_PR_BODY_FILE_20359_two_flutter_fixes_20261003.md— exit 0; 39 selected checks passed.OMI_PR_BODY_FILE=/tmp/OMI_PR_BODY_FILE_20359_two_flutter_fixes_20261003.md make preflight— exit 0; 39 selected checks passed in 479.52s. The runner skipped the 90-day failure-class history ratchet because this clone is shallow.GIT_SSH_COMMAND='ssh -o ServerAliveInterval=30 -o ServerAliveCountMax=20' OMI_PR_BODY_FILE=/tmp/OMI_PR_BODY_FILE_20359_two_flutter_fixes_20261003.md git push origin lane/untitled-longterm— exit 0; bounded pre-push gates passed, including backend type-checking (0 errors; 10,092 existing warnings), runtime-image contracts, 21 tests intest_recovery_discard_pipeline.py, and formatting checks.git ls-remote origin refs/heads/lane/untitled-longtermandgh pr view 20359 --json headRefOidverified the new commit SHA after push. Hosted CI has not been awaited. No merge or deployment.Contracts
INV-UI-3: reuse the shared date formatter and device clock setting for the date-only fallback. INV-MEM-4; INV-TASK-2: no memory/task authority or mutation changes.
Failure-Class: FC-terminal-leaves-kept-row-untitled
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3565 -> 3568 | Three bounded diagnostic lines at the existing recovery refusal without changing control flow.
🤖 Generated with Claude Code