Skip to content

refactor(ui): delegate page focus and scroll lifecycles - #178636

Merged
steipete merged 1 commit into
mainfrom
solid2/w-zero-pages-primitives
Oct 20, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-zero-pages-primitives

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Continues the requested Solid audit by removing rendering-driven presence expiry updates and using the shared focus and scroll lifecycles in Custodian.

Related: #178593.

User Impact

No intended user-visible change. Presence still expires without another Gateway event and catches up after hiding; Custodian keeps draft, focus-request, and transcript-scroll behavior.

Why This Change Was Made

Activity now delivers page-owner receipts directly to the existing presence-expiry owner, preserving its absolute-deadline and visibility policy. Custodian uses the existing pending-focus and scroll-position primitives while retaining consumed focus identities, initial-empty suppression, and its separate Markdown/composer and send-admission work.

Production code grows by 15 lines to preserve those lifecycle distinctions; tests grow by 7 lines, and one effect-baseline entry is removed. No new primitive or compatibility path is introduced.

Evidence

  • Three focused files passed: Activity presence, Custodian plugin help, and Custodian surface receipts; 11 tests, 75.64 seconds in Vitest (95.45 seconds including the wrapper and cold setup).
  • UI typecheck, targeted lint and format, the controller guard, and Knip passed. The guard baseline was pruned.
  • Independent Codex review completed with no actionable P0–P2 findings.
  • The existing plugin-help flow now also checks that another owner receipt does not replay focus or scrolling, while a new message still reveals the nearest transcript content.
  • A one-test diagnostic trace located the sampled strict-read warnings in the unchanged mascot effect callbacks. None of its 21 distinct stacks reached the changed page callbacks or the new focus/scroll calls. This is scoped stack evidence, not a baseline replay or a warning-free claim. The diagnostic hook was removed and the reviewed source restored exactly.
  • The first local attempt stopped before tests because the new worktree lacked workspace dependencies. A frozen, physically local install resolved setup; the subsequent focused run passed.

Production ui/src guard counts for this branch's base and head:

Pattern Before After
createEffect 91 90
untrack 46 46
addEventListener 59 59
querySelector(All) 49 49

The remaining Custodian effect binds the specialized composer/Markdown owners to committed DOM and retains alert send admission. Full CI is requested with ci:full; no local build or broad UI suite was needed for this behavior-preserving change.

Drive presence expiry directly from the existing Activity owner receipts. Use shared focus and scroll primitives for Custodian while preserving consumed focus requests and initial empty transcript behavior.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 20, 2026 18:15
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 20, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T18:23:19.072462Z 24f526b Draft marked ready
ℹ️ 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.

@steipete
steipete enabled auto-merge (squash) October 20, 2026 18:26
@steipete
steipete merged commit d292571 into main Oct 20, 2026
145 of 151 checks passed
@steipete
steipete deleted the solid2/w-zero-pages-primitives branch October 20, 2026 18:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
)

Drive presence expiry directly from the existing Activity owner receipts. Use shared focus and scroll primitives for Custodian while preserving consumed focus requests and initial empty transcript behavior.
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. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant