Repository navigation
refactor(ui): own assistant content subscriptions in Solid - #174035
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR replaces the assistant content view’s controller subscriptions with an owner-scoped Solid projection. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -2. Total -2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 4:58 AM ET / 08:58 UTC. |
|
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. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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) ...
…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) ...
…/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) ...
…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) ...
…/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) ...
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
pnpm tsgo:uipassed on the refreshed treeassistant-panel.test.ts: 21/21 passed once on the current merged tree, 41.80 s suite wallThe same runner built tested merge
b43ba345a8e810465ea31b03d3a6c80b0f1a4dc8and main baseec90dc1ef23dd9c9dd731479b4431d9b082b78d5. 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
bb642e181e130153894a45f141a5368123bcd487and uses the relocatedlib/solid-bridge.tsimport. 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:fullfor the shared dock surface.createEffectcallscreateRenderEffectcallsuntrackcallsaddEventListenercallsquerySelector/querySelectorAllcallsflushcallsrunWithOwner/getOwnercallsThe two retained
untrackcalls 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-guardsjob117076919000 fails onlydup:check/test-mixed: a 60-line, 402-token clone betweentest/e2e/qa-lab/runtime/gateway-node-control-plane.e2e.test.ts:836–895andtest/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 completetesttree, 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.