Skip to content

refactor(ui): store session descriptor request status - #179302

Merged
steipete merged 5 commits into
mainfrom
solid2/comp-a-descriptor-store
Oct 21, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/comp-a-descriptor-store

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Whole-scope Solid 2 census

Current PR head ab4bdd12fea8e450e7cdc37d3c65c773b83094bc is a one-line test-only child of 2022f0bfc60a4c217e8e2021018b61a5ebdc6ef8. Production inputs are unchanged, so the named earlier CI merge/base source census and same-machine runtime comparison below remain applicable. The new readiness test line is counted separately in the final touched-test table.

This is the exact CI merge-context comparison for PR head 2022f0bfc60a4c217e8e2021018b61a5ebdc6ef8: first parent 53a236d1e49d50661d35f0f51fadadd3a1e63e32 → tested merge 68ac0a0d6697c07044b4fa1f641c3d2daca73c7b. Every source is a blob from those named commits; no other PR or working-tree overlay is included. The branch is behind this CI base, so comparing the branch head directly with that later base would include unrelated main changes and is not used here. Its source-PR merge base is fc3a42a7eb87a906597187f18db62201020d275b; the source paths for that original head match its named CI merge context.

Counts are actionable sites, with allowed survivors named below. The loader change in #179247 remains unmerged in this comparison and receives no credit here.

File family Files 1 stale native handlers 2 component cleanup 3 pure-read flags 4 mutation feedback 5 manual renderer loaders 6 copied structured signals 7 manual createComponent 8 throw-only context 9 missing sibling Reveal 10 disallowed owner APIs
app-sidebar* 42→42 0→0 0→0 0→0 0→0 1→1 0→0 0→0 0→0 0→0 0→0
sidebar-* 40→40 0→0 0→0 0→0 0→0 2→2 0→0 0→0 0→0 0→0 0→0
session-* 72→72 0→0 0→0 0→0 0→0 0→0 1→0 0→0 0→0 0→0 0→0
Total 154→154 0→0 0→0 0→0 0→0 3→3 1→0 0→0 0→0 0→0 0→0

The one changed production file is session-details.ts: its loading/error presentation now uses a draft-updated store instead of replacing an object signal. Synchronous descriptor admission, binding identity, invalidation, cancellation and stale-result checks remain with the capability owner. The async/actions recipe is absent on both exact commits; the installed rc.16 cheatsheet, idioms, lessons and refactor checklist guided the change.

Allowed survivors in the whole scope: the single conditional intrinsic binding uses immutable rail identity; the 11 cleanup registrations belong to synchronous primitives, memo runs or foreign-DOM registrations; the three read adapters retain descriptor admission, cancellable image custody or repository permission/submit ownership; mutation feedback uses existing actions/optimistic flags or authoritative owner commands, except the explicit document-reload retry receipt; runtime imports outside the three pending renderer loaders perform imperative operations or custom-element registration; remaining structured signals hold atomic popup geometry, a resettable reload receipt, immutable target identity or the mutable PlaceBrowser owner; optional context defaults support standalone rows/previews; placement Loading regions activate independently; the four explicit owner calls mount and dispose foreign-DOM islands.

Refactor-checklist counts (app-sidebar / sidebar / session) are unchanged: effects 3/0/4, render effects 0/0/0, untrack 3/1/0, direct TSX listeners 0/0/0, DOM queries 0/0/2, flush 0/2/0, handwritten createComponent 0/0/0. Imported Solid action constructors remain 0/3/1, optimistic signals 0/2/1, runtime imports 2/5/12, and ordinary signals 3/15/25→24. There are no isPending, latest, affects or Reveal calls; the named ownership/lifecycle exceptions do not justify introducing them solely to increase API usage.

Family Production LOC before→after
app-sidebar* 14,013→14,013
sidebar-* 8,222→8,222
session-* 14,971→14,980
Whole COMP-A scope 37,206→37,215 (+9)

Touched production LOC is 120→129 (+9) in session-details.ts. The first five test rows use those exact CI base/merge blobs; the newly touched solo-widget row uses the same base and the published test-only child:

Test path LOC before→after
ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts 454→453
ui/src/e2e/chat-managed-media-order.real-gateway.e2e.test.ts 664→679
ui/src/e2e/chat-session-diff-folding.real-gateway.e2e.test.ts 388→388
ui/src/e2e/command-palette-search.real-gateway.e2e.test.ts 904→903
ui/src/e2e/profile-page.real-gateway.e2e.test.ts 143→142
ui/src/e2e/solo-widget-chrome.e2e.test.ts 295→296
All six test files 2,848→2,861 (+13)

This census is source evidence only; test and performance evidence follows.

What Problem This Solves

The descriptor adapter allocated a new {loading, error} record on every reset, request and completion. These presentation fields now use draft store updates. Synchronous request admission, binding identity, invalidation, cancellation, stale-result checks and captured reconciliation receipts remain with their existing capability owner.

The managed-media fixture waits for the acknowledged run's visible rendered indicator before releasing its held provider. Recap, image order, uniqueness, decode and reload assertions remain intact. A pane null check supplies the existing absent-pane return contract to the E2E typechecker. Four isolated Gateway fixtures drop the retired heartbeat property rejected by current strict configuration; their seeded state, assertions and cleanup remain intact.

Evidence

Check Result
Types and focused tests UI tsrs passed; pinned-Bun communication-menu tests7/7. Exact E2E-chat typecheck leaf passed in21.7s after the pane check.
Static checks Original store lint/format, controller guard and production Knip passed. Managed-media readiness types/lint/format passed. Four heartbeat hunks reuse the reviewed identical edits and passing E2E type graphs.
Independent review Original store and pane narrowing scoped-clean through P2. Managed-media readiness reviewed separately; anonymous-key concern declined after tracing this fresh-session publication path. New menu-readiness line is qualified below, with no independent second-branch review claimed.
Exact-pair performance Base 53a236d1e49d50661d35f0f51fadadd3a1e63e32 → CI merge 68ac0a0d6697c07044b4fa1f641c3d2daca73c7b: startup 323,685→323,713 B gzip (+28), Chat 1,497,807→1,497,874 (+67) and New 1,020,057→1,020,103 (+46) both below cap; 1 CSS request /40,501 B unchanged. All24 conditional surfaces pass. Reused because the published child adds only the menu test wait.
Current full CI Run39625982450, attempt1 on ab4bdd12fea8e450e7cdc37d3c65c773b83094bc, completed failure with only the three attributed baseline cases below. All three solo-widget cases pass in e2e4, including the repaired retention case (7,943ms). Performance, both real-Gateway shards, units, types, lint and security-fast pass. Aggregate remains failed; no successful CI-gate claim.
Current CI performance Startup 323,766 B, 1 CSS request /40,501 B; Chat 1,497,349→1,497,343 (−6) and New 1,019,409→1,019,406 (−3); caps pass. This is distinct from the older named same-machine pair above.
Managed-media local replay Interrupted exit143 / ABORT_ERR after300000ms no-output watchdog, no test count or assertion verdict. About65 minutes including36m23.4s runtime build; no repeat. Original missing-recap cause remains unproven despite passing parent real-Gateway CI.
Patched solo local replay Source2022 plus the now-committed exact one-line patch, exact68ac prebuilt assets: native120000ms no-output watchdog, exit143 after180.861s, no assertion/result. All owned processes exited; no build/install/repeat. The local setup gap remains; all three solo cases now pass in exact-head CI. This is not a passing local replay.

Touched production 120→129 (+9); whole scope 37,206→37,215 (+9). Final six touched tests 2,848→2,861 (+13) include the full newly touched solo-widget file. Base and production parent each emitted the same51 existing strict-read warnings in seven tests and zero unowned-effect warnings. No visual, DOM, CSS, route or tag change. No remote lease.

CI failure attribution and readiness repair

Updated inherited-failure evidence for exact descriptor head ab4bdd12 / CI run 39625982450 attempt 1: latest completed scheduled main run 39635924183 matches the compact-identity and native-nav failures by exact test name, assertion, and location. The agent-page case is not attributed from that run. One targeted replay on the actual CI main parent 997c7419 reproduced the same agent-page-scope.e2e.test.ts:328 geometry assertion (belowCard and anchoredToCard: expected true, received false; inViewport: true). It used the supported Node Playwright config, the exact test-name filter, and --maxWorkers=1; Node is required for this Playwright lane. The normal bundled setup built that exact clean base, then the single selected case failed with six cases filtered out (exit 1; 252.653 seconds wall time). No rerun or source edits were made. This is base failure attribution, not passing CI; the PR run and its three failed jobs remain unchanged.

Earlier scheduled runs39626840495 and39617857340 matched all three names at the time; they remain historical evidence. The current qualification uses latest-main evidence for two cases and exact CI-base reproduction for the agent-page case:

Exact test Current qualification
Control UI agent page scope > scopes pages from the chip and keeps Agents settings independent Exact997 CI-base replay: line328, belowCard and anchoredToCard true→false, inViewport true. One case / no repeat.
compact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switcher compact-identity-menu.e2e.test.ts:45, caller 94: expectUnclipped expected false to be true
Control UI native-nav sidebar toggle E2E > hosts navigation, search, sessions, and history in web titlebar chrome native-nav-sidebar-toggle.e2e.test.ts:351: expected box shadow other than none

The solo-widget failure is not inherited. The shared showDashboardMenu helper now waits for its existing data-phase="open" contract after visibility and aria-expanded, before clicking a menu action. The failing trace clicked Remove during opening and delivered no item pointer event; board/cell identity and admission were current. The overlay owner already marks open after one frame and finite entrance animation completion. This adds no production behavior and retains RPC, iframe-retention and menu assertions.

The isolated P0–P2 review of this line completed scoped-clean. It reviewed the loader hunk and explicitly did not independently review the descriptor branch. Descriptor applies the identical hunk to the identical helper (SHA256 882dbb91225c1bee5d8ba8b0a8d4890cf40c52752d0f5e3a5570b58c22a07287) and retains its prior independent full-change review. No separate second autoreview is claimed. Exact-head CI is complete with only the three named inherited failures. Failed-job IDs are119311991012 (agent scope),119311990549 (compact identity), and119311990521 (native navigation); aggregate119327513473 reflects those failures. All solo cases pass in e2e4. The reported CI checkout is f0fcb96965916406a76c64380942bf14e79b4d69, main parent 997c7419fca77b205e9d547394c5a8be90838d99, selected head ab4bdd12fea8e450e7cdc37d3c65c773b83094bc; native object/source attestation is complete; updated evidence retains the later exact-base replay, latest-main signatures and unchanged failed CI. Admission is pending, not a passing gate. The older whole-scope census and same-machine comparison remain explicitly tied to their named runtime pair.

@clawsweeper

clawsweeper Bot commented Oct 21, 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 21, 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-21T14:02:10.799284Z 2022f0b 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the session descriptor’s loading/error object signal with a Solid store and field-level updates.

Example: Opening communication settings for agent:main:settings fails with Settings unavailable, then succeeds on retry.

  • Before: Loading and error presentation update by replacing the status object.
  • After: The same presentation updates through store fields.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-reviewed refactor with relevant reported harness validation and no identified defect; runtime evidence remains limited.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored state-only refactor is outside the ordinary contributor proof gate; supplied validation reports menu harness coverage, with no shipped-entry-point artifact.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No user-visible defect is asserted; communication settings are intended to retain their current behavior.
Reason: The maintainer-directed change adopts the documented structured-state primitive within the existing owner and keeps its scope narrow.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-directed refactor open; the pinned diff preserves request ownership and lifecycle behavior, with no actionable defect found.

Priority: P3
Reviewed head: 4789f02fa3597704585d1173c5b69a815db7552a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The shared session-details adapter connects menu and Sessions-page presentation to the session capability’s descriptor reads and row observations.

flowchart LR
  A[Session menu] --> C[Session details adapter]
  B[Sessions page] --> C
  C --> D[Session capability]
  D --> E[Gateway descriptor request]
  D --> F[Observed session row]
  C --> G[Loading and error presentation]
Loading

Technical review

Best possible solution:

Keep the store conversion within the existing adapter while preserving synchronous admission and canonical row ownership.

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

No broken user behavior is claimed; source inspection confirms the existing object-replacement pattern this refactor addresses.

Is this the best way to solve the issue?

The conversion follows the repository’s structured presentation-state idiom without moving domain authority or introducing a parallel path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session descriptor request presentation keeps the original intent (9cdaf71: The shared Solid factory separated local request presentation from synchronous session admission and canonical row reconciliation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +9. Total +9 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 16 7 +9
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 16 7 +9

Review metrics

Metric Value Why it matters
Production versus test growth Production +9 lines; tests unchanged The growth comes from explicit draft assignments at the existing reset, start, and completion sites, without additional machinery.

Labels

Label changes:

  • add P3: This is an internal presentation-state 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: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is an internal presentation-state 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: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 21, 2026, 5:22 AM ET / 09:22 UTC.

@steipete
steipete merged commit 85ac7fa into main Oct 21, 2026
124 of 131 checks passed
@steipete
steipete deleted the solid2/comp-a-descriptor-store branch October 21, 2026 18:31
@steipete

Copy link
Copy Markdown
Contributor 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 22, 2026
* refactor(ui): store session descriptor request status

* test(ui): await managed run projection before releasing media

* test(ui): narrow managed media pane before querying progress

* test(ui): remove retired heartbeat defaults from gateway fixtures

* test(ui): wait for settled dashboard menu actions
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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