Repository navigation
refactor(ui): own desktop keyboard in Solid - #174143
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 moves desktop keyboard setup, textarea access, and cleanup into the Solid panel owner. Example: Dispose a desktop panel after holding Shift in its Keyboard field.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored lifecycle refactor is coherent, and no introduced correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI keyboard bridge translates textarea edits and keyboard events into input for the current authenticated desktop connection. flowchart LR
A[Desktop document textarea] --> B[Solid keyboard owner]
B --> C[Connection handoff owner]
C --> D[Desktop client]
D --> E[noVNC remote desktop]
F[Solid disposal] --> B
Technical reviewBest possible solution: Keep keyboard listeners and textarea state with the Solid panel while the existing connection owner controls remote input. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor; source confirms the legacy ownership pattern, and no target code was executed during this read-only review. Is this the best way to solve the issue? The implementation follows the existing Solid lifecycle pattern, removes the replaced class and adapters together, and preserves synchronous connection admission. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d6fc699ad08. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -6, Tests +16. Total +10 across 7 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 16, 2026, 7:24 AM ET / 11:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Desktop mobile keyboard listeners and textarea access still used a manually managed class after the panel moved to Solid.
User Impact
No intended user-visible change. Composed typing, paste modifiers, trusted focus changes, control handoff, and native close before mounting retain their existing behavior.
Why This Change Was Made
Create the keyboard inside the panel's Solid owner, capture its textarea with a ref, and dispose listeners and retained modifier state with that owner. The textarea owns its sentinel and composed-text value; rendering no longer rewrites it. The existing connection owner continues to admit remote input synchronously. The old class and forwarding props disappear together.
Evidence
The behavior suites ran once. Later changes only clean up identifiers/braces, return listener cleanup directly from
onSettled, and remove redundantuntrackfrom component setup; final lint and review cover those changes. No local broad suite, E2E, parity or remote lease. No startup imports, lazy boundaries, tags, classes or visible layout changed, so no local build or screenshots; CI supplies the startup-byte proof above. The job reports candidate startup JS but no separate base startup-JS total; no base JS number is inferred.createEffectcreateRenderEffectuntrackaddEventListenerflushrunWithOwner/getOwnerMetrics compare the five touched production files with
fd1511568e8160d9193c5364dbabb830719da5d5. Production decreases by 6 lines; test LOC is 494 → 510 (+16). The keyboard class is removed, although its name did not match the controller checklist. The remaining panel controller and its commit fence are outside this focused keyboard cut.The five failures are
Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at {1440,1100,768,640,390}pxinmodel-providers-layout.e2e.test.ts. They compare six expected roles with seven rendered roles, including “Utility Fallback Model.” Feature #173906 is already in tested baselined455830f9bff6ff0e978d0c452f700c4a60f1a78; the page, locale, assertion and fixtures are byte-identical in tested mergea8b03edd2d7554c6f2ed9b82b54f6941c2e0358b. Scheduled-main 38887900861 predates that feature and passed UI, so this is unrelated-source evidence, not a matching-main failure claim. E2E6/9 passed 95 other files/433 cases. Native admin evidence preserves the red aggregate and admits only this unrelated failure.