Repository navigation
refactor(apps): drop pre-July-2026 app migrations - #163002
Conversation
Retire the old discovery preference, UserDefaults Gateway and TLS storage, and push registration scope defaults whose last shipped writers predate July 2026. Retain supported July Keychain, credential, and SQLite migrations.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: blocked before merge. Reviewed October 1, 2026, 9:07 PM ET / October 2, 2026, 01:07 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch removes pre-July Apple app storage imports, retains supported Keychain migrations, documents recovery, and synchronizes an Android chat test with completed sends. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this maintainer-directed cleanup remains useful and has no concrete introduced correctness finding, but supported iOS upgrade compatibility still lacks execution evidence. Priority: P3 Review scores
Verification
How this fits togetherNative app storage restores Gateway selections, certificate trust, and push registrations when the apps start or reconnect. These stored records feed connection setup and push registration. flowchart TD
A[Stored app preferences] --> B[Gateway settings importer]
C[Keychain certificate pins] --> D[TLS trust store]
E[Stored push registration] --> F[Scoped registration reader]
B --> G[Gateway connection]
D --> G
F --> H[Reuse or refresh push registration]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +22, Docs +1, Other -147. Total -124 across 13 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the approved July cutoff and canonical storage owners, with observed fresh-state and supported-upgrade results before landing. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR retires obsolete imports under an established support cutoff; source review found no concrete introduced bug. Is this the best way to solve the issue? Yes, the removal is narrow and retains the supported storage paths; its upgrade-safety claim still needs iOS storage-owner execution evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b5ff8c0b7bb. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
* refactor(apps): drop pre-July-2026 app migrations Retire the old discovery preference, UserDefaults Gateway and TLS storage, and push registration scope defaults whose last shipped writers predate July 2026. Retain supported July Keychain, credential, and SQLite migrations. * test(android): await composer send settlement
The short-viewport test waited one second for chat.send request entry even though Room and send admission resume outside Compose's dispatcher. Reuse the finite send-job/composer-state idling resource from the Details input tests, retaining exact message/count, same-frame IME, selection, layout, and cleared-editor assertions. Also require normal send completion. This follows the synchronization fix documented in #163002. No production code or timeout setting changes. Validation: ChatComposerLayoutTest, 113 passed with no skips; Kotlin compilation; app ktlintCheck; P2 autoreview clean.
The short-viewport test waited one second for chat.send request entry even though Room and send admission resume outside Compose's dispatcher. Reuse the finite send-job/composer-state idling resource from the Details input tests, retaining exact message/count, same-frame IME, selection, layout, and cleared-editor assertions. Also require normal send completion. This follows the synchronization fix documented in openclaw#163002. No production code or timeout setting changes. Validation: ChatComposerLayoutTest, 113 passed with no skips; Kotlin compilation; app ktlintCheck; P2 autoreview clean.
What Problem This Solves
Native apps still import storage formats whose last shipped writers predate the maintainer-approved July 1, 2026 upgrade support window.
User Impact
Upgrades from pre-July-2026 versions are no longer migrated from the old macOS discovery preference, Apple UserDefaults TLS pins, iOS UserDefaults last-Gateway record, or iOS push registrations missing relay scope. Users with only those unsupported preferences can select/reconnect their Gateway and establish trust again; push registration uses the existing cache-miss registration flow.
July+ Keychain Gateway settings and TLS pins still migrate. All native SQLite upgrade/import steps remain, as do Android migrations: their inputs were produced by supported releases or their last shipped producer could not be established. No plugin SDK surface or new setting is involved.
Why This Change Was Made
This implements Peter's October 1 maintainer direction: “our migration policy currently is July+ only. older code drop.” It removes the obsolete readers, cleanup branches, decoder projection, and their test scaffolding while retaining one canonical current storage path and all in-window migration owners.
bridge.preferredStableIDv2026.1.16-2, January 172f8206862a6, January 19;v2026.1.20, January 21ai.openclaw.shared/gateway.tls.*UserDefaults pinsv2026.3.2, March 3ec0eb9f8c35, March 3;v2026.3.7, March 8gateway.last.*UserDefaults recordv2026.3.2, March 3v2026.6.10, June 24e08ef9f8933, June 22;v2026.6.11-beta.1, published June 24 at 23:37 UTCRelease dates were checked through GitHub releases and writers inspected at the tags, including later tags lacking each cutover. The earliest July release (
v2026.7.1-beta.1, published July 2) still writes raw Keychain pins and KeychainlastConnection; both imports remain. July Room/shared-client database schemas and later device-identity/auth, Watch, port, receipt and service migrations remain supported.Evidence
4087d0ad87b2fc8425bc6729536147fbac3cfcf1: passed, including macOS app/shared packages, Android Play/third-party/Wear, iOS smoke andopenclaw/ci-gate. The separate focused iOS upgrade execution gap below remains open; the smoke job does not run those suites.git diff --check: passed for the changed files.lastConnectioninto the registry. Added small fixtures for the July discovery key and July push-registration Codable shape.run_f128facaec3c2e7a5655761c80edc230: both cycle checks 0;node scripts/check-changed.mjspassed; focused Doctor state/legacy-config/automatic-migration suites 108 tests passed (65.40 seconds including runner). The complete remote payload passed in 370.14 seconds after source verification and frozen dependency installation. Platform-dependent macOS script cases correctly skipped on Linux; native SwiftLint remains CI-owned.0ae72a146739f85dbdb412f9c15dca751d2233bd: macOS app suites 2,481 tests passed (2,468 main + 2 rendered + 11 named-profile); shared OpenClawKit 2,000 tests passed, including retained TLS migration fixtures; iOS smoke build/test-bundle compilation passed. The only later change is the Android test fixture below. Native suite costs: macOS 257.497s + 8.318s + 16.101s; shared package 40.264s.run_5faf4dc902d08d7325a59815d23d7d7evalidated the Android fixture: 21 repetitions × 3 cases passed, then the entireChatComposerLayoutTestclass passed. Warm repetitions took 17–18s wall (about 7.0–7.2s test time); full-class Gradle run took 49s. Both cycle checks again reported 0 andcheck-changedpassed.run_9239552ef62be8267bb820188f46e797: deliberately allowing input while Details was open failed the intended “Details must not permit hidden draft edits” assertion. The synchronized fixture still detects the behavioral regression.The local requested census records every investigated DELETE/KEEP decision, including current-writer and uncertain cases. Coverage inventories are retained with explicit unread-file gaps; this is a migration-focused pass, not a claim that all native UI/runtime source was fully reviewed.
Fixes found along the way
The first CI run failed only
android-test-third-party:ChatComposerLayoutTest.detailsBlocksPhysicalTypingUntilClosedtimed out waiting one second for the post-close send at line 2069. The preceding hidden-input, retained-editor, physical typing and IME assertions passed. Room work resumes outside Compose's dispatcher; observing request entry also precedes durable send settlement and draft clearing. The fixture now registers an idling resource for the actual finite send coroutine and composer-state settlement, then checks that completion was not cancellation. All original payload/count, hidden-input/no-send and empty-editor assertions remain. No timeout increase, retry, sleep, skip or production seam was added. Nearby main runs passed that job, so no inherited-failure merge exception is claimed.