Repository navigation
refactor(ui): complete native background read and action presentation - #179536
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAppearance 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +72, Tests +194. Total +266 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 11:51 AM ET / 15:51 UTC. |
|
Merged via squash.
|
…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
Actual PR base
0b1ded5be89586a95f8ef277ebef2ddbe510a719; committed head30f9bd534950200f58ed4a95d191107243afa76d. 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
955669d6914is scope-identical to merged Open Config7e3f3a4: 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
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.