Skip to content

refactor(ui): own assistant content subscriptions in Solid - #174035

Merged
steipete merged 3 commits into
mainfrom
solid2/w-idiom-components-assistant-content
Oct 16, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-idiom-components-assistant-content

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The lazy assistant content view still used a controller host and five controller-managed subscriptions just to refresh its custodian variant and Home work context. Replace that adapter with the existing owner-scoped Solid projection. Source replacement retires the old subscriptions; context and store facts continue to come from their synchronous owners.

User Impact

The parent dock controller, lazy import, host tags, rendered content, and visibility-triggered transcript refresh keep their existing behavior. This is a lifecycle refactor with no visual change.

Why This Change Was Made

Use Solid ownership to retire the controller host and its manual invalidation adapter. No new abstraction or dependency is added.

Evidence

Proof Result
UI typecheck pnpm tsgo:ui passed on the refreshed tree
Focused public behavior assistant-panel.test.ts: 21/21 passed once on the current merged tree, 41.80 s suite wall
Full CI Exact-head run 38931484882: all selected UI-unit, mocked E2E, browser-extension and real-Gateway shards passed. Only the unrelated duplicate guard and downstream aggregate failed; attribution below
Targeted lint/format Passed
Production Knip Passed on the refreshed tree, no new ignores
Independent autoreview Fresh isolated review scoped clean, no actionable P0–P2 findings (0.87); supplied complete diff, projection contract, work-context owner, and public behavior tests; runtime tests performed separately
Startup performance Paired builds and strict check passed job117076918002: startup JS 339,564 B gzip / 7 requests; startup CSS 38,786 B / 1 request, unchanged versus base

The same runner built tested merge b43ba345a8e810465ea31b03d3a6c80b0f1a4dc8 and main base ec90dc1ef23dd9c9dd731479b4431d9b082b78d5. Chat boot JS: 1,646,117→1,646,231 B (+114 B); new-session boot: 1,337,368→1,337,487 B (+119 B). The report does not emit the actual base startup-JS total; 374,285 B is the committed budget. No local build, E2E or parity suite was rerun. This owner-lifecycle change preserves the markup and styles, so no visual screenshot was required.

The current candidate merges main bb642e181e130153894a45f141a5368123bcd487 and uses the relocated lib/solid-bridge.ts import. Its focused proof was refreshed after that integration.

The existing test exercises route and pane changes, capability publications, provider replacement, detach/reconnect, and visibility-triggered refresh. The unchanged unavailable-panel path emits Solid strict-read diagnostics even while the content view is not mounted; all assertions pass. CI receives ci:full for the shared dock surface.

Touched production file metric Before After
LOC 148 146
Controller-symbol references (imports and uses) 4 0
Lifecycle/controller-class checklist pattern 0 0
createEffect calls 1 1
createRenderEffect calls 0 0
untrack calls 2 2
addEventListener calls 0 0
querySelector / querySelectorAll calls 0 0
Hand-built class strings 0 0
Production flush calls 0 0
runWithOwner / getOwner calls 0 0

The two retained untrack calls preserve intentional snapshots: the initial store handoff and the store read at the existing visibility refresh transition. Production LOC decreases by 2; tests are reused unchanged. The simplification removes the host/controller adapter without introducing a second state owner.

CI exception

check-guards job117076919000 fails only dup:check/test-mixed: a 60-line, 402-token clone between test/e2e/qa-lab/runtime/gateway-node-control-plane.e2e.test.ts:836–895 and test/e2e/qa-lab/runtime/gateway-node-pending-work.e2e.test.ts:373–432. No runtime test assertion failed. The scheduled-main guard in run38924503696 passed; a newer scheduled run38932746006 was queued at inspection, so this is not claimed as a matching-main test failure.

The exact signed CI merge was reconstructed and its tree verified against the ordered base/head merge. Its actual diff changes only assistant-panel-content-solid.tsx. The complete test tree, both duplicate fixtures, scanner/launcher and runtime helpers, package/lockfile and CI workflow are identical to the actual CI base (11 checked objects). The reported source duplication is independent of this assistant-rendering change. Native unrelated-failure/admin admission retains the failed guard and aggregate as exceptions; all selected UI and security jobs passed.

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

clawsweeper Bot commented Oct 16, 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 16, 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-16T16:26:02.034391Z 69996d0 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces the assistant content view’s controller subscriptions with an owner-scoped Solid projection.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A small, coherent refactor with no identified defect and relevant component coverage; evidence remains harness-based and one E2E failure is unclassified.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored lifecycle refactor is outside the ordinary contributor proof gate; supplied validation exercises the component with mocked Home runtime and Gateway responses, without a new shipped-entry-point demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No new user-facing defect is claimed; the view retains controller lifecycle machinery after its Solid migration.
Reason: The maintainer-authored direction matches the existing Solid migration policy and removes adapter wiring while preserving established product behavior.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it is a focused, maintainer-directed Solid lifecycle refactor with no identified correctness defect; a failed E2E check still needs attribution.

Priority: P3
Reviewed head: 080bd003ecdb6e605acc83725b11c9d1d10a9b5d

Before merge

  • Complete next step - Determine whether the Activity image-loading failure also occurs on the tested base, then address a demonstrated regression or record the inherited-failure evidence.

Findings

None.

Agent review details

How this fits together

The lazy assistant content component consumes custodian store and application-context publications, derives the current variant and Home work context, and supplies them to the existing conversation surfaces.

flowchart LR
  A[Application capabilities] --> C[Solid projection]
  B[Custodian store] --> C
  C --> D[Assistant content]
  E[Route and pane props] --> D
  D --> F[Home session]
  D --> G[Custodian surface]
Loading

Technical review

Best possible solution:

Use the existing Solid projection to own these subscriptions while keeping domain state, lazy loading, and transcript refresh with their existing owners.

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

This PR proposes an internal refactor rather than a new bug repair; source inspection confirms the existing controller subscriptions, and no target code was executed during review.

Is this the best way to solve the issue?

The change follows the repository’s Solid guidance, reuses the existing projection owner, and preserves synchronous state reads without introducing a competing store.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Assistant content subscriptions and rendering keeps the original intent (84255bc: The shared-panel migration kept synchronous domain owners behind stable bridge tags and controller-driven rendering.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -2. Total -2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 27 29 -2
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 27 29 -2

Labels

Label changes:

  • add P3: This is a focused internal lifecycle cleanup with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a focused internal lifecycle cleanup with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 16, 2026, 4:58 AM ET / 08:58 UTC.

@steipete
steipete enabled auto-merge (squash) October 16, 2026 16:36
@steipete
steipete disabled auto-merge October 16, 2026 16:44
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: refactor(ui): own assistant content subscriptions in Solid This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Oct 16, 2026
@steipete
steipete merged commit d095f10 into main Oct 16, 2026
102 of 106 checks passed
@steipete
steipete deleted the solid2/w-idiom-components-assistant-content branch October 16, 2026 17:12
@steipete

Copy link
Copy Markdown
Contributor Author

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

vincentkoc added a commit that referenced this pull request Oct 16, 2026
…158510

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…esafe-decision-native

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-tool-v2-proof-20261016

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…157433

* commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-onnx-v2-proof-20261016

* commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant