Skip to content

refactor(ui): complete native background read and action presentation - #179536

Merged
steipete merged 8 commits into
mainfrom
solid2/w-s2-background-native
Oct 22, 2026
Merged

steipete merged 8 commits into
mainfrom
solid2/w-s2-background-native

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Family Files base→head Production LOC base→head 1 2 3 reads C/E/U/N 4 commands C/E/U/N 5 6 7 8 9 10
Agents editor / non-memory 25→25 5,803→5,803 0→0 0→0 4C/0E/0U/8N→4C/0E/0U/8N 4C/0E/0U/3N→4C/0E/0U/3N 0→0 0→0 0→0 0→0 0→0 0→0
Agents memory 12→12 2,888→2,888 0→0 0→0 0C/0E/0U/5N→0C/0E/0U/5N 0C/1E/0U/2N→0C/1E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config Appearance / shared 14→14 4,116→4,261 0→0 0→0 2C/1E/0U/5N→0C/1E/0U/7N 3C/1E/0U/1N→2C/1E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config other 34→34 5,602→5,602 0→0 0→0 2C/0E/0U/2N→2C/0E/0U/2N 2C/1E/0U/2N→2C/1E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config health 3→3 1,352→1,352 0→0 0→0 1C/0E/0U/0N→1C/0E/0U/0N 0C/0E/0U/1N→0C/0E/0U/1N 0→0 0→0 0→0 0→0 0→0 0→0
Config memory 5→5 1,319→1,319 0→0 0→0 0C/1E/0U/1N→0C/1E/0U/1N 2C/0E/0U/0N→2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0
Config Talk 4→4 1,471→1,471 0→0 0→0 1C/0E/0U/2N→1C/0E/0U/2N 2C/0E/0U/0N→2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0
Sessions 22→22 4,103→4,103 0→0 0→0 1C/0E/0U/3N→1C/0E/0U/3N 8C/0E/0U/0N→8C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0
Total 119→119 26,654→26,799 0→0 0→0 11C/2E/0U/26N→9C/2E/0U/28N 21C/3E/0U/9N→20C/3E/0U/10N 0→0 0→0 0→0 0→0 0→0 0→0

Actual PR base 0b1ded5be89586a95f8ef277ebef2ddbe510a719; committed head 30f9bd534950200f58ed4a95d191107243afa76d. C/E/U/N means candidate / named exception / unresolved / native. This branch predates later lane merges. Metadata, thumbnail and upload/remove are exactly three existing groups;32→29 candidates on the real base.

Touched production:3files888→1033 (+145). Tests:1file353→778 (+425).

Latest qualified main 955669d6914 is scope-identical to merged Open Config 7e3f3a4: 121 production files, 27,072 LOC, and 19 candidates. Applying this exact production delta would leave 16 candidates (6 reads and 10 commands), at 27,217 LOC. This is a projection, not landed credit. Items 1, 2, and 5–10 have no eligible survivors.

What Problem This Solves

Background upload/removal and metadata/thumbnail readiness previously kept their presentation in manual status state. This completes the Background family with Solid 2 actions and async boundaries while preserving its existing owner.

User Impact

The same controls show upload/removal progress, validation, failure, and retry feedback. Metadata and thumbnail failures retain their priority over upload success. Changing profile, selecting a local background, or leaving the page retires presentation without publishing a stale result.

Why This Change Was Made

The plain owner keeps request admission, cancellation, compare-and-set revisions, file validation, cache publication, and image URL lifetime. Page-lifetime async memos consume its read receipts under Loading and Errored. A generator action co-writes the optimistic saving flag and consumes the admitted upload/removal completion. There is no predictable replacement image to invent optimistically and no second server snapshot to refresh. Existing lazy boundaries, hosts, classes, selectors, and visible copy stay unchanged.

Evidence

Proof Current result
UI typecheck Passed on the complete candidate
Focused Chromium browser file 24/24 passed; one file, one worker
Scoped lint / formatting Passed on all four changed files; fixture correction also passes its focused lint
Test type graph Core UI pages passed after explicitly typing fixture capabilities; runtime behavior unchanged
Independent review Scoped-clean P0–P2 for the production change and fixture correction; author and second reader inspected the complete production change
Production Knip Exact base and final head exit1 with byte-identical output:13 unused heartbeat files, no UI findings; SHA2560ec893790beb14caa4f097a177380749978d9ebed28d7a75700fd3df1a7af3fd
Production build / startup, route, locale budgets Passed on exact base0b1 and head30f9: startup316,082→316,072 B (−10), chat1,435,899→1,435,881 B (−18), new1,014,153→1,014,123 B (−30). Startup CSS40,894 B /1 request unchanged. All 42 locale asset comparisons are within the 64 B rule (largest increase 3 B). Strict checker reports no warnings or violations.
Screenshots Five states on each exact side: pending upload, upload failure, retry, saved background, and file validation. All ten full frames inspected; synthetic only. Final-head capture completed with zero page errors.
Full CI Replacement-head 39735208982 passed: all 65 jobs terminal, 38 success and 27 skipped, including all 14 UI unit/E2E/real-Gateway jobs and the corrected fixture type leaf. Prior-head 39732764318 passed every UI/E2E/real-Gateway job; its only failing leaf was the corrected test-fixture type error.

The previous head 7f76175 failed full CI39728687575 only in src/components/app-sidebar-rail-menus.browser.test.ts > navigation rail menus > opens all three menus beside the rail and restores their real trigger on Escape. The menu remained open after Escape. Exact-base and head replays passed; the latest qualified scheduled main39728678350 also passed that exact test. A dedicated bounded investigation ran20 further base diagnostics without reproducing it. None of these passing replays establishes inheritance or fixes the original failure; no inherited waiver is claimed. This head completes the substantive Background read migration and is assessed on its own CI.

Production LOC: 888→1,033 (+145) across three files. Tests: 353→778 (+425) in one file. The additional code makes completion and retirement explicit and covers held reads, uploads, rejected/retried writes, replacement profiles, navigation, and image URL cleanup. No dependency changes. No Vitest runtime override; the targeted browser project uses Chromium. An earlier malformed test invocation on the prior head was stopped before completion and supplies no passing proof.

The paired build qualification checked all 3,280 consumed source inputs per side against Git, all 10 identical fixture inputs, and all 7,002 publication files per side. The only changed build inputs are the three production files in this PR. The capture server served the sealed index and module entry. Both builds use the same Node24.22.1 toolchain, synthetic extension fixture, and deterministic build identity. The stricter 325,000 B startup ceiling and 64 B over-cap no-growth rule are met.

Screenshots

1440×1000, dark theme, synthetic data. Each pair preserves the same visible state.

State Before After
Pending upload Before: Pending upload After: Pending upload
Upload failure Before: Upload failure After: Upload failure
Retry Before: Retry After: Retry
Saved background Before: Saved background After: Saved background
File validation Before: File validation After: File validation

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T06:22:23.685764Z fc0df8c New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves background-image command feedback into native Solid actions and boundaries while preserving synchronous write ownership.

Example: Switch from background-demo to replacement-demo, start an upload, then update replacement-demo’s display name while metadata is pending.

  • Before: Retained metadata from the previous profile can incorrectly retire the current upload’s busy state.
  • After: The obsolete metadata is cleared, and the current upload keeps its progress state until completion.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, visually demonstrated refactor with distinct regression coverage and no identified introduced defect; broader current-head validation remains unresolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected synthetic screenshots exercise the browser Appearance page through pending, rejected, saved, retry-pending, and validation states; the corrected captures show Preparing replacing the prior error and validation feedback remaining visible, supported by focused lifecycle regressions.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Background upload feedback must remain accurate across retries and profile changes without losing mounted controls.
Reason: The maintainer-authored direction follows the established Solid migration and preserves the original private-background contract while correcting concrete presentation lifetimes.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-directed refactor open. No actionable introduced defect was found, but current-head CI remains blocked by E2E failures whose causes are not established.

Priority: P3
Reviewed head: 0fe5658bb71a3acdc15948e5df95158ff91dfce7

Before merge

None.

Findings

None.

Agent review details

How this fits together

Appearance settings pass image selections to the existing profile-scoped mutation owner, which validates files, reads compare-and-set prerequisites, calls Gateway upload or removal methods, and adopts the authoritative response; Solid presents progress and outcomes.

flowchart LR
  A[Appearance controls] --> B[Synchronous mutation owner]
  B --> C[Gateway background RPCs]
  C --> D[Authoritative result adoption]
  B --> E[Retirable completion receipt]
  E --> F[Solid action and status boundary]
  F --> A
Loading

Technical review

Best possible solution:

Retain the focused action presentation change and clear or independently attribute the current-head E2E failures before landing.

Do we have a high-confidence way to reproduce the issue?

Source establishes how obsolete profile metadata can retire a replacement profile’s upload on a later identity notification; the added browser case and reported red-to-green result cover that path, but this review ran no target code.

Is this the best way to solve the issue?

The change uses the existing write owner and confines Solid actions to presentation; keyed receipts and retirement settlement address the demonstrated retry and profile-lifetime failures without a competing mutation owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f2c7e8dd3370.

Provenance checked

  • Synchronous mutation admission and scoped lifecycle keeps the original intent (1b1283f: Replace controller classes with scoped Solid factories while retaining synchronous request admission, mutation decisions, and resource custody.)
  • Private background mutation and preference ownership keeps the original intent (afafe74: Provide private per-profile artwork with authoritative preference ownership, atomic comparisons, and current-identity checks.)
  • Settings renderer and view contracts keeps the original intent (b8d31e9: Move configuration pages to Solid while preserving host tags, controls, routes, and mutation owners; later contract sharing derives view types from their producer.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +72, Tests +194. Total +266 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 125 53 +72
Tests 1 196 2 +194
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 321 55 +266

Review metrics

Metric Value Why it matters
Production versus test growth Production +125/-53 (net +72); tests +196/-2 (net +194) The growth provides retirable command receipts, native presentation boundaries, and four distinct lifecycle regressions; no unnecessary production layer or duplicate test group was identified.

Labels

Label changes:

  • add P3: This is a focused maintainer-directed UI refactor with bounded progress-state corrections and no established urgent user regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused maintainer-directed UI refactor with bounded progress-state corrections and no established urgent user regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 11:51 AM ET / 15:51 UTC.

@steipete steipete changed the title refactor(ui): use native actions for background image changes refactor(ui): complete native background read and action presentation Oct 22, 2026
@steipete
steipete merged commit fc43063 into main Oct 22, 2026
112 of 114 checks passed
@steipete
steipete deleted the solid2/w-s2-background-native branch October 22, 2026 07:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…openclaw#179536)

* refactor(ui): use native actions for background image changes

* fix(ui): preserve background status ownership on retry

* refactor(ui): complete background async read presentation

* test(ui): type background application context fixture
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 ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:feature Preliminary submission classification; full source review pending. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant