Repository navigation
refactor(ui): drop pre-July-2026 storage migrations - #163083
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed October 1, 2026, 10:21 PM ET / October 2, 2026, 02:21 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Control UI stops migrating pre-July remembered session selections and cleaning legacy durable tokens, documents the cutoff, and updates supported-upgrade tests. Merge readiness✅ Ready for maintainer review The cleanup remains useful and is not implemented on the pinned main revision. No actionable patch defect was found; supported July settings retain their upgrade path. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI settings owner reads browser preferences and remembered sessions at startup. It supplies the selected Gateway and session to the application while loading credentials separately from session storage. flowchart TD
A[Browser preferences] --> B[Settings reader]
B --> C[Per-Gateway session selection]
C --> D[Application startup]
E[Session storage credentials] --> D
B --> F[Supported sidebar migration]
F --> G[Settings writer]
G --> A
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -9, Tests +4, Docs +2. Total -3 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one settings owner with supported scoped-session reads and the retained July sidebar migration, while documenting recovery for retired browser selections. Do we have a high-confidence way to reproduce the issue? Not applicable: this retires compatibility paths rather than fixing a reported defect; their before/after behavior is clear from the introduced diff. Is this the best way to solve the issue? Yes: removing the two obsolete reads at the existing settings owner preserves the supported writer contract and avoids introducing another migration mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d938be7b8f4f. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
## What Problem This Solves The Control UI still reads top-level session selections and rewrites durable shared-token settings produced before the supported July 2026 upgrade window. ## User Impact Upgrades from pre-July-2026 versions are no longer migrated: top-level remembered session selections and durable-token settings cleanup. Users with those unsupported selections can select their session again; conversations remain on the Gateway. Current shared credentials stay in session storage and are never restored from durable settings. ## Why This Change Was Made This implements the maintainer's July-and-later migration policy at the settings owner. The scalar session writer was replaced by `sessionsByGateway` in e981fb5, first shipped in v2026.3.22 (March 23); v2026.3.13-1 was the last prior tagged writer. Durable token writes were removed by 3d59297, first shipped in v2026.3.7 (March 8); v2026.3.2 still wrote them. Actual v2026.7.1-beta.1, v2026.7.1, and v2026.7.35 source writes `sessionsByGateway` and omits durable tokens. The July sidebar-pins upgrader, device-token import, and chat-outbox/group migrations remain: supported releases still produced those shapes. The September-published v2026.7.35 still writes outbox v1 and browser-local groups, so main's earlier cutovers are insufficient evidence for deleting them. Net production reduction: 9 lines. The obsolete migration test is removed, and the existing settings-upgrade test now exercises representative July beta/stable persisted shapes. No protocol, schema, SDK, or rendered appearance changes. ## Evidence - Isolated Codex AutoReview: no actionable P0–P2 findings. - Blacksmith Testbox, pinned source and edited-file hashes: settings and preference suites passed, 33 tests, 1.60 s total Vitest duration; July beta/stable fixtures load, migrate pinned routes where present, and round-trip. - Both import-cycle checks: 0 cycles. - `check-changed` against pinned base 5729541: passed, including UI types, eight affected test-type graphs, lint, i18n, and dead-export checks. - Doctor legacy-config and migration suites: both passed (32.03 s across the two Vitest shards, including cold worker preparation). - `git diff --check`: clean. The repository wrapper's source staging hit local ENOSPC before upload. Native Blacksmith sync on the same owned lease verified the exact base and file hashes and ran the proof remotely. An initial changed-check invocation used the remote's newer `origin/main` and included inverse sibling changes; the corrected invocation pins this branch's actual base. Hosted CI on head `7366eaed49bcc5f3e9750418180795bdc7355179`: [checks-ui (1/3)](https://github.com/openclaw/openclaw/actions/runs/36940168750/job/110629901361) passed 8,023 tests but failed `UsagePage detail requests > releases a loaded overview when its Gateway identity is replaced`: `expected OverviewPayload to be undefined`. Fail-fast cancelled the remaining run. The same failure is independently verified on unrelated PR openclaw#162874's still-current head `dda3f8258915c215083578eb6a46dc4b95c6d9ae`, [run 36898732505](https://github.com/openclaw/openclaw/actions/runs/36898732505/job/110492893649); its Usage test and page blobs match this head. Existing repair openclaw#163018 owns it; this PR does not duplicate that fix. The failing synthetic lifecycle does not call settings readers and does not mount its dormant sidebar loader. A conservative graph including that dynamic loader still reaches settings, so no unconditional import-disjointness or admin exception is claimed. Hosted CI remains failed/pending acceptance, not green.
What Problem This Solves
The Control UI still reads top-level session selections and rewrites durable shared-token settings produced before the supported July 2026 upgrade window.
User Impact
Upgrades from pre-July-2026 versions are no longer migrated: top-level remembered session selections and durable-token settings cleanup. Users with those unsupported selections can select their session again; conversations remain on the Gateway. Current shared credentials stay in session storage and are never restored from durable settings.
Why This Change Was Made
This implements the maintainer's July-and-later migration policy at the settings owner. The scalar session writer was replaced by
sessionsByGatewayin d37e3d5, first shipped in v2026.3.22 (March 23); v2026.3.13-1 was the last prior tagged writer. Durable token writes were removed by 10d0e3f, first shipped in v2026.3.7 (March 8); v2026.3.2 still wrote them.Actual v2026.7.1-beta.1, v2026.7.1, and v2026.7.35 source writes
sessionsByGatewayand omits durable tokens. The July sidebar-pins upgrader, device-token import, and chat-outbox/group migrations remain: supported releases still produced those shapes. The September-published v2026.7.35 still writes outbox v1 and browser-local groups, so main's earlier cutovers are insufficient evidence for deleting them.Net production reduction: 9 lines. The obsolete migration test is removed, and the existing settings-upgrade test now exercises representative July beta/stable persisted shapes. No protocol, schema, SDK, or rendered appearance changes.
Evidence
check-changedagainst pinned base 04fbf17: passed, including UI types, eight affected test-type graphs, lint, i18n, and dead-export checks.git diff --check: clean.The repository wrapper's source staging hit local ENOSPC before upload. Native Blacksmith sync on the same owned lease verified the exact base and file hashes and ran the proof remotely. An initial changed-check invocation used the remote's newer
origin/mainand included inverse sibling changes; the corrected invocation pins this branch's actual base.Hosted CI on head
7366eaed49bcc5f3e9750418180795bdc7355179: checks-ui (1/3) passed 8,023 tests but failedUsagePage detail requests > releases a loaded overview when its Gateway identity is replaced:expected OverviewPayload to be undefined. Fail-fast cancelled the remaining run. The same failure is independently verified on unrelated PR #162874's still-current headdda3f8258915c215083578eb6a46dc4b95c6d9ae, run 36898732505; its Usage test and page blobs match this head. Existing repair #163018 owns it; this PR does not duplicate that fix.The failing synthetic lifecycle does not call settings readers and does not mount its dormant sidebar loader. A conservative graph including that dynamic loader still reaches settings, so no unconditional import-disjointness or admin exception is claimed. Hosted CI remains failed/pending acceptance, not green.