Repository navigation
fix(ios): persist voice notes through offline delivery - #101236
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:20 PM ET / 00:20 UTC. Summary PR surface: Other +1222. Total +1222 across 19 files. Reproducibility: Source-reproducible, not locally executed: current main only queues text-only drafts offline and leaves attachments on the live path, so attachment bytes have no durable replay owner on offline or ambiguous delivery. I did not run the iOS simulator in this read-only review. Review metrics: 3 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the existing durable-outbox approach only after maintainer acceptance of the v6 outbox schema/offline attachment scope and exact-head checks, keeping the older-gateway live-send fallback intact. Do we have a high-confidence way to reproduce the issue? Source-reproducible, not locally executed: current main only queues text-only drafts offline and leaves attachments on the live path, so attachment bytes have no durable replay owner on offline or ambiguous delivery. I did not run the iOS simulator in this read-only review. Is this the best way to solve the issue? Yes, with maintainer acceptance: using the existing per-gateway SQLite outbox is the right owner boundary for durable replay, and the PR preserves the older-gateway live attachment fallback. The main open choice is whether the durable attachment scope should land broadly now or be narrowed to voice notes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4c97aa131195. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Other +1222. Total +1222 across 19 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dfb7960354
ℹ️ 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".
|
|
||
| ### Fixes | ||
|
|
||
| - **iOS voice-note durability:** persist queued recordings and their routing identity through disconnects, app recreation, and canonical-history reconciliation while preventing duplicate staging and overlapping microphone owners. (#100709) |
There was a problem hiding this comment.
Remove the manual changelog entry
For normal fix/feat work, root AGENTS.md says CHANGELOG.md is release-only and release generation owns it; adding this Unreleased entry can leave duplicate or stale release notes once the release generator derives entries from merged PRs/direct commits. Please remove this line and keep the release-note context in the PR body or squash message instead.
Useful? React with 👍 / 👎.
|
Land-ready. Exact head: Proof:
Known proof gap: Linux Testbox cannot execute Apple-framework Swift or iOS simulator tests, so those focused and live checks ran locally on macOS; hosted |
|
Merged via squash.
|
* fix(ios): persist voice note delivery state * fix(ios): pin chats during attachment staging * fix(ios): keep voice notes on captured chat * fix(ios): keep voice notes durable through staging * fix(ios): harden voice note lifecycle * test(ios): satisfy strict concurrency in voice note proof * fix(ios): keep legacy attachment sends live * fix(ios): retain legacy drafts during outbox restore * fix(ios): pin voice note recipient presentation * fix(ios): preserve confirmed voice note duration * chore(i18n): refresh voice note source inventory * chore: leave release notes to release automation
What Problem This Solves
The iOS voice-note composer added in #100946 could lose its only attachment bytes after staging, an ambiguous send, app recreation, or an offline send. It could also retarget an in-progress recording when the selected chat changed, and microphone ownership could overlap with Talk or push-to-talk.
Relates to #100709 and follows up #100946.
Why This Change Was Made
User Impact
Voice notes can be recorded and sent while offline, survive reconnects and app recreation, and deliver once without changing chats or disappearing after an uncertain network result. Healthy older Gateways continue to send attachments live; durable offline replay requires a Gateway with the routing-contract capability.
Evidence
swift test --filter 'VoiceNoteRecorderTests|ChatViewModelAttachmentTests|ChatTranscriptCacheStoreTests': 66 tests passed.xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -configuration Debug -destination 'platform=iOS Simulator,id=F8D0EA37-7040-4FA7-8CFA-BA8841C68E1A' -derivedDataPath build/DerivedData test -only-testing:OpenClawTests/NodeAppModelInvokeTests: 114 tests passed; signed simulator app, Watch app, widget, share extension, and shared packages built successfully.xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -configuration Debug -destination 'platform=iOS Simulator,id=F8D0EA37-7040-4FA7-8CFA-BA8841C68E1A' -derivedDataPath build/DerivedData test -only-testing:OpenClawTests/GatewayStatusBuilderTests -only-testing:OpenClawTests/RootTabsPresentationTests: 53 tests passed.node --import tsx scripts/native-app-i18n.ts check: 2,819 entries, unchanged.git diff --check: clean.chat.send; the queued label cleared and one canonical 0:19 voice-note row remained.