Repository navigation
Conversation
ubuntu-latest is rolling to ubuntu-26.04, whose default JDK 25 makes Gradle fail with "Unsupported class file major version 69" (#24737 run 42207263552, twice). The emulator job already pins temurin 21; the compile smoke and JVM unit test jobs relied on the runner default.
|
Superseded by 5503c2d on main (same Java 21 pin). |
|
Hey @kodjima33 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
## What changed and why Mobile could restore a confirmed deletion from cached conversation history after reopening. It also restored failed deletes without telling the user why the conversation returned. Clear only the confirmed row from the current and legacy caches, and show a failure when the delete is refused. Queue the failure message behind any active Undo prompt. Confirmed deletions also remove the row and its processing cards from other open lists and fence stale writes from separate providers. Persist the confirmed ID for its account before rewriting either cache. A restart during eviction or after a failed write leaves the marker in place. Successful eviction clears the marker after both snapshots have been saved. The Java 21 pin from #24785 cleared both Android failures in the combined run. Main then landed the equivalent pin in 5503c2d. This branch takes the workflow from main, with no workflow changes in the final diff. The workflow passed actionlint and the four local mobile CI infrastructure tests. The final revision passed 194 focused Flutter tests, including the latest Home row and linked-task filters and a regression for late live updates during Undo and an in-flight delete. A refused request still reports failure after navigation. Late merge completion retires the sources without publishing a deleted target. A stale full page excludes confirmed deletions from its storage cursor, and an in-flight next-page request retries at the corrected offset. A simulated interruption before the cache rewrite completes verifies that the durable marker hides only the deleted row after restart. A completed request from an earlier sign-in session cannot alter the replacement session cache, even when the UID matches. Refs #24719. This covers the reproduced mobile conversation paths. The reported account traces and the separate desktop, memory, task and recording-storage paths still need investigation. ## Product invariants affected none ## How it was verified - The two new provider and widget regressions failed on main at `579400fdf6`: two confirmed rows returned from cache, and a refused delete restored its row without an error. - 101 focused Flutter tests passed, including concurrent deletes, offline cache restoration, legacy snapshots, Undo, and account-switch isolation. Flutter analysis and local preflight passed. - An iPhone 16 Pro simulator on iOS 26.5 exercised the shared delete UI and real mobile HTTP client against a local fixture. A 409 restored the selected row and showed the error. A manual retry received 204. Reopening the provider with the fixture stopped kept the unrelated conversation and omitted the deleted one. - Two additional cache regressions cover false-returning and throwing storage writes. Both cache formats stay filtered on restart, unrelated rows remain, and the fallback does not apply to a different account. A second-provider regression verifies that an older Home response cannot restore a row deleted by the day view. An additional processing regression covers real and optimistic cards, unrelated work and late updates. Two route-lifetime cases verify that a confirmed response still evicts after navigation and cannot affect a replacement session. The expanded focused run passed all 123 tests. - On the updated iPhone 16 Pro simulator build, an older response from a second provider and a forced preference write failure both followed the successful retry. Both live lists excluded the deleted row and a fresh offline reopen kept only the unrelated row. Both simulator cases passed again on the updated revision, including removal of matching processing cards, late processing events, and a delayed confirmation after the owning route was disposed. The final simulator run also injected a stale live update during Undo and confirmed the selected row stayed hidden until the server response. The latest simulator run passed three scenarios, including both confirmation and refusal after leaving the route. ## Tests `conversation_pending_delete_test.dart` exercises two confirmed deletes and a fresh provider reopening from disk. `conversation_hub_actions_test.dart` verifies the error after the initiating control has unmounted. `conversation_cache_background_decode_test.dart` verifies both cache formats are cleaned off the UI isolate. ## UI evidence iPhone 16 Pro simulator with two synthetic rows. The shared delete flow restores the selected row and shows its error after a 409 refusal.  ## Failure class (fixes) Failure-Class: none Line-Count-Exception: app/lib/backend/preferences.dart | 1661 -> 1757 | Eviction shares the existing preference cache generation and account guards so older or legacy cache writes cannot restore the deleted row. Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2279 -> 2349 | The shared delete lifecycle owns Undo, failure feedback and serialization with existing cache and merge writes.
Summary
ubuntu-latestis moving to the ubuntu-26.04 image. Its default JDK is 25, and Gradle fails withUnsupported class file major version 69. Android Compile Smoke and Android JVM Unit Tests relied on the runner default; the emulator job already pins temurin 21. This pins 21 in both.Evidence: #24737 failed both jobs twice on
Image: ubuntu-26.04(run 42207263552, attempts 1 and 2) while Android Emulator Acceptance passed on the same run. Main's nightly passed at 04:44 UTC onImage: ubuntu-24.04.Verification
actionlintclean,test_mobile_ci_infra_guards.pypasses.UI-Evidence: none
Product invariants affected
none
🤖 Generated with Claude Code