Repository navigation
refactor(ui): store session descriptor request status - #179302
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 maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +9. Total +9 across 1 file. 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 21, 2026, 5:22 AM ET / 09:22 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* 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
Whole-scope Solid 2 census
Current PR head
ab4bdd12fea8e450e7cdc37d3c65c773b83094bcis a one-line test-only child of2022f0bfc60a4c217e8e2021018b61a5ebdc6ef8. 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 parent53a236d1e49d50661d35f0f51fadadd3a1e63e32→ tested merge68ac0a0d6697c07044b4fa1f641c3d2daca73c7b. 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 isfc3a42a7eb87a906597187f18db62201020d275b; 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.
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,affectsorRevealcalls; the named ownership/lifecycle exceptions do not justify introducing them solely to increase API usage.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:ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.tsui/src/e2e/chat-managed-media-order.real-gateway.e2e.test.tsui/src/e2e/chat-session-diff-folding.real-gateway.e2e.test.tsui/src/e2e/command-palette-search.real-gateway.e2e.test.tsui/src/e2e/profile-page.real-gateway.e2e.test.tsui/src/e2e/solo-widget-chrome.e2e.test.tsThis 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
53a236d1e49d50661d35f0f51fadadd3a1e63e32→ CI merge68ac0a0d6697c07044b4fa1f641c3d2daca73c7b: 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.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.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 run39625982450attempt 1: latest completed scheduled main run39635924183matches 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 parent997c7419reproduced the sameagent-page-scope.e2e.test.ts:328geometry assertion (belowCardandanchoredToCard: expectedtrue, receivedfalse;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:
Control UI agent page scope > scopes pages from the chip and keeps Agents settings independentcompact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switchercompact-identity-menu.e2e.test.ts:45, caller 94:expectUnclippedexpected false to be trueControl UI native-nav sidebar toggle E2E > hosts navigation, search, sessions, and history in web titlebar chromenative-nav-sidebar-toggle.e2e.test.ts:351: expected box shadow other thannoneThe solo-widget failure is not inherited. The shared
showDashboardMenuhelper now waits for its existingdata-phase="open"contract after visibility andaria-expanded, before clicking a menu action. The failing trace clicked Remove duringopeningand delivered no item pointer event; board/cell identity and admission were current. The overlay owner already marksopenafter 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 isf0fcb96965916406a76c64380942bf14e79b4d69, main parent997c7419fca77b205e9d547394c5a8be90838d99, selected headab4bdd12fea8e450e7cdc37d3c65c773b83094bc; 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.