Repository navigation
refactor(ui): publish chat workspace state to Solid - #175471
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 workspace redraw callbacks with synchronous owner notifications consumed by the pane’s Solid projection. Example: Open notes.md, then select the Read filter.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-directed refactor completes a distinct workspace publication path, with no actionable introduced defect found; GitHub reports a merge conflict. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI workspace owner receives file, artifact, filter, and navigation changes and supplies loading state, listings, and retained previews to the chat pane. flowchart LR
Actions[Workspace actions] --> Owner[Synchronous workspace owner]
Gateway[Gateway responses] --> Owner
Owner --> Projection[Solid owner projection]
Projection --> Frame[Retained pane frame]
Frame --> Panels[Files and preview panels]
Technical reviewBest possible solution: Complete the workspace-owner projection cutover while preserving synchronous admission, stale-result checks, and retained editor identities. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor, not a reported defect; source inspection confirms the redraw dependency being replaced, and no target code was executed. Is this the best way to solve the issue? The change follows the existing projection contract, preserves synchronous mutable state, and removes the replaced workspace callbacks without creating a second state store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 602362169f51. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +42, Tests +15. Total +57 across 10 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 17, 2026, 7:59 AM ET / 11:59 UTC. |
|
@clawsweeper re-review The runtime conflicts are resolved on |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* refactor(ui): publish chat workspace state to Solid * test(ui): observe workspace owner in file tab harness
What Problem This Solves
Chat workspace files, filters, and preview tabs still depend on a pane redraw callback after their state changes.
User Impact
No intended user-visible change. Files and preview tabs preserve loading, navigation, error, reconnect, and editor behavior.
Why This Change Was Made
A synchronous workspace owner now publishes mutations through the pane's Solid projection. Workspace, preview, and editor objects stay raw, preserving immediate write-then-read behavior and object identity. All 12 workspace
requestUpdatereferences are removed. The runtime's shared state accessor is generalized toreadState()with its callers migrated.The retained frame preserves the workspace, composer, realtime, active-resource, discussion, progress, and lazy-panel-readiness projections. There are no route, markup, stylesheet, selector, or dependency changes. This is one focused slice of chat redraw retirement.
Evidence
git diff --checkaaec90a19e7f@modelcontextprotocol/client; no new unused files or dependenciesNo visual rendering changed, so screenshots are not applicable to this state-publication refactor.
Production LOC: 2,162 → 2,203 (+41); tests: 1,902 → 1,917 (+15). Growth supplies the missing workspace subscription and its first projection consumer. Touched production counts:
requestUpdate15 → 3 (the remaining three belong to other pane behavior),.subscribe(1 → 1,createEffect(2 → 2,untrack(2 → 2, andcreateSignal(2 → 2. Workspace-specific redraw references: 12 → 0.The final tested merge is
f8f907052f75882d39a3e0ca0d8e258cfbfd7b04, based on main65920347cf86d6738252f578e52af0bf40e02d2dand PR headaaec90a19e7f39adbe5611fec436c9c8441950a7. It includes the landed goal, companion, and send-scheduling changes.