Skip to content

feat: personalize session backgrounds - #168301

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/explore-customizable-session-background-images
Oct 10, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/explore-customizable-session-background-images

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #153797

What Problem This Solves

People cannot turn off theme artwork or choose a private background independently for New Session and conversations.

User Impact

Appearance offers None, Theme, or a private image, independent placement switches, Faded / Full bleed styles, and adjustable visibility with a temporary Settings preview. The first upload appears on New Session only. Both styles protect text contrast and keep writing surfaces solid; unset preferences preserve existing theme artwork and glass.

Images follow the authenticated person, not the shared conversation. Hiding retains an image; Remove deletes it. Anonymous None/theme choices stay browser-local. Accessibility contrast settings suppress artwork.

Why This Change Was Made

The existing Appearance preferences/outbox remain authoritative. One metadata-stripped JPEG per profile lives in the existing SQLite database. Worker-backed replacement/removal and preference selection commit atomically with exact compare-and-set guards; private reads revalidate current identity and permissions after asynchronous work. No originals/history, external image URLs, new dependency, or schema-version bump.

Uploads accept static JPEG/PNG/WebP up to 8 MiB/25 MP and retain at most 2560 px/2 MiB. A static decoration preserves transparent reading surfaces; Faded ends smoothly at the composer without blur or per-frame JavaScript.

Startup tradeoff: the explicitly authorized committed-baseline cap increases by 1,407 B (0.38%) to 374,285 B. The previously verified paired build against 3193e15 measured 374,677 B, within the unchanged 512 B growth and 64 B build-variance allowances (374,861 B enforcement limit). Request-count budgets and all other limits are unchanged. No deployment is included.

Evidence

  • Mobile inset correction and before/after: actual CI-tree red reproduction (2 failed / 42.00 s), then 21 header/mobile/artwork E2Es passed / 86.30 s. Canonical content spacing is restored while only artwork bleeds through the inset. Independent source/integration review, styles, formatting, strict test types and targeted type-aware lint pass.

  • Current head 4d6ea3d: macOS and iOS consumer builds/scans passed (native run 38039181163, 16m42s). Current-head ClawSweeper review is ready with zero findings. Hosted Control UI performance passed in 116s; mobile regression scenarios are clear.

  • CI correction: the private asset-ID schema no longer becomes an undeclared Swift model or shadows Talk string fields. Native generation red/green regression plus schema siblings: 17 passed / 17.91 s. Strict fixture, contrast-extraction and settings-target corrections preserve behavior and thresholds; 39 UI/Gateway/browser tests and 26 component tests pass, with affected test-type graphs and root test types green. Native compilation is backed by the current-head hosted consumer builds above, not a local claim.

  • Published-data compatibility proof: actual npm v2026.9.9 data survives schema 19→20 migration, first-use upload and candidate reopen with exact unrelated rows/timestamps preserved. Actual pre-feature schema-20 reader passes. The published schema-19 reader correctly refuses downgrade without modifying the database; restore the pre-upgrade backup for that downgrade.

  • Prior paired production UI performance gate passed against integrated main 3193e15c825d1a09a42c214f61c2e96b532a9f07: New Session boot +602 B, requests unchanged at 26; startup CSS +18 B. Chat boot remains within its request limit (34/35). Budget-owner regressions: 61 passed, 26.04 s wall; scoped lint clean.

  • Full production build passed in 3 min 10.8 s before the final scoped fixes. Current focused tests/types and paired UI production builds cover the deferred drain, remote URL, SQLite shutdown, final-byte authorization, and conflict integration changes; earlier build evidence remains bound to its original source.

  • All reported functional findings are repaired: cross-device retained-image invalidation, locale intent after background conflicts, remote WebSocket paths incorrectly used as HTTP image mounts, and async SQLite shutdown before the older reader. The conflict repair preserves existing main method indices before appending background RPCs. The full-feature two-pass review and subsequent independently reviewed CI corrections are clean.

  • Actual Control UI before/after captures use synthetic data and a real-normalized demo image. They were delivered in the originating chat; the before/after and Appearance screenshots are embedded in this evidence comment.

Focused test results and inherited checks

Current landing disposition: CI 38039181372 attempt 1, head 4d6ea3d, actual tested merge a7c709105a1d656957b2012179ade85871fa1e1e against baseline cdeb1e3: 109 successful, 19 skipped, 5 failed jobs, zero cancellations (11m48s). Four root jobs are independently attributed to main; the fifth is their downstream aggregate. Landing uses the native inherited-failure exception, not a claim of green CI.

  • Architecture guard 114176052258: 14 raw-SQL/identifier violations in doctor-migration-preservation.ts and openclaw-migration-witness.ts, introduced by fix(update): verify migration preservation against original backups #168321 (974443a). Both files, per-file AST detector/utilities, package/lock and workflow match actual baseline and tested merge. Parent inspected the exact rules and failing nodes: deterministic source-derived attribution, not a baseline command replay.
  • UI jobs 114176052297 and 114176052366: two hidden guest-publication controls and two Canvas/MCP pin interceptions inherited from Details. All four original failures reproduce without this feature on exact baseline 7f9594b (180.25s); all 13 governing inputs remain byte-identical through cdeb and tested merge. Local Node 26.8.2 versus current CI 24.21.0 is retained as a qualification.
  • Node job 114176053239: obsolete CLI refresh-copy expectation at line173. Exact6996363 replay reproduced it (1 failed / 7 passed,75.23s,Node24.19.0); currentCI24.21.0 repeats it after successful refresh/persistence. Governing production sources are unchanged; background code is not invoked.
  • Aggregate114177754782 is attributable to those four roots. No current session-status or Doctor failure is waived. Security, enforced reviews and live writer/ruleset authority remain independently native-gated.

CI run 38034983063 attempt 1 on a91020f also had three independently reproduced baseline failures: CLI refresh-copy expectation, the Doctor migration fixture’s requester check, and session-status fixture profile lookup. All reproduced without this feature on its actual tested base 6996363759660d5aae6a24625ef805225d87fcb5 using Node 24.19.0 / pnpm 12.9.0; 29 governing source/dependency/workflow inputs match the tested merge. These remain failed evidence, not green results or a waiver for a later head.

Focused test invocations use the canonical repository runner with --maxWorkers=1 (pnpm test or its scripts/run-vitest.mjs entrypoint). Prior b3f8742 CI took 12m59s: 108 successful, 19 skipped, 6 failed jobs, no cancellations; five root jobs plus the downstream aggregate. The mobile failures are repaired. Four other UI cases reproduced on exact baseline 7f9594b (4 failed / 1 passed / 180.25 s): Details overlaps Canvas/MCP pin actions, and guest publication fixtures omit opening Details. Thirteen governing inputs match. Those and the two unchanged CLI/profile failures remain failed evidence; no old-head waiver is claimed.

  • Current integrated Gateway/state proof: 39 tests / five suites passed, 128.67 s wall including 42.45 s worker compilation. Three direct final-publication cases hold actual SQLite-loaded bytes: unchanged authority returns 200/exact bytes; actual device-token revocation returns 401/no image; canonical profile reassignment returns 401/neither original nor target image. Existing owner/foreign-profile and RPC commit-fence cases remain green. Normalization uses a deterministic fixture, not a fabricated authorization decision.

  • Remote URL regression: two public-reader cases failed before the fix, then 63 UI/renderer/avatar tests passed in 10.35 s. Explicit same-origin and development proxy mounts remain covered. Current UI production types, scoped backend test types, and correction-file lint pass.

  • Backend: 217 assertions / 14 files cover image normalization, real SQLite lifecycle/CAS, registered RPCs, private HTTP authorization and avatar/preferences siblings. Final 62-test run: 113.96 s including 46.05 s worker compilation; affected 24 tests rechecked after mock-export repair in 40.58 s.

  • UI preference port: 137 tests / 21.53 s; final conflict-settlement repair: 80 tests / 4.49 s, including public push/flush, explicit retry, and writer/profile/disconnection fences.

  • Real-SQLite/outbox CAS: 10 tests / 51.08 s (mostly worker preparation). Renderer plus protocol final recheck: 39 tests / 5.13 s.

  • All 11 original feature E2E scenarios passed. Final 7 personal-background E2E cases (including two new cross-device regressions) plus 25 Appearance browser cases passed in 35.58 s. Two existing theme-background siblings passed in 89.39 s including build.

  • Core/UI/script types, scoped lint, styles, English catalog, schema-version, mock-export, worker-access, line-cap and assertion-safety checks passed. The assertion baseline shrinks one verified entry from 6 to 5; no assertion allowance grows.

  • Historical local findings on the original 18f2006 base were independently reproduced there: environment-name count 456 against 455 with identical candidate/base name sets; production unused export PUBLIC_SESSION_ENTRY_SCRIPT in a byte-identical renderer. Full-tree and script export scans had zero findings. These original-head observations are not a current-main CI waiver and did not excuse feature-caused startup growth.

Requested and designed with @vyctorbrzezowski; landing requested by @steipete.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 10, 2026 07:05
Add private profile artwork, independent placement controls, and readable faded or full-bleed presentation. Preserve current-authority access, atomic image/preference comparisons, and existing preference outbox ownership.

Include the scoped approved startup budget adjustment without changing tolerances.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0cce74d3-a68f-4b38-8412-e051b3f2b773
@clawsweeper

clawsweeper Bot commented Oct 10, 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 gateway Gateway runtime scripts Repository scripts labels Oct 10, 2026
@roboclaw-bot

roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

Visual evidence

Actual production-bundled Control UI, 1440 × 1000, with synthetic Gateway/profile data. Before uses main at 18f2006ef9a50730d5e0f432893aa0eb7b830895; After uses this feature. The custom photo is a real-normalized demo image, not a bundled default. Settings is scrolled to the new Background section.

Before

Before — New Session with existing theme artwork

After

After — private photo with soft fade and solid composer

Appearance controls

Background controls in Appearance

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds personal background selection, private uploads, independent page placement, presentation styles, and visibility controls.

Example: A signed-in user uploads a 1600×1000 mountain photograph.

  • Before: New Session and conversations use the selected theme artwork.
  • After: The private photograph initially appears only on New Session; the user can enable it in conversations or select None.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, well-supported implementation with no identified introduced defect; current CI remains separate landing evidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected production-bundled desktop before/after and Appearance screenshots demonstrate the visible feature; supplied registered-HTTP observations exercise actual SQLite-loaded bytes with allowed, foreign-profile, revoked-token, and reassigned-profile outcomes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot independently hide theme artwork or choose private backgrounds for New Session and conversations.
Reason: The maintainer-authored direction supplies a real opt-out and bounded personal customization through existing owners.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored feature delivers the requested personalization with credible visual, authorization, and upgrade evidence; no concrete introduced defect was found.

Priority: P3
Reviewed head: 4d6ea3d80854eb9feade49d1d9bd0d2915372b81

Before merge

None.

Findings

None.

Agent review details

How this fits together

Appearance controls send profile-bound preferences and image mutations to the Gateway, which normalizes uploads and stores one image per profile in SQLite; authenticated HTTP reads supply private bytes to the pane renderer.

flowchart LR
  A[Appearance controls] --> B[Preference outbox]
  A --> C[Background RPCs]
  B --> D[Profile preferences]
  C --> E[Image normalization worker]
  E --> F[SQLite worker]
  D --> F
  F --> G[Authenticated image HTTP]
  G --> H[Pane background renderer]
Loading

Technical review

Best possible solution:

Land the bounded personal-background design through the native workflow once current-head check failures are attributed and required gates permit landing.

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

This is a feature request; inspected source and supplied production-bundled screenshots establish the new behavior, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

The implementation fits the existing appearance and storage owners, keeps image bytes outside preference JSON, and preserves explicit profile and concurrency boundaries.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Profile appearance and preference synchronization keeps the original intent (a4c01c1: Make appearance personal, preserve identity isolation, and synchronize through the existing profile preference store.)
  • Pending-profile appearance keeps the original intent (e5e4115: Preserve saved appearance while profile preferences remain unresolved.)
  • Theme artwork and composer surfaces changes intended behavior with a stated reason (2ecfef2: Provide quiet theme-matched artwork with readable foreground surfaces.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a4c01c1 adds ui/src/app/server-prefs-profile.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a4c01c1a77ac; files: ui/src/app/server-prefs-profile.ts)
  • Vyctor H. Brzezowski: Raw commit e5e4115 adds ui/src/app/server-prefs-profile.ts:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e5e4115ca91a; files: ui/src/app/server-prefs-profile.ts)
  • RoboClaw: Raw commit 2ecfef2 adds ui/src/styles/theme-backgrounds.css:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2ecfef2a5900; files: ui/src/styles/theme-backgrounds.css)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This provides optional appearance personalization and artwork opt-out without an urgent broken workflow.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-10T07:17:47.577Z sha 2d38f33 :: needs real behavior proof before merge. :: [P2] Keep remote WebSocket paths out of background HTTP URLs | [P2] Join worker shutdown before opening the compatibility reader
  • reviewed 2026-10-10T07:43:35.560Z sha a91020f :: blocked before merge. :: none
  • reviewed 2026-10-10T08:36:43.748Z sha b3f8742 :: needs maintainer review before merge. :: none

Reviewed October 10, 2026, 4:57 AM ET / 08:57 UTC (Revision 4).

Preserve append-only method ordering, correct remote HTTP image mounts, join SQLite shutdown in the compatibility test, and verify final-effect private-image authority.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Review repairs and final-effect proof

Corrected head: a91020fffc71d9660903215ef782982813c85512. The two reported P2 findings are fixed, and the conflict with current main is resolved without changing existing Gateway method indices.

  • Remote HTTP routing: remote ws://…/ws and wss://…/control no longer contribute their transport pathname to the image route. Two public-reader regressions failed before the fix; 63 renderer/avatar tests passed afterward in 10.35 s. Same-origin explicit mounts and the development proxy retain their paths.
  • Older reader: the compatibility test now awaits path-scoped asynchronous database closure before opening raw SQLite, joining retained workers rather than racing their checkpoint.

Private-image publication boundary

The registered HTTP authority cases suspend after the real getUserBackgroundImage() returns its SQLite-loaded bytes and freshness guard, then change actual authority before releasing the response:

Scenario Observed response
Unchanged authenticated owner 200, exact original image bytes
Paired device token revoked while bytes are held 401, no image content type or retained bytes
Authenticated email canonically reassigned to another durable profile already owning a distinct image 401, neither original nor target image bytes

The reassignment case verifies a fresh canonical read resolves to the target asset before releasing the held response. Authorization and reader results are not fabricated; the existing image-normalization fixture remains deterministic. This is real HTTP dispatch with isolated SQLite/credentials, not a deployed Team trace.

Existing HTTP owner/foreign-profile checks return owner JPEG bytes but 404 to a different profile even with operator.admin (403 without read scope). Registered RPC tests retire identity/scope/connection while decoding is suspended and verify no asset/preference commit and no publication event. The state tests also prove canonical profile merge cannot redirect an in-flight upload and an injected final commit-admission refusal preserves the prior asset/preference pair. That last case is explicitly fault injection, not credential revocation. Origin-grant revocation returns 200 without CORS grants and is not mislabeled as credential denial.

Canonical single-worker verification: 39 tests / five Gateway+state suites passed in 128.67 s, including 42.45 s worker compilation. Scoped lint had zero warnings/errors, backend test types and UI production types passed. Fresh two-pass full-candidate independent review found no actionable P0/P1/P2 issues.

Paired production UI build/performance against captured main 3193e15c825d1a09a42c214f61c2e96b532a9f07 passes: startup 374,677 B ≤ 374,861 B, New Session boot +602 B with unchanged 26 requests; the explicitly approved baseline adjustment and existing tolerances are unchanged. These are local results, not a claim of hosted CI success. The PR body has been updated; the existing before/after and Appearance media remain applicable.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 10, 2026 07:36
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 4d6ea3d80854eb9feade49d1d9bd0d2915372b81
  • Maintainer: @roboclaw-bot
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/http-auth-utils.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/methods/core-profile-access.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-http.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Published-data compatibility proof

Completed against the actual published [email protected] npm artifact (build commit bcfc88812a35243893585dbeca87ca41b48272ca) and candidate a91020fffc71d9660903215ef782982813c85512 plus CI repairs. SHA1/SHA512 matched official registry metadata; embedded build commit matched the tag. Storage-owner source hashes stayed unchanged throughout the candidate phases.

Phase Observed result
Published release seeds isolated data Two profiles, two email aliases, seven preferences and unrelated machine state written by actual published owners
Candidate migration Existing schema 19→20 migration succeeds, no warnings; background table remains absent until first use
Background first use Real decoder and SQLite workers; normalized JPEG, conservative placement defaults, private-profile isolation, exact-CAS customization and stale-CAS rejection pass
Published release reopens schema 20 Expected refusal: v2026.9.9 supports schema 19. Database file digest remains unchanged
Actual pre-feature schema-20 reader (18f2006) Opens additive table and reads old preferences plus opaque background preference unchanged
Candidate reopen Exact background preference and JPEG digest retained

Across five observations, every seeded unrelated logical row, serialized value and timestamp was exactly equal; SQLite integrity checks returned ok. Preserved-row digest: 7ee937e880406987a420b14c3331414ae439c61721903344fd650cbf1af1be0d. Retained JPEG digest: 8ca8f46a6f734a81f3c6fe99b1aa8171bd0e8c7256d7fd5ddb0697a6f297dd09.

Scope: real storage-owner upgrade/read/reopen proof with synthetic data, no mocks; not a full updater/service or deployed-Gateway test. The feature itself adds no schema version bump; the 19→20 cron migration already exists on main. The compatible older reader is actual pre-feature source, not a second published release. A v2026.9.9 downgrade after schema-20 migration is not supported: restore the pre-upgrade backup. Matching package-version text alone does not establish schema compatibility.

Prevent undeclared native model references and preserve existing Talk string identifiers. Repair background fixture contracts, contrast extraction, and settings manifest expectations without changing runtime appearance or privacy behavior.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 10, 2026
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Mobile inset correction

Corrected head: 4d6ea3d80854eb9feade49d1d9bd0d2915372b81. Artwork now extends through the shell inset independently of layout; New Session retains the same 20 px mobile composer edge as Chat instead of 16 px. No contrast, visibility, or performance budget was relaxed.

The exact CI merge tree reproduced both failures locally (2 failed, 42.00 s). After the repair, all 21 header, mobile-shell and background-presentation tests pass (86.30 s wall, single worker), including light/dark artwork coverage, portrait/landscape, standalone safe areas, keyboard geometry and reachable controls. Styles, formatting, strict UI E2E types and scoped type-aware lint pass. Independent review of the exact corrected tree and all five automatic-merge overlaps found no actionable P0–P2 issue.

Cropped, inspected captures from the actual production-bundled UI at 390×844, identical synthetic data and dark theme; crop coordinates are identical. These show only the changed composer edge and surrounding controls.

Before

Before — mobile composer inset 16 pixels

After

After — mobile composer inset 20 pixels

Other checks

Prior-head b3f8742 macOS/iOS consumer builds passed, and ClawSweeper accepted the published-data compatibility proof with zero findings. Current-head hosted gates are still pending; no prior-head CI waiver is claimed.

The four separate dashboard-pin/guest-publication failures reproduced on exact baseline 7f9594b: 4 failed, 1 passed, 6 unselected, 180.25 s, with original assertions preserved and thirteen governing inputs identical to the CI merge. The new Details toggle physically overlaps Canvas/MCP pin controls even without background isolation; the two guest tests omit opening the newly introduced Details/Pull requests disclosure. Local Node 26.8.2 differs from hosted 24.19.0; both use Playwright 1.63.0. Those inherited failures and the previously qualified CLI-copy/session-profile failures remain failed evidence, not green results. The earlier Doctor fixture was repaired on the newer baseline and is not carried forward.

@roboclaw-bot
roboclaw-bot merged commit afafe74 into main Oct 10, 2026
209 of 215 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/explore-customizable-session-background-images branch October 10, 2026 09:18
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
* feat: personalize session backgrounds

Add private profile artwork, independent placement controls, and readable faded or full-bleed presentation. Preserve current-authority access, atomic image/preference comparisons, and existing preference outbox ownership.

Include the scoped approved startup budget adjustment without changing tolerances.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* feat: personalize session backgrounds

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0cce74d3-a68f-4b38-8412-e051b3f2b773

* fix: keep background schema primitives private

Prevent undeclared native model references and preserve existing Talk string identifiers. Repair background fixture contracts, contrast extraction, and settings manifest expectations without changing runtime appearance or privacy behavior.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
steipete added a commit that referenced this pull request Oct 15, 2026
…work

Fold sole-caller Config and Cron adapters into their existing owners, reuse
canonical controller types, and remove unused request arguments and login
selection options. Adopt the complete background mutation receipt instead of
rereading the write; keep authoritative preflight and live ownership checks.

Best-effort tradeoffs accepted: a later background edit in another browser is
reflected by normal preference events or refresh, not an unconditional read of
our own successful write. The introducing feature PR #168301 does not identify
a human incident requiring that reread. Settled rendering and public contracts
are unchanged; both shipping renderer paths remain intact.
steipete added a commit that referenced this pull request Oct 15, 2026
…-5 bundle A) (#172989)

* refactor(ui): remove unused page plumbing and duplicate presentation work

Fold sole-caller Config and Cron adapters into their existing owners, reuse
canonical controller types, and remove unused request arguments and login
selection options. Adopt the complete background mutation receipt instead of
rereading the write; keep authoritative preflight and live ownership checks.

Best-effort tradeoffs accepted: a later background edit in another browser is
reflected by normal preference events or refresh, not an unconditional read of
our own successful write. The introducing feature PR #168301 does not identify
a human incident requiring that reread. Settled rendering and public contracts
are unchanged; both shipping renderer paths remain intact.

* refactor(ui): consolidate presentation helpers and cached preview inputs

Share point-menu trigger attributes and deletion-first LCS traversal. Remove
an obsolete empty-badge predicate, a one-caller loading facade, and redundant
whole-map translation fallback. Preserve both active Lit and Solid paths,
positioning formulas, diff work budgets, visible text, and rendering.

Best-effort tradeoffs accepted:
- Trust successful synchronous Web Storage writes instead of reading them back.
  Introducing PR #162428 supplied synthetic storage failures, not a human
  incident where successful setItem silently failed. Nonconforming Storage
  replacements may miss a cache publication until the next refresh.
- Trust immutable message/tool-card identities for cached source previews.
  PR #148431's in-place mutation assertions were synthetic; production owners
  publish replacement snapshots. Unsupported in-place mutation may leave a
  decoration stale until replacement. Run/frame/origin and external source
  validation remain unchanged.

Net production reduction: 76 lines; tests: 20 lines removed, only synthetic
same-object mutation assertions. Kept config coercion tied to human Safari
report #13348, along with security, durability, ordinary navigation ownership,
and all active migration paths.

Focused proof: 73 boot/cache/diff tests, 82 menu tests, 46 badge/assistant tests,
20 i18n tests, 8 browser details tests, 3 lint-suppression tests; UI typecheck,
formatting, stylesheet lint and CSS declaration parity passed.

Known inherited local check failure: environment-variable count is 455 against
budget 454, independently reproduced against clean HEAD/index. Its counted
source roots exclude UI. No budget or unrelated source changes made.

* refactor(ui): remove obsolete presentation compatibility and styling

Use the native Popover capability required by the Control UI bootstrap
instead of retaining old-engine in-flow fallbacks. Keep native overlay
occlusion and all real connection/navigation ownership.

Remove retired sidebar style hooks and share identical question-panel
declarations. Supported browsers render identically; no user-visible
copy, feature, renderer selection, config, protocol, or storage change.

Best-effort tradeoffs accepted

- Old engines without Popover support, or invalid direct popover mounts,
  no longer receive an in-flow menu fallback. The fallback came from
  #105598 as generic compatibility, not a human incident; #168595 made
  native Popover support a required bootstrap capability. Invalid direct
  mounts now fail clearly rather than silently changing layering.

Deeper coverage and retained candidates are recorded in the requested
task-local y03 ledger for coordinator bundling.

Branch total: 123 net production LOC removed (+114/-237), excluding tests,
fixtures, generated files and declarations. Below the 500-line campaign
floor after the deeper components/app/lib/styles and lead-owned owner pass;
push branch-only for bundling.

* refactor(gateway): reuse server method owners

Consolidate duplicate catalog response handling,
optional catalog reads, pairing resolution, requester assertions and system
agent transcript persistence. Carry prepared pairing and actor facts instead
of probing or re-reading them. Remove redundant cache-generation and internal
receipt checks; retain security, durability, pagination and resource bounds.

Best-effort tradeoffs accepted:
- Pairing captures its selected adapter once. Repeated internal checks added
  by #112401 guarded hypothetical in-place plugin mutation, not a reported
  incident. Such a mutation now leaves this request on its selected adapter;
  later requests discover the current registration.
- Channel identity RPCs trust the canonical mutation result instead of
  repeating the action/kind assertion introduced in #161284. No human incident
  justified the redundant adapter assertion; live mutation authority remains
  with the state owner.

No user-facing feature, protocol/config/persistence shape, schema, dependency,
test coverage or standalone session memory backend changes.

Net production reduction: 100 lines (179 added / 279 deleted).
Type-aware lint, targeted production types, formatting, runtime cycles (zero),
SDK surface, suppression audit and independent P2 review pass. Gateway focused
suites and the full static import graph remain incomplete on the loaded host;
retain these proof gaps for the coordinator bundle rather than claiming green.

* refactor(gateway): trust prepared server method inputs

Remove a test-only config cache-reset wrapper, duplicate internal selection
and channel-support checks, an unused session-file metadata fallback, and
duplicate usage target shapes. Carry transcript delivery facts from their
first parsing pass. Keep all network validation, effect authority, transcript
durability, current update policy and standalone session memory machinery.

Best-effort tradeoffs accepted:
- Internal agent updates trust the selection-shape check at their sole
  production caller, agents.update. The duplicate originated in the Models
  agent-selection feature #150224; the same boundary check still rejects
  invalid user input. Live runtime choice validation stays at the effect.
- Channel start support is checked once at the synchronous request boundary.
  The inner check from #67815 / #167159 cannot observe a different plugin
  without unsupported synchronous mutation; the boundary guard remains.
- Workspace-root readers require caller-prepared metadata: both production
  consumers already provide it. The unused fallback from #161747 is deleted,
  not the Phase E backend or any factory. A future invalid internal caller
  gets a clear error instead of starting another metadata read.
- Update handlers trust the required getRuntimeConfig contract instead of
  falling back to a global schedule for an invalid context. Keep #158301's
  real scheduler-policy incident fix and its post-await current-config read.
- Usage summaries trust the canonical required target identity from #169660;
  the first-instance fallback served no production caller. The integration
  fixture now supplies that identity with all original assertions retained.

No public schema/config/SDK/protocol or persisted shape changes. The config
tests call the same canonical invalidators directly; no coverage is removed.

Follow-up removes 54 net production lines; branch total removes 154. Targeted
types (including MCP consumers), retained-file type-aware lint, formatting,
zero runtime import cycles, suppression audit and independent P2 review pass.
Gateway behavioral suites remain incomplete after a loaded-host startup run
was stopped at about ten minutes (exit 143). The prior full static-graph gap
remains pending for the coordinator bundle; no new production edge is added.

* refactor(ui): consolidate page lifecycle and config plumbing

Reuse the existing controller host, subscription and plugin-icon owners;
share cloud-worker config edit wiring and Usage query comparisons. Remove
the unused Usage detail predicate and duplicate model loading flag.

Retire the Web Awesome-era picker hiding fence now that native Popover
owns generation-bound close completion. Keep both rendering paths,
draft recovery, user-intent checks and dispatch-time write authority.
Settled rendering is unchanged. Net production reduction: 210 lines.

Best-effort tradeoffs accepted:
- Failed channel artwork retries on the next channel refresh rather than
  a queued trailing ensure. #131511 was a synthetic ordering regression;
  the human-reported owning-plugin bug #144152 remains covered.
- Picker triggers may reopen during closing. #126032's fence came from
  CI/synthetic overlap, not a human incident; #171441 transferred lifecycle
  ownership to native Popover, which ignores superseded completions.

Focused proof: 281 tests passed, including Chromium/WebKit overlay lifecycle
and responsive placement controls. Independent P0-P2 review: scoped-clean.
Final UI production and UI-pages test typechecks passed; suppression tests 3/3.
Scoped lint passed after a mechanical no-lonely-if fix.
Runtime and static import cycles: zero. No visual or locale changes.
The global environment-name budget is inherited at 455/454 on both the
untouched base and origin/main; none of its counted source roots changed.

* refactor(ui): remove unused new-session hiding selector

* refactor(gateway): retain legacy catalog and update handler contracts

Withdraw two wave-5 cleanups after focused CI failures and bounded isolated replay. Preserve the existing scalar-read concurrency and update-status handler contract. Tighten task-suggestions assertion allowance to match the cleaned source.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…-5 bundle A) (openclaw#172989)

* refactor(ui): remove unused page plumbing and duplicate presentation work

Fold sole-caller Config and Cron adapters into their existing owners, reuse
canonical controller types, and remove unused request arguments and login
selection options. Adopt the complete background mutation receipt instead of
rereading the write; keep authoritative preflight and live ownership checks.

Best-effort tradeoffs accepted: a later background edit in another browser is
reflected by normal preference events or refresh, not an unconditional read of
our own successful write. The introducing feature PR openclaw#168301 does not identify
a human incident requiring that reread. Settled rendering and public contracts
are unchanged; both shipping renderer paths remain intact.

* refactor(ui): consolidate presentation helpers and cached preview inputs

Share point-menu trigger attributes and deletion-first LCS traversal. Remove
an obsolete empty-badge predicate, a one-caller loading facade, and redundant
whole-map translation fallback. Preserve both active Lit and Solid paths,
positioning formulas, diff work budgets, visible text, and rendering.

Best-effort tradeoffs accepted:
- Trust successful synchronous Web Storage writes instead of reading them back.
  Introducing PR openclaw#162428 supplied synthetic storage failures, not a human
  incident where successful setItem silently failed. Nonconforming Storage
  replacements may miss a cache publication until the next refresh.
- Trust immutable message/tool-card identities for cached source previews.
  PR openclaw#148431's in-place mutation assertions were synthetic; production owners
  publish replacement snapshots. Unsupported in-place mutation may leave a
  decoration stale until replacement. Run/frame/origin and external source
  validation remain unchanged.

Net production reduction: 76 lines; tests: 20 lines removed, only synthetic
same-object mutation assertions. Kept config coercion tied to human Safari
report openclaw#13348, along with security, durability, ordinary navigation ownership,
and all active migration paths.

Focused proof: 73 boot/cache/diff tests, 82 menu tests, 46 badge/assistant tests,
20 i18n tests, 8 browser details tests, 3 lint-suppression tests; UI typecheck,
formatting, stylesheet lint and CSS declaration parity passed.

Known inherited local check failure: environment-variable count is 455 against
budget 454, independently reproduced against clean HEAD/index. Its counted
source roots exclude UI. No budget or unrelated source changes made.

* refactor(ui): remove obsolete presentation compatibility and styling

Use the native Popover capability required by the Control UI bootstrap
instead of retaining old-engine in-flow fallbacks. Keep native overlay
occlusion and all real connection/navigation ownership.

Remove retired sidebar style hooks and share identical question-panel
declarations. Supported browsers render identically; no user-visible
copy, feature, renderer selection, config, protocol, or storage change.

Best-effort tradeoffs accepted

- Old engines without Popover support, or invalid direct popover mounts,
  no longer receive an in-flow menu fallback. The fallback came from
  openclaw#105598 as generic compatibility, not a human incident; openclaw#168595 made
  native Popover support a required bootstrap capability. Invalid direct
  mounts now fail clearly rather than silently changing layering.

Deeper coverage and retained candidates are recorded in the requested
task-local y03 ledger for coordinator bundling.

Branch total: 123 net production LOC removed (+114/-237), excluding tests,
fixtures, generated files and declarations. Below the 500-line campaign
floor after the deeper components/app/lib/styles and lead-owned owner pass;
push branch-only for bundling.

* refactor(gateway): reuse server method owners

Consolidate duplicate catalog response handling,
optional catalog reads, pairing resolution, requester assertions and system
agent transcript persistence. Carry prepared pairing and actor facts instead
of probing or re-reading them. Remove redundant cache-generation and internal
receipt checks; retain security, durability, pagination and resource bounds.

Best-effort tradeoffs accepted:
- Pairing captures its selected adapter once. Repeated internal checks added
  by openclaw#112401 guarded hypothetical in-place plugin mutation, not a reported
  incident. Such a mutation now leaves this request on its selected adapter;
  later requests discover the current registration.
- Channel identity RPCs trust the canonical mutation result instead of
  repeating the action/kind assertion introduced in openclaw#161284. No human incident
  justified the redundant adapter assertion; live mutation authority remains
  with the state owner.

No user-facing feature, protocol/config/persistence shape, schema, dependency,
test coverage or standalone session memory backend changes.

Net production reduction: 100 lines (179 added / 279 deleted).
Type-aware lint, targeted production types, formatting, runtime cycles (zero),
SDK surface, suppression audit and independent P2 review pass. Gateway focused
suites and the full static import graph remain incomplete on the loaded host;
retain these proof gaps for the coordinator bundle rather than claiming green.

* refactor(gateway): trust prepared server method inputs

Remove a test-only config cache-reset wrapper, duplicate internal selection
and channel-support checks, an unused session-file metadata fallback, and
duplicate usage target shapes. Carry transcript delivery facts from their
first parsing pass. Keep all network validation, effect authority, transcript
durability, current update policy and standalone session memory machinery.

Best-effort tradeoffs accepted:
- Internal agent updates trust the selection-shape check at their sole
  production caller, agents.update. The duplicate originated in the Models
  agent-selection feature openclaw#150224; the same boundary check still rejects
  invalid user input. Live runtime choice validation stays at the effect.
- Channel start support is checked once at the synchronous request boundary.
  The inner check from openclaw#67815 / openclaw#167159 cannot observe a different plugin
  without unsupported synchronous mutation; the boundary guard remains.
- Workspace-root readers require caller-prepared metadata: both production
  consumers already provide it. The unused fallback from openclaw#161747 is deleted,
  not the Phase E backend or any factory. A future invalid internal caller
  gets a clear error instead of starting another metadata read.
- Update handlers trust the required getRuntimeConfig contract instead of
  falling back to a global schedule for an invalid context. Keep openclaw#158301's
  real scheduler-policy incident fix and its post-await current-config read.
- Usage summaries trust the canonical required target identity from openclaw#169660;
  the first-instance fallback served no production caller. The integration
  fixture now supplies that identity with all original assertions retained.

No public schema/config/SDK/protocol or persisted shape changes. The config
tests call the same canonical invalidators directly; no coverage is removed.

Follow-up removes 54 net production lines; branch total removes 154. Targeted
types (including MCP consumers), retained-file type-aware lint, formatting,
zero runtime import cycles, suppression audit and independent P2 review pass.
Gateway behavioral suites remain incomplete after a loaded-host startup run
was stopped at about ten minutes (exit 143). The prior full static-graph gap
remains pending for the coordinator bundle; no new production edge is added.

* refactor(ui): consolidate page lifecycle and config plumbing

Reuse the existing controller host, subscription and plugin-icon owners;
share cloud-worker config edit wiring and Usage query comparisons. Remove
the unused Usage detail predicate and duplicate model loading flag.

Retire the Web Awesome-era picker hiding fence now that native Popover
owns generation-bound close completion. Keep both rendering paths,
draft recovery, user-intent checks and dispatch-time write authority.
Settled rendering is unchanged. Net production reduction: 210 lines.

Best-effort tradeoffs accepted:
- Failed channel artwork retries on the next channel refresh rather than
  a queued trailing ensure. openclaw#131511 was a synthetic ordering regression;
  the human-reported owning-plugin bug openclaw#144152 remains covered.
- Picker triggers may reopen during closing. openclaw#126032's fence came from
  CI/synthetic overlap, not a human incident; openclaw#171441 transferred lifecycle
  ownership to native Popover, which ignores superseded completions.

Focused proof: 281 tests passed, including Chromium/WebKit overlay lifecycle
and responsive placement controls. Independent P0-P2 review: scoped-clean.
Final UI production and UI-pages test typechecks passed; suppression tests 3/3.
Scoped lint passed after a mechanical no-lonely-if fix.
Runtime and static import cycles: zero. No visual or locale changes.
The global environment-name budget is inherited at 455/454 on both the
untouched base and origin/main; none of its counted source roots changed.

* refactor(ui): remove unused new-session hiding selector

* refactor(gateway): retain legacy catalog and update handler contracts

Withdraw two wave-5 cleanups after focused CI failures and bounded isolated replay. Preserve the existing scalar-read concurrency and update-status handler contract. Tighten task-suggestions assertion allowance to match the cleaned source.
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 gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL 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.

[Feature]: Personal session backgrounds with opt-out and custom images

1 participant