Skip to content

fix(ui): avoid reactive read warnings in picker scrolling - #174436

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-picker-scroll
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-picker-scroll

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Opening or navigating a picker emits Solid's STRICT_READ_UNTRACKED warning because its scrolling effect rereads the highlighted item outside the tracking phase.

User Impact

Keyboard selection, scrolling, search, focus, and menu layout stay the same. The picker no longer produces this reactive-read warning.

Why This Change Was Made

Use the open state and highlighted value already captured by the effect's compute phase. Search and row changes still trigger scroll and fade updates. No new state, effect, listener, dependency, or eager import is added.

Evidence

Proof Result
Regression on merge base 4819b0b923e8 Keyboard wrap, scrolling, and selection passed; the warning assertion failed as expected
Chromium picker browser file, one worker 18/18 passed, including the new regression
UI typecheck Passed
Scoped formatting and lint Passed; three existing warnings on unchanged callbacks
Production Knip Passed; no new ignores
Isolated review No actionable findings (P0–P2)
Broad UI, browser-extension, and real-Gateway proof ci:full requested
Startup bytes, same-machine exact base/head builds and strict checks JS: 339,543 → 339,532 B gzip (−11 B), 7 requests. CSS: 38,786 B, 1 request on both sides. Chat: −52 B; New Session: −38 B. Both passed.

This is a nonvisual effect correction: markup, styles, classes, tags, routes, and lazy boundaries are unchanged. The browser regression exercises actual keyboard and scroll behavior; no screenshot change is claimed.

Touched production metrics (select-picker-view.tsx):

Metric Before After
LOC 605 604
Controller references 0 0
createEffect 3 3
createRenderEffect 0 0
untrack 3 3
addEventListener 0 0
querySelector 0 0
Hand-built class strings 0 0
flush 0 0
Owner capture 0 0

Test LOC: 546 → 578. The added case covers the actual warning plus keyboard wrap, visible scroll position, and selection through the public picker.

Exact-head CI attribution

Run38933973964 completed on the reviewed head. All selected jobs passed except UI E2E5 and its downstream gate. The sole failing test is Plugin skill bundle routes > opens the full bundle from installed settings without installing it (plugin-skills.e2e.test.ts:177): computed webkitLineClamp was empty instead of 2, on the initial description before opening a picker.

The actual tested merge 117fa4c463db has base cee2191da55b and changes only the two picker files. Plugin pages, styles, fixtures, app/lib sources, build/test configuration, scripts and dependencies have identical Git objects to that base. Latest scheduled main run38932746006 passed UI E2E5, so this is recorded as a plainly unrelated source failure, not a matching-main failure or confirmed flake. Landing uses the authorized native admin route; the failing run is not relabeled green.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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 16, 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-16T16:44:09.873829Z 17acdbc PR opened
ℹ️ 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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-environment Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The picker’s scrolling effect consumes its captured open state and highlighted value instead of rereading reactive state during application.

Example: Open a 30-option model picker with fixture/model-0 selected and press ArrowUp.

  • Before: The picker reveals Model 29 but emits STRICT_READ_UNTRACKED.
  • After: The picker reveals Model 29 without that warning and still wraps back to Model 0 for selection.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-correct, with a meaningful browser regression; supplied behavior evidence remains harness-based and broad CI is still pending.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its supplied evidence exercises the actual picker owner in a Chromium browser harness, with base-failing and head-passing warning assertions, rather than a shipped application capture.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening or navigating a picker produces a Solid reactive-read warning.
Reason: The existing feature owner makes a narrow correction to a documented reactive contract while preserving the picker’s established behavior.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes a focused correction to the picker’s Solid effect, and current main still contains the offending reactive read. No actionable correctness or security findings were found.

Priority: P3
Reviewed head: 17acdbc8ebef43772122ffe91dc6ac062b6fd6c4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not include a shipped Control UI console trace of opening and navigating the picker.
Agent review details

How this fits together

The shared Control UI picker receives options and selection callbacks, delegates navigation to the menu machine, and applies highlight scrolling and fade attributes to its list.

flowchart LR
  A[Model picker options] --> B[Shared picker]
  B --> C[Menu navigation machine]
  C --> D[Tracked effect preparation]
  D --> E[Scroll and fade updates]
  B --> F[Selection callback]
Loading

Technical review

Best possible solution:

Consume the effect’s captured values while retaining the existing navigation, search, row, and fade behavior.

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

Source tracing confirms that effect application rereads the menu revision through active(); the PR reports a base-failing warning assertion, but this review ran no target code.

Is this the best way to solve the issue?

This is the smallest appropriate correction: it uses facts already captured by the existing effect and preserves every triggering dependency.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 50ef1857adb2.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change: The pinned diff replaces reactive reads in effect application with the already captured tuple values; query and row dependencies, scrolling, and fade updates remain. (ui/src/components/select-picker-view.tsx:303, 17acdbc8ebef)
  • Current main still needs the correction: Fetched main still calls active() in the effect’s apply callback; active() reaches the menu adapter’s reactive revision signal. (ui/src/components/select-picker-view.tsx:307, 50ef1857adb2)
  • Verified source provenance: The retained-ref refactor replaced a DOM lookup with optionElements.get(active()), introducing the reactive read in apply; its stated intent was to preserve keyboard navigation and scrolling. (ui/src/components/select-picker-view.tsx:307, 8fda96471f42)
  • Focused browser regression: The added case exercises public picker keyboard navigation, visible scrolling, wraparound selection, and the actual warning. The complete PR body reports the warning assertion failing on the merge base and all 18 Chromium cases passing afterward. (ui/src/components/select-picker.browser.test.tsx:50, 17acdbc8ebef)
  • Applicable Solid contract: Repository guidance requires reactive facts to be captured in the compute phase and identifies STRICT_READ_UNTRACKED in apply callbacks as a defect; the patch follows that contract. (.agents/skills/solid/references/idioms.md:368, 17acdbc8ebef)
  • Review limitations and checkout integrity: Root and scoped UI instructions were read and applied. The maintainer-notes directory and installed Solid cheatsheet are absent; one extended history search encountered an unavailable old blob, while the responsible change was independently readable. No target code was executed, and the checkout remains clean. (ui/AGENTS.md, 17acdbc8ebef)

PR surface

Source -1, Tests +32. Total +31 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 7 8 -1
Tests 1 32 0 +32
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 8 +31

Review metrics

Metric Value Why it matters
Production versus test LOC Production −1 net line; tests +32 lines A single browser regression protects the warning and visible keyboard behavior without adding production machinery.

Labels

Label changes:

  • add P3: The reported defect is a development-console warning; the supplied base regression reports keyboard selection and scrolling already working.
  • 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: The reported defect is a development-console warning; the supplied base regression reports keyboard selection and scrolling already working.
  • 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 16, 2026, 12:55 PM ET / 16:55 UTC.

@steipete
steipete merged commit 53840c8 into main Oct 16, 2026
111 of 115 checks passed
@steipete
steipete deleted the solid2/w-idiom-components-picker-scroll branch October 16, 2026 17:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

vincentkoc added a commit that referenced this pull request Oct 16, 2026
…158510

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…esafe-decision-native

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)

# Conflicts:
#	src/agents/decision-inference.integration.test.ts
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-tool-v2-proof-20261016

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)

# Conflicts:
#	docs/plugins/sdk-overview/capabilities.md
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
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: XS 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