Skip to content

refactor(ui): drop pre-July-2026 storage migrations - #163083

Merged
steipete merged 2 commits into
mainfrom
deslop/l291-migrations-ui-runtime-20261001
Oct 2, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l291-migrations-ui-runtime-20261001

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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 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 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 04fbf17: 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) 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 #162874's still-current head dda3f8258915c215083578eb6a46dc4b95c6d9ae, 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.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:21 PM ET / October 2, 2026, 02:21 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: 9cb07ff20bd9ce75dbdecfe4733c096c44f159af

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup with supported-release source checks, meaningful upgrade coverage, and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The captured member-author classification exempts ordinary contributor runtime proof. Independently, shipped July writers match the retained settings contract, and the reported owner-boundary fixture runs cover upgrade and round-trip behavior; no browser execution was performed in this review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The captured member-author classification exempts ordinary contributor runtime proof. Independently, shipped July writers match the retained settings contract, and the reported owner-boundary fixture runs cover upgrade and round-trip behavior; no browser execution was performed in this review.
Evidence reviewed 8 items Pinned introduced change: The introduced delta removes the scalar session fallback and token-triggered rewrite, while retaining scoped selection, session-only credential loading, and the sidebar migration. Current main still contains the removed paths.
Shipped July settings contract: Inspected v2026.7.1 settings source: its writer persists sessionsByGateway and sidebarPinnedRoutes, omits durable tokens, and stores credentials separately. The tag resolves to the recorded commit.
Extended-stable compatibility: The September-dated v2026.7.35 writer also persists sessionsByGateway and sidebarPinnedRoutes without durable tokens. Retaining the sidebar upgrade therefore protects an actual supported shipped shape.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -9, Tests +4, Docs +2. Total -3 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 12 -9
Tests 1 33 29 +4
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 38 41 -3

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is bounded retirement of obsolete browser-settings compatibility code, with no supported-workflow defect established.
  • merge-risk: 🚨 compatibility: The intentional July cutoff drops older remembered selections and automatic legacy-token cleanup; supported shipped writers and retained migrations were checked.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The captured member-author classification exempts ordinary contributor runtime proof. Independently, shipped July writers match the retained settings contract, and the reported owner-boundary fixture runs cover upgrade and round-trip behavior; no browser execution was performed in this review.

Evidence

What I checked:

  • Pinned introduced change: The introduced delta removes the scalar session fallback and token-triggered rewrite, while retaining scoped selection, session-only credential loading, and the sidebar migration. Current main still contains the removed paths. (ui/src/app/settings.ts:347, 9cb07ff20bd9)
  • Shipped July settings contract: Inspected v2026.7.1 settings source: its writer persists sessionsByGateway and sidebarPinnedRoutes, omits durable tokens, and stores credentials separately. The tag resolves to the recorded commit. (ui/src/app/settings.ts, 2d2ddc43d0dc)
  • Extended-stable compatibility: The September-dated v2026.7.35 writer also persists sessionsByGateway and sidebarPinnedRoutes without durable tokens. Retaining the sidebar upgrade therefore protects an actual supported shipped shape. (ui/src/app/settings.ts:653, aa94808cb056)
  • Upgrade coverage: The replacement table-driven test exercises scoped session selection, retained appearance preferences, optional July sidebar migration, persistence, and reload. The captured body reports 33 passing settings/preference tests on a pinned Testbox candidate; this reviewer did not execute tests. (ui/src/app/settings.node.test.ts:331, 9cb07ff20bd9)
  • Intentional compatibility cutoff: The captured member-authored PR explicitly adopts the July-and-later migration window and acknowledges session reselection for older browser state. Existing update documentation separately directs pre-July installations through the 2026.9.5 bridge. The accepted limitation is retained as compatibility context, rather than requesting the same direction again. Public docs: docs/install/updating.md. (docs/install/updating.md:30, 9cb07ff20bd9)
  • Settings feature history: GitHub commit inspection verifies the earlier scoped-session writer change and its author account, sallyom. This supplies historical routing context beyond the proposed branch. (ui/src/ui/storage.ts, d37e3d582fd8)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • sallyom: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-01T23:31:21.355Z sha 7366eae :: needs maintainer review before merge. :: none
  • reviewed 2026-10-01T23:47:32.514Z sha 7366eae :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 58cd679 into main Oct 2, 2026
77 checks passed
@steipete
steipete deleted the deslop/l291-migrations-ui-runtime-20261001 branch October 2, 2026 02:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant