Skip to content

refactor(ui): finish display cleanup and enforce Solid idioms - #177472

Merged
steipete merged 6 commits into
mainfrom
solid2/w-idiom7-rest-memos
Oct 19, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-idiom7-rest-memos

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Several settings/pairing views allocate memo nodes for cheap display values, and Inbox approval focus forces a synchronous render flush. The wave-zero guard also lacks shrink-only limits for Solid flush/owner calls and cannot reject constant-only memos.

User Impact

No intended visual or behavioral change. Fifteen display memos become tracked accessors or direct JSX reads. Inbox approval focus settles after the DOM commit and retains the existing disposal, presentation-generation and connected-target checks. Native editable-input, collection, image-loading and resource equality boundaries stay intact.

Why This Change Was Made

The guard now counts actual Solid flush, getOwner and runWithOwner imports, including aliases, namespaces and optional/computed calls. Domain methods and shadowed locals are excluded. New per-file baselines can only shrink. An option-free memo that returns only a literal is rejected; property/equality, async and option-bearing memos keep their contracts. The existing four ratchets retain their counting semantics.

The chat prerequisite #177461 and the retained-content/focus cleanup #177460 are merged. This PR combines the final seven-file display cleanup with its enforcement, so the new baselines include the removed Inbox flush immediately. No imports, dependencies, routes, host tags, classes, or lazy boundaries change.

Evidence

Check Result
UI typecheck pnpm tsgo:ui passes, including after integrating main
Script typecheck Pass with tsrs
Focused display consumers 3 files / 47 tests passed on default pinned Bun
Guard fixtures 36 distinct cases passed; aliases, namespaces, lexical shadows, type-only imports, literal-only memos and ratchet lifecycle
Conflict-resolution E2E cases Both pass after adopting main; Playwright config uses Node
Targeted lint / format / diff Direct oxlint, oxfmt and diff checks pass; wrapper setup timeout recorded below
Production Knip Pass on the combined head; no findings
Independent autoreview through P2 Final combined review scoped clean
Runtime startup comparison on the original production head 324,344 → 324,358 B gzip (+14 B); 7 JS and 1 CSS request unchanged; strict check passed
Broad validation ci:full selected for the final head

The startup measurements compare the original reviewed production head with its base. Later policy changes add no runtime code; integration with newer main will be covered by final-head CI. No local broad suite or parity run was added. Markup and styling are unchanged, so visual screenshots are not applicable.

Before / after

The seven UI production files shrink 3,060 → 3,054 LOC (−6), memo calls 116 → 101, and flush calls 1 → 0. The initial global guard baselines on the final integrated head are 6 flush / 10 getOwner / 18 runWithOwner. Existing global ratchets stay 91 effects / 47 untrack / 59 listeners / 49 DOM queries. The checker grows 261 → 461 LOC (+200) for import/scope-aware counting; guard fixtures grow 269 → 380 (+111). Across all 15 files the diff is +401 / −51 lines, including the three initial baselines and their documentation; the runtime UI still shrinks.

CI follow-through

An earlier run exposed two E2E fixture timing assumptions. The lazy preview could load after the persistence debounce, and a one-shot visibility probe could skip the lazy Skills action. Both corresponding fixes are now on main (#177509 and 003d08f), so the conflict resolution adopts main's versions verbatim; this PR adds no changes to those E2E files. The original assertions remain intact. The final seven UI changes are the original production patch, plus the guard and its fixtures.

The initial mock-exports failure was independently reproduced on the exact base and is now fixed on main. Final-head CI is required; no current failure is waived.

The targeted lint wrapper hit its 300-second Plugin SDK declaration-build timeout before lint execution. Direct oxlint on the three changed script/test files with the same config and tsconfig passes; oxfmt and diff checks pass. This is recorded as an environment/setup gap, with final-head CI still required.

Prior-head CI (0a83b4a02aa5, run 39295767929) completed all 70 jobs: every non-skipped job passed except the stale ACP mock allowance and its aggregate. That exact failure was reproduced on main parent b8f91cb249b8; full UI, E2E and real-Gateway coverage passed. GitHub repeatedly left mergeability UNKNOWN, so current head 470871a3477c merges main ea16ec5335c2 without conflicts to force recomputation. Its real diff is the same 15 files. UI types, the guard and fresh independent review pass. New-head CI is required; old-head evidence is not presented as current-head success.

Current-head run 39302662579 reports check-docs failing only at pnpm format:check, naming src/agents/tools/nodes-tool-media.ts. The exact targeted formatter failure, including matching oxfmt/Bun parity, reproduces on the tested main parent ea16ec5335c2. The file is outside this PR’s diff. All 70 jobs are now terminal. Every other non-skipped job passed, including full UI, browser and real-Gateway coverage; only this formatting failure and its aggregate remain red. Native inherited-failure recovery records the exact base reproduction and matching input blobs.

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

clawsweeper Bot commented Oct 19, 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 19, 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-19T18:34:22.032512Z 470871a 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.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 19, 2026
@steipete
steipete enabled auto-merge (squash) October 19, 2026 16:36
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces display-only memos with reactive reads and restores Inbox approval focus after Solid settles.

Example: Approve Inbox item selected while item remaining stays visible.

  • Before: The UI forces a synchronous flush before focusing remaining.
  • After: The UI waits for settlement before focusing remaining, preserving panel-generation checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is narrow and source-consistent, with reported focused harness coverage; shipped-entry-point behavior has not been demonstrated.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal refactor is outside the ordinary contributor proof gate; the supplied evidence reports focused harness checks rather than shipped-browser execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No visible defect is claimed; the change reduces reactive bookkeeping while preserving settings and Inbox behavior.
Reason: The maintainer-directed change follows the repository's Solid guidance, removes unnecessary machinery, and retains meaningful equality and lifecycle boundaries.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a focused, maintainer-directed simplification with no actionable correctness or security findings; exact-head CI is still running.

Priority: P3
Reviewed head: 9cf4ec35fc50222f6e691b3352769844c1f54517

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied browser run exercises approval focus after settlement; the reported focused harness run covers the initiating-panel and reopened-panel cases.
Agent review details

How this fits together

Control UI views consume application projections and reactive props, render settings and Inbox controls, and forward mutations to existing application owners.

flowchart LR
  A[Application owners] --> B[Reactive projections and props]
  B --> C[Settings views]
  B --> D[Inbox panel]
  D --> E[Approval owner]
  E --> B
  D --> F[Settled focus recovery]
Loading

Technical review

Best possible solution:

Retain the focused simplification and existing equality and focus-lifetime boundaries.

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

No product bug is claimed; source inspection confirms redundant display computations and the synchronous focus flush targeted by this refactor.

Is this the best way to solve the issue?

The patch uses existing reactive reads and Solid's settlement primitive without introducing state or replacing application owners.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 806e3b3609fb.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -6. Total -6 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 31 37 -6
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 7 31 37 -6

Labels

Label changes:

  • add P3: This is internal UI simplification with no intended user-visible behavior change or established urgent defect.
  • 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 internal UI simplification with no intended user-visible behavior change or established urgent defect.
  • 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 19, 2026, 12:37 PM ET / 16:37 UTC.

@steipete
steipete disabled auto-merge October 19, 2026 16:51
@steipete steipete changed the title refactor(ui): simplify display values and Inbox focus refactor(ui): finish display cleanup and enforce Solid idioms Oct 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M and removed size: S labels Oct 19, 2026
@steipete
steipete merged commit be00d75 into main Oct 19, 2026
117 of 122 checks passed
@steipete
steipete deleted the solid2/w-idiom7-rest-memos branch October 19, 2026 19:00
@steipete

Copy link
Copy Markdown
Contributor Author

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

steipete added a commit that referenced this pull request Oct 19, 2026
Create the three empty Solid guard baselines added by #177472 in the shallow merge fixture. Recognize ESRCH when a terminated process disappears during a /proc stat read in the canonical ownership proof exposed by #173505. Preserve every guard, deadline, and live-child assertion.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…aw#177472)

* refactor(ui): remove display-only memo and focus bookkeeping

* test(ui): warm lazy preview before teardown assertion

* test(ui): await lazy skill menu navigation

* refactor(ui): ratchet Solid flush and ownership escapes
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Create the three empty Solid guard baselines added by openclaw#177472 in the shallow merge fixture. Recognize ESRCH when a terminated process disappears during a /proc stat read in the canonical ownership proof exposed by openclaw#173505. Preserve every guard, deadline, and live-child assertion.
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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant