Skip to content

feat(ios): expand SwiftUI presentation with native Liquid Glass - #20440

Open
apoorvdarshan wants to merge 103 commits into
BasedHardware:mainfrom
apoorvdarshan:feat/ios-swiftui-presentation
Open

apoorvdarshan wants to merge 103 commits into
BasedHardware:mainfrom
apoorvdarshan:feat/ios-swiftui-presentation

Conversation

@apoorvdarshan

@apoorvdarshan apoorvdarshan commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Move Omi’s iOS presentation to SwiftUI behind OMI_IOS_SWIFTUI (default off). With the flag on and iOS 16+, every route in the migration plan renders natively inside the Flutter host; iOS 26+ controls use Apple’s Liquid Glass and reading content stays opaque. The default build, Android and earlier iOS keep the complete current app.

  • Shell and Home: a persistent system tab bar (Home, Tasks, Memories, Apps, Settings) with lazily mounted, retained roots; one native Home with capture card, recap carousel, recordings and dated conversations; native live capture and processing pages.
  • Bridge primitives: a snapshot Swift rejects now shows the complete Flutter screen, never a blank view (P0). Presentation outcomes, dismissSignal and a blocking activity HUD (P1); native toasts behind OmiFeedback/AppSnackbar (P2); one-time secret reveal in a sensitive surface (P3); list selection with a bottom bar, reorder, indent, collapsible sections and swipe actions (P4); rich message_ai replies with a link whitelist and bar/line charts (P5); the NativeGraph knowledge graph card and fill stage with row-scoped capture (P6); a host capability query with the Shortcuts link behind #if compiler(>=6.4) (P7); and a labelled level control (P8).
  • 21 screen batches: library selection/merge/move, day lists and search filters; Places map and recap journey; conversation detail sheets and test prompts; speaker review and earlier voice matches; recording-file detail; Tasks selection, hierarchy, reorder and project grouping; Goals and shared tasks; Memories rows, Mind Map and Memory Graph; structured chat replies, charts, citations and feedback; developer API/MCP/app-owner keys with one-time reveal; reviews, app options and capability/category apps; AI app generator, payouts and Stripe Connect; plan confirmations, cancel-subscription and delete-account flows; preferences, Shortcuts, assistant voice, Wrapped 2025 and import; announcements, What’s New, upgrade/rating prompts and first-launch sheets; device discovery/pairing, settings/diagnostics, firmware/OTA/flash, the interactive device tutorial and Offline Sync pages.
  • Visual system (two polish passes): shared metrics, centred empty states, Home section headers and recap cards, accent selection marks, NEW/BETA badges, rich-text typography, stable per-speaker tints (never purple, INV-UI-1), 44 pt glass circles with one neutral primary action per screen, a Messages-order composer, a 56 pt reader play/pause, safeAreaBar on iOS 26, system Cancel/Save placements, green switches and contrast-safe toasts.
  • Upstream sync: pinned main 789de5136cd124991e9956f9ff72891b3ad4416d is integrated with a regular merge. Native presentation keeps Tasks project grouping, grouped offline recordings, the speaker-labeling session and owner-clip playback gate, Chat Apps navigation, custom backend editing and the new onboarding retry state. Hidden phone-call entry points and retired Home/capture controls follow upstream.

Existing auth/API, BLE, recording/recovery, audio, upload, mutation, checkout/OAuth and permission owners remain authoritative. Native code receives presentation values and whitelisted commands, never app-authentication credentials. Every surface is fenced to the account session: session changes clear private content, temporary sheets, toasts, activity and secret sheets, and stale completions/actions are rejected. Save drains pending edits; rejected edits cannot commit. Invalid rows or rejected snapshots restore the complete Flutter screen. Literal transcript text, localization and Dark/Light/System behavior are preserved. New credentials are shown once and never logged, cached or captured; custom STT snapshots omit saved keys unless the user explicitly reveals or edits them.

Intentionally classic: the checkout/customer-portal, referral and app-home web views (their WKWebView navigation and cookie owners), the signed-out welcome video, crash/startup fallbacks, decorative animations and system UIs. Screens merged from upstream (Review entry/questions, Recent changes, entity pages, Dream report, Chat Apps screens and the speaker quick picker) still use Flutter and are listed as remaining in the parity ledger; the native UI guide documents the bridge, fallback rules and visual system. Tracked in #20426. Ready for review; rollout still requires human maintainer sign-off and the outstanding verification. Existing proposals #20328/#20329/#20331/#20342 and Live Activity #18887 are credited references.

October 11 review fixes

  • Restored normative “must be hermetic” in app/AGENTS.md after a timestamped content backup; the unchanged guide budget is respected.
  • Deferred classic chat construction with a lazy fallback; a regression exercises native selection and host rejection.
  • Preserved ios-native-home-contract and ios-native-surface-contract alongside upstream's watch-audio relay check in the existing local/CI manifest. A macOS CI selection dry run selects both production-decoder checks.
  • OMI_IOS_SWIFTUI remains default off. Rollout and eventual switch removal require maintainer direction plus the outstanding parity/live-backend/hardware evidence. Full CI still requires maintainer authorization.

UI evidence (historical October 9 head)

Rendered from the production SwiftUI sources by the SwiftUI Preview fixture on the iOS Simulator (Liquid Glass path) after the second polish pass. The fixture feeds synthetic snapshots; it has no account or backend.

Native Home
Native Home
Conversation summary
Conversation summary
Conversation transcript
Conversation transcript
Reader following playback
Reader following playback
Chat rich reply
Chat rich reply
Settings root
Settings root
List selection mode
List selection mode
Modal input sheet
Modal input sheet
Confirm toast
Confirm toast
Knowledge graph
Knowledge graph
Empty state
Empty state
One-time key reveal
One-time key reveal

Tracked files: .agent-artifacts/ui-evidence/20440/001-mobile-ios-home.png, .agent-artifacts/ui-evidence/20440/002-mobile-ios-conversation-summary.png, .agent-artifacts/ui-evidence/20440/003-mobile-ios-conversation-transcript.png, .agent-artifacts/ui-evidence/20440/004-mobile-ios-reader-player.png, .agent-artifacts/ui-evidence/20440/005-mobile-ios-chat-rich-reply.png, .agent-artifacts/ui-evidence/20440/006-mobile-ios-settings-root.png, .agent-artifacts/ui-evidence/20440/007-mobile-ios-list-selection.png, .agent-artifacts/ui-evidence/20440/008-mobile-ios-modal-sheet.png, .agent-artifacts/ui-evidence/20440/009-mobile-ios-toast-confirm.png, .agent-artifacts/ui-evidence/20440/010-mobile-ios-knowledge-graph.png, .agent-artifacts/ui-evidence/20440/011-mobile-ios-empty-state.png, .agent-artifacts/ui-evidence/20440/012-mobile-ios-secret-reveal.png

Validation (October 11 repair)

  • 138 protected startup tests passed, plus 864 native/affected Flutter tests in the final combined run (--concurrency=2). Five old owner-prompt fixture failures were fixed by supplying upstream's required evidence IDs; the tutorial fixtures now use an isolated real outbox per test instead of sharing a static outbox across widget-test async zones. Two new tests keep both native and classic routes open on failed persistence and allow a successful retry. The full hermetic Flutter suite was not rerun here.
  • The analyzer ratchet passed with no error diagnostics or new warnings/info above the existing baseline. Localization generation and all six test prerequisite shell scripts passed.
  • Both real Swift production-decoder contracts passed, alongside the watch-audio relay and Flutter-launch guard contracts. AppDelegate syntax passed. The production SwiftUI preview compiled for arm64 and x86_64 simulator architectures with -jobs 2; this was a build only, not a host UI run or full device app build.
  • The macOS CI manifest selection includes ios-native-home-contract and ios-native-surface-contract. This is local selection evidence; upstream full mobile CI remains policy-gated.
  • Full repository preflight passed against explicit pinned 789de5136c. The unchanged pre-push gates passed on the successful regular push.
    The new head has not been installed or exercised on a physical device. The coordinator owns the single combined Release install. Live-backend behavior, all 21 host targets together, physical playback, pairing/OTA, transfer and call/audio routes remain unverified here.

Historical validation (before this integration)

  • Integration (October 9): after the upstream merge, the full hermetic Flutter suite passed 5,634 tests, 14 declared skips, plus 138 startup checks, and 644 native UI tests; the analyzer ratchet found nothing new. After Tasks project grouping, 686 native UI and affected tests passed.
  • SwiftUI Preview suite (83 UI tests) on the polished renderer: 81/83 in a three-way parallel run; the two load-sensitive cases (reorder coordinates, level drag) passed on rerun. Ruby native contracts and SwiftLint (zero violations) passed. Repository preflight passed 42 checks.
  • Each batch adds projection/owner tests under app/test/mobile/native_ui/ and its own host target, app/integration_test/native_<area>_host_test.dart. A combined Simulator run of the 21 host targets on the integrated head is still pending.
  • Earlier batches (October 4): 4,622 hermetic Flutter checks, 138 startup checks, 23 software-journey checks, 24 real Flutter/UIKit host scenarios and 33 native fixture scenarios.
  • The historical October 9 signed Release-prod build was installed over the existing iPhone app without clearing data; fresh before/after checks confirmed the same account, appearance, onboarding and pendant pairing and a normal startup. Physical screenshots, playback, pairing/OTA and call/audio-route checks are not claimed.

Full upstream mobile CI is pending; skipped lanes are not passes. Heavy mobile lanes are skipped by the fork policy; the CI-tier resolver requires a maintainer to apply ci:full and rerun. Policy-skipped lanes are not treated as passes. Human migration-direction review is also pending.

Product invariants affected

  • INV-MEM-1 — native Memory presentation retains existing short_term, long_term and archive filtering and access policy; no new tier or collection.

Failure-Class: new

@Git-on-my-level

Copy link
Copy Markdown
Member

Draft review — this is a well-structured staging of the #20426 opt-in SwiftUI preview (OMI_IOS_SWIFTUI, default off), and the boundary discipline looks good:

  • AppDelegate.swift adds only platform-view registration plus an isSupported iOS 16 gate — no new native service ownership.
  • native_conversation_projection.dart strips locked summary/transcript before the platform boundary, and openConversationListRow keeps the shared paywall checks/search analytics.
  • native_read_session.dart fences reads on account change and surface disposal; NativeHomeContract/NativeSurfaceContract reject duplicate identities, stale revisions, and out-of-range values, with swiftc-compiled contract tests to match.
  • The preferences.dart _isStringList fix (validate elements instead of trusting the Dart generic after a native codec round trip) is a real correctness win, and boot_persisted_state_test.dart covers cold load, reload, and copy isolation.

Two things I'd like addressed before this leaves draft:

  1. app/AGENTS.md deletes the testing-guidance line "Test state machine logic via minimal abstractions mirroring production flow" with no explanation in the description. Since AGENTS.md steers both contributors and AI coding agents, please restore it or justify the removal (the added native-UI guide link is fine and accurate).
  2. Most CI lanes are skipped on this draft head, so the validation summary in the description isn't independently checkable yet, and the final physical-device install is still pending per the body. Once it's ready for review, marking ready + letting the full lanes run will make those claims verifiable.

Minor: both new contract lanes in .github/checks-manifest.yaml list Runner/SafeFoundationSinks.swift as a trigger although this PR doesn't modify it — harmless, just noting.

Because this redirects core surfaces (Home, onboarding/auth presentation, Settings) behind the opt-in flag, the migration-direction call and the AGENTS.md guidance edit need a human maintainer's sign-off — leaving for maintainer review rather than blocking the draft.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge ios labels Oct 3, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed the full diff of this draft. The overall shape is strong and cohesive around #20426, and I'm not asking for a split - the native presentation migration is one surface and the pieces interlock.

What looks good, with specifics:

  • NativeHomeContract.swift / NativeSurfaceContract.swift: versioned, strict Decodable snapshots; the contract tests (native_home_contract_test.swift, native_surface_contract_test.swift) run the production decoders and reject stale revisions, duplicate group/row identities, unknown appearance values, invalid choice/date/text values, and reserved _-prefixed ids. Good fence design.
  • native_conversation_projection.dart: locked conversations have title/summary/transcript/externalText stripped before anything crosses the platform boundary, and native_conversation_projection_test.dart pins that the list projection carries no transcript/summary payload at all. native_read_session.dart + test fence pending reads across account changes and surface disposal. This is the right privacy posture for a native renderer.
  • ios_native_settings.dart: the projection returns null whenever it meets a control it cannot represent (TextField, arbitrary trailing widgets), keeping the entire classic page - verified by native_surface_projection_test.dart. The conservative fallback pattern is exactly what you want during a staged migration.
  • preferences.dart _isStringList: real fix - StandardMessageCodec round-trips drop List generic information, which could wrongly quarantine flash_page_pending_uploads and similar lists after a cold launch; boot_persisted_state_test.dart covers cold load, reload and copy isolation, and the changelog entry is present. Sensible to carry in this PR since the native read path depends on it.
  • AppDelegate.swift only registers the two platform-view factories and a com.omi.native_ui/config isSupported channel; no native auth store, network client, BLE owner, or recording coordinator is introduced, matching the PR description.

Two things to address:

  1. app/AGENTS.md: the added SwiftUI preview guide link is accurate and useful, but the same hunk deletes the testing guidance line "Test state machine logic via minimal abstractions mirroring production flow". Nothing in this PR seems to require that deletion. Please restore it (or explain why it should go) - AGENTS.md steers both human and AI contributors' testing approach in app/.
  2. Verification gap: on this head the iOS Compile Check, Dart Analyze & Tests, Hygiene and Formatting lanes were skipped, so the reported 4,035-test run and simulator UI-test pass are contributor-local results, and the PR body itself notes the final Release install and physical UI check are still pending. When you flip this to ready-for-review, please let CI confirm the mobile lanes (or note anything that still cannot run on the fork).

Also noted: .github/checks-manifest.yaml adds ios-native-home-contract and ios-native-surface-contract (macOS, local+ci lanes) and a new FC-native-list-generic-type-quarantine failure class; entries follow the existing schema and reason conventions.

Leaving for human maintainer review rather than urgent escalation: this needs a product-direction sign-off on the breadth of the native migration (auth/onboarding, settings and chat are projected) even though it is opt-in and default-build behavior is unchanged, plus CI confirmation on a non-draft head and a decision on the AGENTS.md deletion.


AI-generated maintainer feedback posted on David's behalf.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@apoorvdarshan

Copy link
Copy Markdown
Collaborator Author

Restored the requested “Test state machine logic via minimal abstractions mirroring production flow” guidance in app/AGENTS.md (9238b97), while retaining the hermetic-test instructions and staying within the guide budget. This update addresses the documentation request; the native UI source follow-up and merge conflict are being handled separately.

@apoorvdarshan

Copy link
Copy Markdown
Collaborator Author

Follow-up on the review requests:

  • The testing guidance was restored in 9238b97 (already noted above), and the merge conflict is resolved.
  • The expanded signed production Release is now installed and launched over my existing iPhone app. Source: 85658af1b2ebf4816a2b6e1f62ce21434063d2d0 on the personal branch, retaining the previous theme/Bluetooth/HTTP fixes. Fresh normal boot restored the authenticated owner; Dark theme, account, onboarding and pendant pairing were preserved, with zero failed boot stages or new preference quarantines. Physical-phone UI screenshot verification is still outstanding.
  • Updated local validation: 4,588 Flutter tests passed (14 declared skips), all 17 native Simulator UI tests passed together, all 23 checks across six hermetic journeys passed, and actual Flutter/native host tests and inspected screenshots passed. Compiled contracts, analyzer ratchet, SwiftLint and normal pre-push gates passed. The PR body now distinguishes these local results from remote CI.
  • Hygiene and Formatting are green on bd215fe84f. Heavy mobile lanes are skipped by the fork CI tier: .github/actions/ci-tier/resolve.sh checks the current ci:full label. A maintainer must apply it and re-run jobs; marking ready alone does not enable those lanes. My current upstream permissions are read-only, so I cannot apply the label.

The preview stays opt-in/default off. Advanced retained surfaces are listed in app/docs/ios-native-ui.md; this is a staged migration, with full native parity and the migration-direction decision still pending maintainer review.

@apoorvdarshan

Copy link
Copy Markdown
Collaborator Author

Fixed the real Settings fallback exposed by the iPhone screenshot in 38d5e21. NEW/BETA tags were unsupported by the generic projection, so the whole Settings page retained its Flutter UI; the full-screen fallback also lacked a top safe area. The actual root now stays SwiftUI, with a large title, native search/close controls, SF Symbols and chevrons. Existing callbacks and service owners stay in place.

The real Flutter/UIKit host screenshot check also caught Dark snapshots rendering Light. Both hosting containers now apply accepted appearance updates to UIKit traits. Actual Settings screenshots and colour assertions cover Dark, live Light, System and search; the original Home/form host scenarios still pass.

Validation: 4,590 Flutter tests passed (14 declared skips), all 18 native Simulator UI tests passed, and all 23 checks across six software journeys passed. Compiled contracts, analyzer ratchet, SwiftLint and the repository preflight passed. Signed production Release-prod from personal branch 195be7f was installed over my existing iPhone app and opened. Fresh startup restored the account, Dark theme, onboarding and pendant pairing, without failed startup stages or new preference quarantine. These UI screenshots are from the Simulator; a fresh physical-phone UI screenshot is still outstanding.

The PR remains an opt-in staged migration; deeper retained surfaces and full-parity work are listed in app/docs/ios-native-ui.md. Heavy mobile CI still needs a maintainer to apply ci:full and re-run jobs under the fork policy. That independent CI and the migration-direction review remain pending.

@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed this head (38d5e21) statically. This is a large but cohesive phase of the #20426 opt-in SwiftUI migration — everything hangs off OMI_IOS_SWIFTUI (default off), so I'm treating it as one surface rather than asking for a split. The architecture is sound; observations with specifics:

What looks good

  • app/lib/backend/preferences.dart — real fix: _isStringList + _readOrDefault stop quarantining StandardMessageCodec-decoded lists as type-mismatch (previously could drop saved devices / pending-upload ids after a cold launch). The regression test in boot_persisted_state_test.dart (codec round trip → cold load → reload → copy isolation) and the new FC-native-list-generic-type-quarantine failure-class record cover it well.
  • NativeHomeContract.swift / NativeSurfaceContract.swift — versioned, strict Decodable snapshots with revision fencing, duplicate-identity rejection, locked-content stripping, and rejection of invalid choice/date/text values; both production decoders are exercised by compiled swiftc contract tests (native_home_contract_test.rb / native_surface_contract_test.rb).
  • native_conversation_projection.dart pins that the list projection carries no transcript/summary payload at all, and locked conversations have title/summary/transcript/externalText stripped before anything crosses the platform boundary. native_read_session.dart fences pending reads across account changes and surface disposal. Right privacy posture for a native renderer.
  • ios_native_settings.dart — the projection returns null whenever it meets a control it cannot represent (e.g. TextField, arbitrary trailing widgets), keeping the entire classic page; verified by native_surface_projection_test.dart. Conservative fallback is exactly what you want during a staged migration.
  • nativeImageUri in ios_native_surface.dart validates scheme (https/file only), rejects userinfo, and caps length — good defensive posture.
  • Sensitive-surface projections (auth.dart, ai_consent_widget.dart, data_privacy_page.dart, plans_sheet.dart) keep every mutation with its existing owner — checkout, consent, sign-out, delete all route to the current providers; the plan projection test verifies server prices/copy/callbacks survive, including a non-English locale.
  • AppDelegate.swift only registers the two platform-view factories and a config/isSupported channel; no native auth store, network client, BLE owner, or recording coordinator is introduced, matching the PR description.

To address before ready-for-review

  1. Verification gap: on this head the iOS Compile Check, Dart Analyze & Tests, Hygiene and Formatting lanes — and the two newly registered macOS contract checks — were all skipped, so ~1k lines of new Swift plus the Runner.xcodeproj edits are not compile-verified in CI here. When you flip to ready, please let CI confirm the mobile lanes (or note anything the fork can't run).
  2. edit_segment_sheet.dart: _onChanged now calls setState on every keystroke (the old code compared first). Minor, but the guard was there for a reason.
  3. processing_capture.dart: when onPresentation is set, a post-frame callback is scheduled on every build — fine if consumers are idempotent, but worth a comment making that contract explicit.
  4. I could not execute the SwiftUI views (static review only), and conversation_list_item.dart / chat/page.dart carry real churn on core surfaces that the skipped Dart lanes would normally exercise — the extracted openConversationListRow looks behavior-preserving (paywall checks and search analytics intact), but it deserves a green widget-test run.

Docs / agent guidance

app/AGENTS.md links the new native-UI guide and reshapes the test-pattern bullets (the state-machine testing line moves to the top of the list; the hermetic rule is reworded but not weakened). Content is accurate against this PR's code, but note it steers future AI-assisted contributions toward the SwiftUI bridge contract — that's part of the direction decision, not just docs churn. app/docs/ios-native-ui.md and the AppSetup.mdx section match the implementation as far as I could verify.

Given the scale and that this projects security-sensitive surfaces (auth/onboarding, privacy, chat, checkout) into the native renderer, a human maintainer needs to sign off on the migration direction before merge; leaving needs-maintainer-review in place.


AI-generated maintainer feedback posted on David's behalf.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

claude and others added 11 commits October 9, 2026 03:11
Root cause: native_maps_recap_test "the stat rows match the classic tiles
and route to the day pages" (added in 39cbe3d) tapped the recap stat
rows through host.created.last. On the integrated branch, 34c7c7b made
DayConversationsPage a native surface too, so after the test pops that
page, host.created.last is the day page's disposed surface (created=[0,1],
disposed=[1]). The recap_tasks_stat action went to a dead channel and
DayTasksPage never opened. Production is correct: the recap surface (id 0)
stays live and routes the tap.

Fix: the test captures the recap surface id after it mounts and sends the
second tap to that surface. It now also asserts that the popped day page
had its own surface and that this surface was disposed. Every existing
assertion is unchanged.

Verification (Flutter 3.44.5, Linux sandbox):
- flutter test --no-pub test/mobile/native_ui: 642 passed, 1 failed before
  the fix; native_maps_recap_test.dart 22/22 after it
- flutter test on the 37 *_test.dart files changed since 3e3de62:
  615 passed
- bash test.sh --timeout 60s: spine 138 passed; full suite 5559 passed,
  14 skipped, 0 failed
- bash scripts/analyze_ratchet.sh: "Analyzer ratchet passed" (no new
  findings)

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 1ca7f91)
Brings in 169 upstream commits (review questions, entity pages and project grouping, the first-summary
rating prompt, transcript imports). Locale files keep every upstream string plus the three SwiftUI
keys; generated localizations were regenerated. The native rating prompt follows upstream and drops the
removed body text; the tasks page keeps both native reorder mode and upstream project grouping.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One five-way optional concatenation timed out the Swift 6.1 type checker in the contract test.
The same controls are now collected step by step; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The native Tasks projection now offers the classic "Group by project" toggle (only while Review is on, same titles, haptic and first-time project load, one shared _groupByProject state) and lists one section per project with a leading row that opens the project's EntityPage; the no-project group comes last and opens nothing. Grouping and sorting moved into the pure groupTasksByProject, which both the classic sliver list and the native projection use, so the order cannot diverge; search still wins over grouping, selection cascades within a group, and edit mode reorders within one group only.
Verified with dart format, flutter analyze (no issues), and flutter test on test/mobile/native_ui plus every test importing the changed files (686 passed); host tests still need a Simulator run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XKUCBtGD4TfGA7ZTDkWx2s
(cherry picked from commit 51486c4)
Presentation only: commands, accessibility identifiers, labels and values
are unchanged, and every string still comes from the snapshot.

- Empty lists show a centred empty state (ContentUnavailableView on
  iOS 17+, symbol and title on iOS 16). The surface keeps the
  native-surface-empty identifier on its title and the overlay takes no
  touches; Home centres it only when nothing else is listed.
- Home's Daily Recaps and Conversations share one header style with a
  "View All" action that stacks under the title at large text. The browse
  button is now the header of the Recordings section, removing the gap.
- One recap fills the row; several page as a carousel with the next card
  peeking. Cards match the inset-grouped cell radius.
- Selection uses accent checkmarks without the grey selected fill; other
  rows keep the monochrome tint.
- Short all-caps subtitles (NEW, BETA) render as tinted capsules after the
  title; choice rows put the menu trailing like Settings and stack when it
  does not fit; status errors gain a warning symbol; collapsible headers
  animate unless Reduce Motion is on.
- NativeMetrics holds the shared radii, row height and accent.
- Preview: empty-surface and multi-recap fixtures with tests; the light
  and rtl flags now apply to surfaces too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Rich text: a heading ramp with more space above than below, 12 pt
  paragraph and 6 pt list-item rhythm, secondary baseline-aligned list
  markers, and code and tables on a translucent fill that reads on the
  chat, reader and cell backgrounds in light and dark.
- Transcripts: semibold speaker labels with a stable per-speaker tint
  (FNV-1a over the label, eight hues at 4.5:1 or better on light and dark
  backgrounds, the label colour under Increase Contrast). Reader rows tint
  only the speaker part of the owner's subtitle; its text is unchanged.
- A reply with a symbol and a subtitle shows a bordered capsule retry
  button with that label and the same command, instead of a caption and a
  lone icon; the test pins its 44 pt hit target.
- The user bubble used secondarySystemGroupedBackground, which is white on
  the white chat background in light mode.
- Home summaries keep their paragraphs; the reader's section title is a
  heading.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
testSelectionTogglesOptimisticallyAndSendsTheSortedSet failed once while
the machine was heavily loaded: the cell's isSelected was not observed
within 2 s, and by the next query the fixture's 4 s reply had landed, so
the receipt already existed. The code shows the selection at once; the
timing margin was too thin.

The slow-selection fixture now answers after 8 s, the optimistic check
gets 4 s, and the receipt waits grow to match. The test still requires the
circle to fill before the owner answers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Second presentation pass over the SwiftUI renderer; command ids,
accessibility ids, labels and values are unchanged.

- Shared controls: NativeCircleButtonStyle draws fixed 44 pt round
  controls (glass on iOS 26+, a material before, a quiet fill inside a
  card). A screen's one primary action is the neutral accent with inverse
  ink (INV-UI-1: white in dark mode, black in light) and plain glass
  while it cannot act, so a Send that cannot send is never white. Row
  symbols render hierarchically through one NativeRowIcon.
- Chat: the composer is a 44 pt glass capsule that grows to six lines,
  the attachment menu leads like Messages, Send is the prominent circle,
  voice controls centre under a centred status and rounded waveform, and
  the follow-up is a sparkles glass chip. A menu never takes a glass
  button style (its open menu morphed out of the glass and missed the
  first tap); its circle is a backdrop outside the glass container. iOS 26
  uses safeAreaBar, so the transcript gets the system scroll edge effect.
  User bubbles use a system fill with a wider leading margin.
- Reader player: rounded scrubber bars, a 56 pt prominent play/pause and
  44 pt glass circles for the other symbol buttons, safeAreaBar on iOS 26
  and the opaque inset before.
- Sheets: the modal presenter passes its cancel id, so Cancel takes the
  cancellation placement and Save the confirmation placement instead of
  both sitting trailing.
- Activity HUD: a compact card that hugs a short label and wraps a long
  one at 280 pt, glass tinted with its own background over a matching
  scrim (plain glass read grey over the dimmed page), primary-ink label
  and spinner, shadow on the backing shape only.
- Forms: switches use the system on-state green (a white track hid the
  white knob in dark mode); the searchable choice reads title leading,
  value trailing; swatches get a hairline and a selection ring; task
  circles are lighter and sit closer to their title, with a symbol
  replace transition off under Reduce Motion; the secret's Copy is the
  full-width prominent action; the dialer floats on the screen like
  Phone; photos get continuous corners; selection bottom bars use the
  same circles and drop the bar material on iOS 26.
- Speaker tints: the purple and violet hues become gold and slate
  (INV-UI-1), each still 4.5:1 or better on light and dark backgrounds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Toasts: glass tinted with the toast's own background over a matching
  scrim (plain glass over a light page made a dark toast grey with grey
  text), state discs drawn white on green or red, a medium-weight
  message, a round close button and a shadow on the backing shape only.
  The symbol stops growing at accessibility sizes.
- Home: the live capture shows its source in a tinted disc, a monospaced
  elapsed time, Pause as its own 44 pt circle and the last transcript line
  as a quote; the footer's round actions share the composer's 44 pt
  circles with a 44 pt Ask capsule; the detail's More button uses the
  plain ellipsis inside the iOS 26 glass toolbar circle.
- Graph: labels keep a faded backing in dark mode (light mode already had
  one) and a 10 pt floor; the stage's bottom button is the prominent
  neutral action.
- Docs: the native UI guide lists the new shared rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- testLightRightToLeftAndSheetReviewCaptures captures the chat (light,
  right to left, follow-up, voice), the reader and settings in light, a
  review-only form fixture (segmented, colour, date, progress, toggle,
  destructive) in both appearances, the open editor sheet that other
  tests only capture after it closes, the light activity HUD and light
  and confirm toasts. The toast and modal fixtures follow a light
  argument.
- The fixture launches with -ui-test-no-animations, which turns off
  UIView animations and SwiftUI transaction animations. The graph
  placeholder's pulse, its Reduce Motion check and the long level-thumb
  drag (which fails without the slider's tracking animation) launch with
  animations on.

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

The native UI guide now describes the integrated branch: the eight bridge
primitives (presentation outcomes, activity HUD and dismiss signals, native
toasts, one-time secret reveal, list interactions, rich message_ai with the
link whitelist and bar/line charts, NativeGraph, the Shortcuts link capability
behind #if compiler(>=6.4), and the labelled level control), the fallback
rules (an invalid row or rejected snapshot shows the full Flutter screen;
flag off, Android and iOS before 16 keep the classic app), the visual system
from both polish passes and the per-area host targets.

The coverage table and parity ledger list every migrated area, drop the
"retained" columns that are now native, and name what stays classic on
purpose (web views, checkout, the welcome video, crash fallbacks) plus the
screens merged from upstream on October 8 that are still Flutter.

UI evidence for PR 20440 is replaced with twelve current captures of the
polished renderer from the SwiftUI Preview fixture, downscaled to 1400 px.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed the new head (16e89da) statically — delta only, since the architecture and fallback discipline were covered on earlier heads (most recently 3e3de62). The 42 new commits add the bridge primitives, the remaining screen batches, two polish passes and the completion docs.

What I verified in this delta, with specifics:

  • app/ios/Runner/AppDelegate.swift — the com.omi.native_ui/config channel grew present/presentActivity/dismissPresentation/toast/dismissToast, all still presentation-only with typed error codes (invalid_native_presentation / invalid_native_toast) and FlutterMethodNotImplemented for anything else; pre-iOS 16 answers isSupported=false and nothing more. No new native service ownership.
  • app/ios/Runner/NativeUI/NativeModalPresenter.swift — one active presentation at a time; the decoder refuses any snapshot containing a secret row so a one-time key can never echo back through a completion; guardEdits dirty-tracking against the initial snapshot, and the shown/whenShown handshake handles a dismissal requested mid-animation. Careful work.
  • app/ios/Runner/NativeUI/NativeToastPresenter.swift — per-scene windows with keyboard-frame avoidance, ordered request acceptance (NativeToastOrder) and a secure-random session token so a restarted Dart engine isn't refused by a stale request-id counter. Nothing persisted or logged.
  • app/lib/mobile/native_ui/ios_native_secret.dart — the reveal sheet is fenced to an AuthService session snapshot (closes itself on session change, hides the key on any pre-frame rebuild), is PopScope non-dismissible, and every refusal path (unsupported, invalid secret, no session, stale snapshot) lands in the caller's classic dialog so the one-time key is never lost. nativeSecretValid (printable ASCII, ≤4096) mirrors the Swift-side check.
  • app/lib/backend/preferences.dart — _isStringList validates decoded elements instead of trusting Dart generics across a native codec, and _readOrDefault makes the typed copy; correctly paired with .github/failure-classes/FC-native-list-generic-type-quarantine.json and the 'Saved devices and queued uploads survive app restarts' changelog entry.
  • app/lib/mobile/native_ui/native_rich_text.dart — the Markdown projection escapes formatting characters on re-serialization and keeps link hrefs as written (normalized spelling also accepted), so native rich replies can't smuggle structure the Flutter reader wouldn't show.
  • app/lib/core/app_shell.dart — the showSharedTasksSheet extraction preserves the flag-off behavior exactly: the native check short-circuits before the await, so existing builds still open the sheet synchronously.
  • app/lib/pages/action_items/action_items_page.dart — native reorder/selection integration stays off the classic path (selectionBarInFallback only mounts the bar for the native host, and dispose ends selection post-frame); the group-by-project menu behavior is preserved.
  • .github/checks-manifest.yaml — ios-native-home-contract and ios-native-surface-contract are additive and run the production decoders against malformed inputs; no existing trigger is weakened.
  • app/docs/ios-native-ui.md and ios-native-ui-parity.md — the parity ledger is honestly scoped ('a checked item means its declared presentation has moved; it does not mean that live backend and physical recording tests were performed'). That is exactly the right framing.

Two standing notes:

  • app/AGENTS.md — the hermeticity rule remains reworded from the normative ('must be hermetic … because bash test.sh runs all of it') to descriptive ('test/ is hermetic…'). The state-machine guidance line was restored as requested; the softened phrasing is what AI coding agents will read, so a maintainer should confirm it's intended.
  • No checks are reported on this branch (fork CI lanes skipped), so the validation described in the PR description — including the 'passes the Flutter suite' commit — isn't independently visible to me. The two new contract checks also only prove out once CI runs them.

This stays cohesive around one surface (#20426); not asking for a split. Leaving for human maintainer review before it leaves draft: the OMI_IOS_SWIFTUI switch, its rollout and eventual removal plan are a product-direction decision, and with no CI lanes on the branch the iOS app is only exercised by the author's own runs.


by AI on behalf of David

Integrate 789de51 with native speaker evidence and playback gates, transcript labeling sessions, grouped offline recordings, and upstream phone-call visibility. Restore normative hermetic guidance, defer classic chat construction, retain native decoder CI checks, and document staged rollout limits.

Failure-Class: none
@apoorvdarshan
apoorvdarshan marked this pull request as ready for review October 11, 2026 16:41
@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed the current head (c1f7b1c). This is a large, unusually well-structured piece of work — some notes from a static pass over the highest-risk surfaces, plus two things that need a human maintainer before this can move.

What looks good, with specifics:

  • app/lib/backend/preferences.dart — the new _isStringList element-wise validation (and the matching _readOrDefault copy path) is the correct fix for StandardMessageCodec returning an untyped list; the companion failure-class doc under .github/failure-classes/ is a nice touch.
  • app/ios/Runner/AppDelegate.swift — the com.omi.native_ui/config channel is properly fenced behind #available(iOS 16.0, *) with isSupported=false / FlutterMethodNotImplemented fallbacks; nothing changes for pre-iOS-16 or default builds.
  • app/lib/mobile/native_ui/ios_native_secret.dart — the one-time credential reveal is fenced to the current auth session (snapshot + isSessionSnapshotCurrent), validates the same printable-ASCII/4096 range on both sides, never logs/caches the secret, and falls back to the classic dialog. No leak path found.
  • app/ios/Runner/NativeUI/NativeSurfaceContract.swift — good trust-boundary hygiene: image URIs restricted to https (host required, no userinfo) or plain absolute file URLs with length caps, rich-block kinds whitelisted, table/heading structures validated.
  • app/lib/services/auth_service.dart — the harness token-gateway change remains debug + local_dev assert-gated; returning the previous gateway for test teardown is benign.

One agent-guidance note: app/AGENTS.md is modified here — it adds a "SwiftUI preview" guide link under Native Bridge and rewords the hermetic-test rule (semantically equivalent, nothing weakened). Since this file steers AI coding agents in the repo, maintainers should be aware the link goes live with this PR and would dangle if it were closed unmerged. The content itself is accurate and safe.

Two decisions needed from a maintainer:

  1. Product direction: this implements the repo-wide staged SwiftUI migration tracked in iOS: stage SwiftUI presentation while retaining current mobile service ownership #20426, which is authored by this same contributor. The architecture (default-off OMI_IOS_SWIFTUI, snapshot-copy presentation, existing service owners untouched) is sound, but committing Omi's iOS presentation to SwiftUI is a product/architecture call that should be explicitly signed off, not just verified as correct code.
  2. Verification gap: every mobile CI lane (Dart Analyze & Tests, iOS Compile Check, Android Compile Smoke/Emulator, Seeded Journeys) was skipped on this head, so the ~50 new native_ui test suites and the two new Swift contract checks have not run in CI on this branch. The .agent-artifacts/ui-evidence screenshots are simulator evidence generated outside CI. Can the mobile lanes be made to run here, or is the skip expected for this branch?

No security issues found in the sampled surfaces; no attack or supply-chain indicators.

Human review needed on the SwiftUI migration direction and the CI-skip question above — leaving for human maintainer review.

AI-generated review on behalf of the maintainers.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added the needs-tests PR introduces logic that should be covered by tests label Oct 11, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @apoorvdarshan — this is a large but cohesive staged migration, and the engineering care shows. I reviewed the bridge and the sensitive surfaces in detail; notes below.

What looks strong (verified in the diff):

  • AppDelegate.swift — the new com.omi.native_ui/config channel (present / presentActivity / toast) is iOS 16-gated with a safe fallback handler below 16, and all calls are wrapped so a bad payload returns a FlutterError instead of crashing.
  • NativeModalPresenter.swift — temporary presentations explicitly refuse secret-kind rows ("a one-time secret never enters a presentation"), and also reject graph rows, selection, bottom bars and swipe actions in modals. Alert mode is restricted to label rows. Good hardening.
  • NativeSurfaceContract.swift — the Swift side independently re-validates every decoded row: URL scheme allowlist (https/file only, userinfo rejected), graph invariants (node/edge caps, single fixed user node, deduped edge triples), the secret charset (printable ASCII ≤4096), and chart/slider/level ranges. The Dart side (NativeRow.valid in ios_native_surface.dart) mirrors it.
  • ios_native_secret.dart — the one-time reveal is fenced to an auth-session snapshot, closes (and hides the key) if the session changes mid-presentation, never logs/caches the secret, and falls back to the caller's classic dialog when unsupported or signed out.
  • app/lib/backend/preferences.dart — real bug fix: _isStringList validates elements of native-decoded lists so StandardMessageCodec's untyped list no longer quarantines saved devices / pending uploads; nicely paired with the FC-native-list-generic-type-quarantine failure-class doc and a changelog fragment.
  • .github/checks-manifest.yaml — the two new contract checks (ios-native-home-contract, ios-native-surface-contract) have well-scoped triggers and clear reasons.

Concerns for a maintainer:

  1. CI coverage on this head. Dart Analyze & Tests, iOS Compile Check, Formatting and the hermetic journeys are all skipped on this head; only Desktop Swift Build & Tests, Mobile Release Eligibility and PR Metadata Preflight ran. For a ~500-file PR where the Dart half is the other side of the bridge, that leaves no Dart-side CI signal here — worth confirming why the app lanes skipped and getting at least one Dart analyze/test run on this head before merge.
  2. Committed binaries. 12 PNG screenshots land in the repo tree under .agent-artifacts/ui-evidence/20440/ plus evidence.json. If these are meant as review evidence, a maintainer should confirm that location is the intended permanent home — binaries in git are hard to walk back later.
  3. Scope/product. This re-projects credentials, billing and delete-account surfaces onto the native presentation. The default-off OMI_IOS_SWIFTUI flag and complete Flutter fallback keep risk contained, but the direction decision (committing the app to a staged SwiftUI migration per iOS: stage SwiftUI presentation while retaining current mobile service ownership #20426) belongs to a human maintainer.

Docs note for agents: app/AGENTS.md now links the new SwiftUI guide (docs/ios-native-ui.md) and slightly rewords the test guidance — hermeticity rules are preserved, nothing weakened, and the linked guide matches the code as far as I verified. Since it steers future AI coding agents in app/, a maintainer should skim the 282-line guide for accuracy as it will become authoritative.

Keeping needs-tests (Dart CI skipped on this head) and needs-maintainer-review (product direction + CI coverage). No merge action from automation; leaving the direction call to the maintainers.

Footer: this feedback is AI-generated on behalf of the Omi maintainers.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@apoorvdarshan apoorvdarshan added the ci:full Maintainer-granted: run full CI on this fork PR label Oct 13, 2026
apoorvdarshan and others added 2 commits October 17, 2026 06:23
Brings the branch up to upstream main (b0280d9). 126 conflicted paths:
49 .arb files merged structurally and app_localizations regenerated; 24
Flutter pages rebuilt on upstream's current code with the branch's native
presentation wiring re-applied on top.

Upstream behaviour carried into the native paths where it fits:
- Home/Library: the processing page and per-conversation processing cards
  are gone (BasedHardware#21850); the native library projects upstream's one pending row
  (library_pending → On the Way). The native Home pending row follows in
  the next commit.
- Integrations / task integrations: a failed status read offers "Try again"
  and refreshes, in native rows too.
- Memories: locked rows read "Pending" with View Usage / Saved and open the
  usage page, not the plans sheet (BasedHardware#21474); knowledge graph fit-to-bounds
  with the controller-backed page.
- Onboarding: completion is upstream's first-capture chooser, projected as
  native rows; Bluetooth permission row.
- Chat: evidence cards removed as on mobile main (the plan no longer emits
  an evidence part); edit receipts count as renderable and keep the Flutter
  card on native; the unused native quota plans sheet is dropped in favour
  of upstream's titled sheet.
- Plans sheet, freemium prompt, usage page keep both sides (native sheet
  chrome + upstream's paywall routing, titles and analytics sources).

Tests retargeted to the new behaviour (pending row instead of processing
page, locked-row copy, Sync details → How syncing works, SyncProvider and
an inert PendingWorkStore under Home/library tests).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
Home's one row for work that is not a conversation yet, projected into the
native Home contract and drawn in SwiftUI: recordings syncing or
transcribing, conversations still processing, and server work the phone
did not start (PendingWorkStore). Title and subtitle follow
HomePendingRow's rules exactly ("Catching up" for a large backlog, the sync
stage or "Processing"); tapping it opens the classic On the Way page.

IosNativeHome listens to SyncProvider and the pending-work store, refreshes
the store with the rest of Home, and no longer draws a processing group of
its own. HomeContentPage forwards an injectable store for tests.

Swift: NativeHomeSnapshot.Chrome.pending (title, subtitle) and a pendingRow
in NativeHomeView dispatching openPending. Not compiled here (no Xcode).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @apoorvdarshan — this is an impressively disciplined staged migration: the snapshot contract in NativeSurfaceContract.swift (one-time secret rows fenced to sensitive surfaces, request-id/session monotonicity, stale-revision rejection), the iOS 16/26 availability gates in AppDelegate.swift and NativeGlass.swift, and the StandardMessageCodec element-wise list validation in preferences.dart (with the new FC-native-list-generic-type-quarantine failure class) all look right, and the hermetic host-test suite is thorough.

One blocking item before this can move forward:

  1. Hygiene is failing on product-file-line-count-ratchet. Three frozen files grew past their caps without an exception: app/lib/pages/action_items/action_items_page.dart (1333 -> 1500), app/lib/pages/chat/page.dart (1330 -> 1554), and app/lib/pages/settings/widgets/plans_sheet.dart (1288 -> 1530). Either split the native-projection additions out of these files or add the documented Line-Count-Exception: <path> | <old> -> <new> | reason lines to the PR body (e.g. one exception per file, with the reason being the native projection rows).

Two notes, non-blocking:

  • app/AGENTS.md now points agents at docs/ios-native-ui.md and rewords the hermetic-test rule. The content is accurate and safe (the guide exists, the flag default is documented as off), and since AGENTS.md is loaded into coding agents' context, this will steer future agent work toward the snapshot-contract rules — a good thing here.
  • The new checks-manifest entries (ios-native-home-contract, ios-native-surface-contract) are macOS-only, so Linux CI lanes skip them; please make sure they run (and pass) on a macOS runner lane before merge, as the contract tests are the main executable guard for the bridge.

Because this PR sets the SwiftUI presentation architecture for the whole iOS app (#20426) and touches sensitive surfaces (one-time credential reveal, delete-account and cancel-subscription flows), it needs a human maintainer's product and security sign-off in addition to the ratchet fix. Leaving for human maintainer review.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

apoorvdarshan and others added 4 commits October 18, 2026 18:08
Brings the branch up to upstream main (ecd1f40). l10n merged
structurally and regenerated; 9 Dart files resolved on upstream's code
with the native wiring re-applied:
- Conversation detail: summary v2 (activity strip, source chips, failure
  card, open-source/transcript callbacks) in the classic tree under the
  native surface; summarized-apps sheet uses upstream's per-sheet state and
  public template helpers in both presentations.
- Speaker tag card: upstream's shared speaker picker (Me / Not a person,
  optimistic people filtered) behind the branch's answerSpeakerTagWithPicker.
- reProcessConversationServer now returns ReprocessResult: the shared retry
  helper and the synced-conversations page adapt to it.
- Discovery controller uses device.firmwareWarningAcknowledgedKey; device
  settings skip the empty paired-device sentinel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
Keeps the six product files the branch grew under the line-count ratchet
without size exceptions: the native projections of the action items,
chat and plans sheet move into *_native.dart parts, Wrapped's session
polling joins its existing part, and two preference read helpers move to
preferences_read.dart. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
… device

Main versioned the third-party pairing note keys (firmwareWarningAcknowledgedKey,
BasedHardware#22107); the controller now uses it, so the test does too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
…names

- A failed reprocess keeps its toast with Try again on the native detail,
  which has no in-place failure card; the classic page still shows the card.
- The native summary projection reads getDisplayedSummarySelection, as the
  classic tab and Copy Summary do.
- The native speaker picker resolves a typed name that matches an existing
  person, and its name dialog rejects duplicates, as the shared picker does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since my last review:

  • addressed: the line-count ratchet blocker. Native projections moved into part files — action_items_page.dart 1500 -> 1212 (action_items_native.dart), chat/page.dart 1554 -> 1359 (chat_native.dart), plans_sheet.dart 1530 -> 1366 (plans_sheet_native.dart); all three are back under the threshold with no exception declaration needed. preferences_read.dart cleanly carries over the element-wise string-list validation.
  • still open: the macOS contract lanes (ios-native-home-contract, ios-native-surface-contract) have still not demonstrably run — this head has no CI check runs beyond the AI reviewer.
  • newly introduced: the branch no longer merges into current main (content conflicts in plans_sheet.dart, device_settings.dart, integrations_page.dart, memory_item.dart, memory_graph_page.dart, complete_screen.dart, AppSetup.mdx).

Verdict: the ratchet fix is exactly right, but this needs a main re-merge and a green CI run on the resulting head before it can move forward.

On the new commits themselves: f03065f is a good catch on both counts — native detail search now reads getDisplayedSummarySelection() instead of the raw summary selection (search now matches what is displayed), and _pickNamed() in speaker_review_native.dart resolves a typed name to an existing person/candidate before creating a duplicate, consistent with the classic-side picker fix. ebb992a (firmware-note key read from the device) and f2ef26f (part-file extraction, no behavior change intended) look clean.

  • Security: the native projections of the one-time credential reveal, delete-account and cancel-subscription flows still need a human maintainer's sign-off; the snapshot contract fencing them was reviewed favorably last round.
  • Blast radius: OMI_IOS_SWIFTUI defaults to false, so shipped behavior is unchanged until the flag is enabled; the classic surfaces remain in place.
  • AGENTS.md: the Native Bridge pointer to docs/ios-native-ui.md and the reworded hermetic-test rule are accurate and match the code (guide exists, flag documented as default-off).

USER IMPACT: none by default — the native SwiftUI presentation stays behind the off-by-default OMI_IOS_SWIFTUI flag; users see no change until Omi opts in.

What I'd still want: (1) merge current main and resolve the seven conflicts, (2) a CI run on the new head that actually executes the two macOS contract checks, (3) human product/security sign-off on the sensitive native surfaces before merge.


by AI on behalf of David — if you need David's attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level
Git-on-my-level dismissed their stale review October 21, 2026 22:06

Dismissed as stale: the blocking concern (product-file-line-count-ratchet on action_items_page.dart, chat/page.dart, plans_sheet.dart) is resolved on the current head via part-file extraction; current follow-up concerns are different issues (merge conflicts with main, missing CI on head).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Maintainer-granted: run full CI on this fork PR ios needs-maintainer-review Needs a human maintainer to sign off before merge needs-tests PR introduces logic that should be covered by tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants