Skip to content

refactor(ui): share Workboard selection and appearance controls - #144748

Merged
vyctorbrzezowski merged 8 commits into
refactor/workboard-mock-lifecyclefrom
refactor/workboard-controls
Sep 13, 2026
Merged

vyctorbrzezowski merged 8 commits into
refactor/workboard-mock-lifecyclefrom
refactor/workboard-controls

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Workboard and session menus expose inconsistent agent and appearance controls. Appearance glyphs mounted in the same container can also overwrite one another’s colors.

Layer 2 of the eight-PR Workboard stack, split from #143728; based on refactor/workboard-mock-lifecycle.

Why This Change Was Made

Expose host-owned agent and appearance controls through the plugin component contract, with shared option states and keyboard/touch behavior. Refresh resolved agent identities, including agents absent from the roster, and use one private host-owned color resolver for palette, custom, and cleared colors. Resolve colors through the existing host component contract and apply each glyph’s color to its own element, preserving independent updates and selected tint. The host contract stays within the existing SDK surface budget.

User Impact

Operators use consistent controls across Workboard and session menus.

Evidence

  • Candidate 96ccfa94e00b7e786cb246ccda48aa9add61da33; stack base ac59d5e09eb468dc23cf95e447608b57e71b52af. The stack includes the upstream fixes in #147240 and #147293. All eight rebased trees match their expected merges with main.
  • Final AWS integration validation on stack top d67457df passed 524 tests, four production/test type checks, and all eight canonical Workboard asset builds. Tests cover QA routing (1 selected case), QA run status (37), UI units (389), isolated ChatPane lifecycle (75), modal browser behavior (9), and native plugin UI/titlebar flows (13). All generated manifests match the committed assets. Original assertions, timeouts, and browser harness were preserved.
  • Earlier AWS integration validation passed 570 tests on top 8de11a6, covering store/Gateway deletion, rollback, concurrent recreation, stale revisions, cleanup receipts, menus, views, and bulk actions. It also passed four type checks, all eight asset builds, and the CI build. The later rebase changed no Workboard or Workboard-contract source; the final run above covers the shared UI integration changes. Test totals overlap and are not additive.
  • All eight layer diffs and subsequent repairs received Codex review. The final shared-UI review raised one P2 about main's intentionally removed floating customization control (#147245). Source and documentation explicitly place recovery at /plugins, which always renders the built-in workspace; the native plugin UI tests exercise that route. This is unchanged by the Workboard stack and was rejected as a stack blocker. The original finding is retained in the review record. ClawSweeper has also reviewed all eight current heads and reported no code findings; no formal changes-requested review or unresolved review thread remains.
  • The base layer also fixes a CI prerequisite selector: the native-grep session projection test now requests ripgrep installation. Focused AWS validation proved the real workflow selector changes from false to true for that case, preserved existing siblings, passed three workflow guard tests, and received a clean scoped review. Full CI remains the required integration gate.
  • Matching-package and stable 2026.9.4 upgrade proof passed on earlier top 73482ef: host/Workboard integration, appearance Save/Reset, deletion conflicts, and settled card/event/metadata/session identity after package replacement, Doctor, and restart. These are earlier checks; they do not establish active-run migration or updater orchestration.
  • Exact-head GitHub CI and the required openclaw/ci-gate passed. All eight candidate heads have passing CI; preflight logs confirm that each actual checkout contains its expected head, main ac59d5e0, and the fix(ci): tooling shard fails on QA Profile Evidence routing after #143968 #147293 correction. Native merge readiness is verified again immediately before landing.

Risk and coverage

Coverage includes independent glyph mounts and updates, preserved tint, color clearing, and SDK exports/surface. The bundled Workboard assets and required host components must ship together under the existing one-installation, one-version contract. A new Workboard bundle on an older host is unsupported; the published-release upgrade proof above covers the matching package after stable lifecycle reconciliation. Board appearance persistence and enclosing-form Enter behavior belong to editors (#144754).

Visual stress evidence

Shared Workboard design preview for all eight PRs, captured September 13 in the internal browser using Absolutely (dark) and synthetic Workboard fixtures. Desktop: 1440 × 1000; mobile: 390 × 844, plus a 320 px boundary check. Every image was inspected before upload.

Before: main bundle 5a2677c. After: combined stack bundle 58771ec, loaded into the same existing mock host using browser resource overrides. These are inspected captures of the design revision, shared across all eight PRs. Later repairs changed lifecycle/recovery behavior without changing Workboard CSS; the final rebase preserved Workboard sources. The earlier captures do not claim to show main's subsequent shared-modal or native-titlebar changes, which have separate functional coverage above. A repeat capture was unavailable because the browser controller rejected the session authentication method.

Desktop board

Before After
Desktop board before Desktop board after

Product Operations on mobile

Before After
Product Operations on mobile before Product Operations on mobile after

List layout: priority first, session and status together

Absolutely desktop list with priority first and grouped session status
Responsive and interaction stress cases
Mobile list 320 px: short New label
Mobile list 320 pixel layout with New label
Filters Multiple selected statuses
Mobile filters with Agent and layout controls Ready and Running selected with readable status names

Group header disclosure

Todo group collapsed by its header
Template editor Bulk edit by keyboard Applied result
Release template editor with visible Create button Four cards with High priority selected by keyboard Applied to four of four cards and selection cleared

Exercised: status filtering, list/column switching, header collapse, long-title and label wrapping, template fill/discard, selection of four cards, keyboard priority choice, and bulk application with the visible “Applied to 4 of 4 cards” result. The New label was also checked at 401 px, where New card remains visible.

Editors, board appearance, and card details

Card details on desktop

Before After
Before: long card and session in one drawer After: card overview separated from Session

Card details on mobile

Before After
Before: mobile card with dense session details After: mobile overview with long title and multilingual labels

Session tab

Desktop Mobile
Desktop Session tab with recent messages and completed status Mobile Session tab with recent messages and completed status

New card with the Release template

Before After
Before: desktop Release template form After: compact desktop Release template editor

Board appearance

Before: board without an editor After: appearance editor
Before: Product Operations board without an Edit board entry After: board appearance editor with blue rocket preview

Unsaved draft confirmation

After: unsaved Release draft with Keep editing and Discard actions

The same synthetic Release template was used before and after. Before, Cancel closed the populated form immediately; after, it opened this confirmation. Keep editing retained the populated fields, and Discard closed the draft. The old bundle has no board appearance editor; the comparison above shows its board rather than inventing a prior dialog. In the new editor, changing the color and icon updated the preview, and Cancel preserved the saved board. The desktop and mobile Session tabs were opened from the same rich card.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 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 plugin: workboard size: XL maintainer Maintainer-authored PR labels Sep 11, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from 34cae92 to 3527f03 Compare September 11, 2026 07:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 3:47 PM ET / 19:47 UTC (Revision 17).

ClawSweeper review

What this changes

The PR exposes shared agent, selection, and appearance controls to browser plugins and updates session menus to reuse their styling and keyboard behavior.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR remains useful: current main lacks the added shared controls, and the related merged fixes do not replace them. No actionable introduced defect was found. The previous compatibility concern is addressed by the explicitly accepted matching-version deployment contract.

Priority: P2
Reviewed head: 96ccfa94e00b7e786cb246ccda48aa9add61da33

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent shared-control refactor with useful visual and regression evidence and an explicitly documented deployment contract.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Inspected combined-stack screenshots support compact agent presentation; glyph isolation and identity refresh have focused test coverage, while linked package/upgrade results were not independently inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Inspected combined-stack screenshots support compact agent presentation; glyph isolation and identity refresh have focused test coverage, while linked package/upgrade results were not independently inspected.
Evidence reviewed 10 items Pinned review identity: Live GitHub metadata confirms the supplied head and stack base, an open PR, and MEMBER association. The introduced comparison is the pinned base-to-head delta; the supplied stale test merge was not used to infer removal of main-branch behavior.
Current main still lacks the requested component surface: Current main exposes dialog, agent-picker, and dashboard mounts, but lacks the new select, avatar, appearance-picker, appearance-glyph, and color-resolution operations.
Latest release comparison: The v2026.9.4 component contract also contains only the three existing mounts, so the added surface is not established as shipped.
Findings None None.
Security None None.

How this fits together

The Control UI supplies reusable controls to native browser plugins such as Workboard. These controls consume agent identities and appearance values, render interactive elements, and return selections to the owning view.

flowchart TD
  A[Workboard views] --> B[Host component contract]
  C[Agent roster and identities] --> B
  B --> D[Shared selection controls]
  B --> E[Shared appearance controls]
  F[Session menus] --> E
  D --> G[Selection callbacks]
  E --> G
Loading

Before merge

  • Resolve merge risk (P1) - Deploying adopting Workboard assets on an older host would fail at missing component methods; independently implemented typed hosts also need the added required members. Matching-version deployment is explicitly accepted in the PR.
Agent review details

Security

None.

PR surface

Source +408, Tests +235, Docs +3. Total +646 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 16 568 160 +408
Tests 8 409 174 +235
Docs 1 6 3 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 983 337 +646

Review metrics

Metric Value Why it matters
Host component contract 5 required operations added Typed host implementations must provide the new operations; existing component operations remain available.
Production versus test growth Production +568/-160; tests and support +409/-174; docs excluded Production growth supplies shared component adapters and presentation behavior, while test growth covers their lifecycle and interaction contracts.

Merge-risk options

Maintainer options:

  1. Use the accepted matching-version rollout (recommended)
    Keep the host and adopting Workboard assets together in the coordinated installation, preserving the explicitly documented version requirement.

Technical review

Best possible solution:

Keep one host-owned control implementation and ship adopting Workboard layers with the matching host under the documented coordinated package contract.

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

Not applicable to the primary refactor: source establishes the duplicated presentation boundary, and no introduced bug was identified. Runtime tests were not executed in this read-only review.

Is this the best way to solve the issue?

Yes: adapting the existing host controls preserves a single implementation for selection, identity loading, and appearance rendering without adding competing plugin-owned behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded shared-control improvement with no demonstrated urgent user-facing regression.
  • merge-risk: 🚨 compatibility: The expanded plugin host contract requires matching host deployment and updates to independent typed host implementations.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 external-contributor proof gate does not apply to this MEMBER-authored PR. Inspected combined-stack screenshots support compact agent presentation; glyph isolation and identity refresh have focused test coverage, while linked package/upgrade results were not independently inspected.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The external-contributor proof gate does not apply to this MEMBER-authored PR. Inspected combined-stack screenshots support compact agent presentation; glyph isolation and identity refresh have focused test coverage, while linked package/upgrade results were not independently inspected.

Evidence

What I checked:

  • Pinned review identity: Live GitHub metadata confirms the supplied head and stack base, an open PR, and MEMBER association. The introduced comparison is the pinned base-to-head delta; the supplied stale test merge was not used to infer removal of main-branch behavior. (96ccfa94e00b)
  • Current main still lacks the requested component surface: Current main exposes dialog, agent-picker, and dashboard mounts, but lacks the new select, avatar, appearance-picker, appearance-glyph, and color-resolution operations. (src/plugin-sdk/control-ui-components.ts:47, 19d1e824ada8)
  • Latest release comparison: The v2026.9.4 component contract also contains only the three existing mounts, so the added surface is not established as shipped. (src/plugin-sdk/control-ui-components.ts:47, 3a9d69db306c)
  • Shared implementation and lifecycle: Avatar mounts use the existing identity capability and subscribe to its updates. Appearance callbacks retain the existing current-owner check, while each glyph receives its color on its own element rather than its shared container. (ui/src/plugins/control-ui-components.ts:107, 96ccfa94e00b)
  • Compatibility direction is documented: The fully read UI guide defines one installation and one version. Feature-plugin documentation requires pinning and testing host versions, and the captured PR body explicitly accepts deploying the adopting Workboard assets with their matching host. Its reported stable upgrade checks cover package replacement, Doctor, and restart, not updater orchestration or active-run migration. (ui/AGENTS.md, 96ccfa94e00b)
  • Focused regression coverage: The browser regression checks independent glyph mounts, palette/custom/cleared colors, disposal, and preservation of the container color. Avatar tests cover identity refresh and disposal; session-menu coverage exercises keyboard navigation and hidden-panel exclusion. Tests were inspected, not executed during this read-only review. (ui/src/plugins/control-ui-appearance-glyph.browser.test.ts:28, 96ccfa94e00b)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-13T04:47:27.622Z sha 5be2663 :: blocked before merge. :: none
  • reviewed 2026-09-13T05:21:04.382Z sha d96baff :: blocked before merge. :: none
  • reviewed 2026-09-13T05:32:40.290Z sha d96baff :: blocked before merge. :: none
  • reviewed 2026-09-13T05:56:29.043Z sha f4f6972 :: blocked before merge. :: none
  • reviewed 2026-09-13T18:09:51.117Z sha f4f6972 :: blocked before merge. :: none
  • reviewed 2026-09-13T18:31:19.977Z sha d6615c2 :: blocked before merge. :: none
  • reviewed 2026-09-13T19:10:13.987Z sha d6615c2 :: blocked before merge. :: none
  • reviewed 2026-09-13T19:27:01.050Z sha 043c4aa :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 12, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from 3527f03 to 659f5cf Compare September 13, 2026 00:38
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from 659f5cf to b0898c1 Compare September 13, 2026 01:07
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from b0898c1 to 5be2663 Compare September 13, 2026 04:21
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 13, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from d96baff to f4f6972 Compare September 13, 2026 05:50
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 13, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from f4f6972 to d6615c2 Compare September 13, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from d6615c2 to 043c4aa Compare September 13, 2026 19:18
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-controls branch from 043c4aa to 96ccfa9 Compare September 13, 2026 19:32
@vyctorbrzezowski
vyctorbrzezowski merged commit c1258c0 into main Sep 13, 2026
209 of 210 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the refactor/workboard-controls branch September 13, 2026 20:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…claw#144748)

* refactor(ui): share agent and appearance controls

* style(ui): apply the pinned formatter to shared controls

* test(ui): keep shared control proof independent of Workboard details

* refactor(workboard): defer adapters to their first consumers

* fix(ui): hydrate shared avatars and apply appearance colors

* fix(control-ui): isolate appearance colors by component

* fix(ui): retain shared agent selection styles

* test(ui): await appearance glyph import before assertions
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant