Repository navigation
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 defers remembered Access preference requests until the Access controls appear and disables only Access while loading. Example: Open Access with a remembered daybreak_red choice while the preference response is delayed.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR removes unnecessary preference work while preserving the existing selection owner; no introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI presents session settings through the existing DraftPreferenceState owner, which loads authenticated preferences, merges writes, and rejects stale identity results. flowchart TD
A[Effort menu opens] --> B[Visible Access controls]
B --> C[DraftPreferenceState]
D[Gateway identity updates] --> C
C --> E[User preference RPCs]
E --> F[Remembered choice and loading state]
F --> B
Technical reviewBest possible solution: Keep preference loading at visible Access demand while retaining the existing identity, persistence, and mutation owners. Do we have a high-confidence way to reproduce the issue? Current-main source directly shows preference synchronization during composer preparation while Access is closed; no target code was executed during this review. Is this the best way to solve the issue? The patch follows the smallest complete approach: remove eager preparation, observe preferences inside the existing lazy subtree, and refresh the same owner after identity changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8163a1d77101. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +39, Tests +207. Total +246 across 9 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 30, 2026, 1:26 PM ET / 17:26 UTC. |
|
Closing this candidate after reviewing the complete 240-capture trial (20 observations per base, A/A control, and candidate in each cold/warm × localhost/100 ms RTT cell). The full cohort supersedes the earlier partial result: it does not demonstrate a reliable ≥5% CPU or user-facing readiness improvement. Session-switch script CPU changes −2.43% locally / −2.61% at 100 ms RTT against the base, but only −0.82% / −0.34% against A/A. The deterministic 20 → 18 RPC reduction is real, but this fixture includes a first-use preference migration; the patch moves that work to opening Access rather than eliminating its eventual cost. Retained adverse tails include localhost Sessions/Cron readiness p95 (+28.74%/+38.15%) and 100 ms RTT Cron script CPU p95 (+27.82%, +22.37% against A/A). Their cause remains unresolved; these measurements do not support blanket acceptance. The 15 relevant owner/test inputs are unchanged from the measured base through current main source checks. Keeping the simpler eager owner is the better tradeoff without a demonstrated readiness benefit. Auto-merge was already confirmed cancelled; this closure does not re-arm it. No new runtime measurements or production changes were made for this disposition. |
What Problem This Solves
Chat loads remembered Access preferences when a session opens or switches, even while the Access controls are closed.
User Impact
Chat avoids that unused preference work until the controls are opened. While the remembered choice loads, only Access is disabled; effort and speed stay usable.
Why This Change Was Made
The visible Access subtree now requests and reads its preference. The existing preference owner still handles identity changes, stale results, field merging, and write authority. No route or lazy boundary changes.
Evidence
Reviewed comparison:
05c217914f11b987eb7b96da52a86618e1127e12→5ca510182998a15fe28c9a833a66634092fa892b.isSameReplyToolAuthorityConversation,dispatchGatewayLifecycleMethod,prepareTtsRequest,SessionFilePreviewResource,SessionHtmlPreviewResource, andSessionHtmlPreviewPlan. No UI finding or new ignore.ci:full)The 51 distinct passing cases above are evidence from the retained pre-integration runs plus the fixture-only rerun, not a claim that all three files were rerun together on the final head.
Asset sizes
These small compressed-size changes are not timing evidence. Raw startup JS is unchanged at 278,314 B; raw Chat JS grows by 392 B. Each frozen bundle retains its native build identity.
Visual proof
Synthetic fixture, 1280×900, light theme. The opaque box redacts a feature label; the rest of each captured frame is unchanged. Both sides retain the remembered choice and usable effort controls.
Before, preference load held:
After, preference load held:
Before, remembered choice loaded:
After, remembered choice loaded:
Full timing, CPU, work counts, and limitations
Accepted as a focused reduction in unnecessary preference work, with the limitations below explicitly retained. This is not a claim of a ≥5% readiness or CPU win, or an all-metrics pass of the broader readiness audit.
The completed trial contains 240 captures: 20 observations per base, A/A control, and candidate in each of four cells. Two planned batches each contain five forward and five reverse triplets. Both orders and all finite tails remain in the report; no historical or cross-candidate pooling. The independent numerical verifier checked 1,346 metric rows with zero mismatches. All bundles retained their native build identities; the warm seed used snapshot projection 13 and database 8.
Headless Chromium ran against the synthetic Gateway on the same shared Mac, at localhost and a simulated 100 ms RTT. Recorded one-minute host load ranged 14.73–61.34. The A/A control shows substantial wall-time variation, so affected script/task CPU over all 20 observations and structural counts govern this limited acceptance. Table values are arithmetic median / nearest-rank p95. The percentage column is the within-triplet paired median change / distribution p95 change against the base; it is not the ratio of table medians.
Work removed while Access remains closed
The switch removes 2 RPCs (10%) and 2,501 response bytes (2.04%) in every observation. The omitted work is the preference read and first-use migration write. This relocates preference work to visible Access demand; it does not eliminate the eventual cost if Access is opened. The fixture lacks
new-session.migration.v1, so the measured two-request saving is specific to that first-use profile. This trial does not establish the magnitude for already-migrated profiles, real Gateway/provider latency, or a weighted production workload.Readiness and session switch
Script and task CPU
The smaller full-cohort switch result supersedes the stronger partial ten-observation result. Against the A/A control, switch script CPU paired medians change −0.82% locally / −0.34% at 100 ms RTT; switch task CPU changes +1.14% / −0.97%. There is no demonstrated ≥5% CPU gain. Cold and streaming CPU are near flat on this host, and no affected aggregate script/task CPU cell establishes a regression beyond the pinned 20% limit.
Typing, tails, and missing observations
All 120 warm captures delivered 645 deltas, retained the exact 43-character draft, and recorded 43 sent and 43 observed inputs, one pane render, no duplicate row keys, and zero final distance from the transcript tail. The native sender runs until stream completion; 43 is the observed count in this cohort, not a fixed-work contract. Streaming CPU includes that typing work, and streaming elapsed time also joins the sender's pending sleep. No pooled per-keystroke or normalized-work claim is made.
The following adverse observations remain part of the accepted limitation, rather than being called clean:
For localhost warm reload, cached-only transcript visibility is not observed in any role (20/20 missing per role); cached and retained-at-catchup rows are zero. Composer readiness, cache reads, and later transcript paint do not substitute for that missing outcome. At 100 ms RTT, cached-only transcript visibility is observed: base/A/A/candidate median is 1,422.25/1,421.00/1,417.00 ms, and the candidate p95 changes +0.20% against base. Snapshot seed metadata matches across roles but does not prove byte-identical storage between invocations.
Optional disclosures also include unavailable session-switch CLS, unavailable localhost warm anchor shift, absent raw frame-sample counts, and fractional timer deadlines. Per-delta text visibility is intentionally disabled in this untraced mode, so no per-delta paint-latency claim is made. All 16 part validations completed with 15 samples and only these optional disclosures; failed or missing observations were not replaced with zero.
This limited acceptance rests on the deterministic request reduction and the affected CPU/behavior evidence. The named tails and missing cached-only visibility remain unresolved for the broader readiness audit.
Size and Solid ownership
Nine changed files: six production and three tests. Physical LOC (including comments and blank lines): production 2,513 → 2,552 (+39); tests 2,019 → 2,226 (+207); total 4,532 → 4,778 (+246). The added production code scopes the preference read to visible demand, refreshes an already-demanded owner after identity changes, and preserves early-write preparation.
The textual Solid checklist census across the six production files is
createMemo10 → 11 andonSettled0 → 1. Rendering controllers, effects, render effects,untrack, direct listeners, DOM queries, hand-built class strings,flush, owner APIs,createRoot, signals, and component cleanup hooks remain 0 → 0. The new memo derives the owner's preference snapshot; the settled callback requests preparation from that same owner.