Skip to content

fix: keep the newest Gateway logs reachable - #188476

Merged
steipete merged 2 commits into
mainfrom
solid2/hf-logs-reachability
Oct 30, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/hf-logs-reachability

Conversation

@steipete

@steipete steipete commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the newest Gateway logs becoming unreachable after scrolling through a full retained buffer. Mobile Chromium stopped 516 px short of the end; desktop WebKit could anchor an incoming trim to the previous bottom and stop 22,035 px short.

Related: #184917.

User Impact

The final log row remains reachable with the wheel or End key. Auto-follow keeps following new lines, paused readers retain their position, and mobile WebKit refresh no longer reports a ResizeObserver loop. The 2,000-line retained history stays windowed.

Why This Change Was Made

The immediate parent of 372a1aa5e4a1fba1549bcdb385becb29e91a948b passes the unchanged census scenario; that commit reproduces both failures. Logs now keeps scrolling under its virtualizer: append-following, explicit queued jumps, pending reader input, and cancellation share one owner. Measurements run outside ResizeObserver delivery while compensation can publish before paint. A height-only post-commit callback retries scroll compensation after Solid grows the spacer. Native arrival at the estimated bottom hands off to the virtualizer's end reconciliation as wrapped rows settle.

The regression runs in Chromium and WebKit. CI installs WebKit only for its owning shard and selects the test when Logs changes.

Evidence

Proof Result
Direct-parent causality, mobile Chromium Parent 1/1 pass; #184917 0/1, 516 px gap
Direct-parent causality, desktop WebKit Parent 3/3 pass; #184917 0/3, 22,035 px gap
New bundled browser regression 3/3 pass: mobile Chromium wheel, desktop WebKit wheel, mobile WebKit refresh
Existing Logs unit contracts 20/20 pass
Paused wrapped append, Chromium and WebKit Both pass; visible anchor offset changes by 0 px
Independent review Clean after resolving the same-paint compensation finding
CI browser dependency selection 3/3 pass
Type checking UI and tooling checks pass
Production Knip Pass
First CI run repairs Registered the existing private-server session failure suite; added post-commit compensation after mobile WebKit stalled during initial following
Strict UI build Pass; startup JS 88,728 → 88,720 B gzip, 3 requests; CSS unchanged at 33,539 B gzip, 1 request

The wheel cases assert the last row is fully inside both the stream and viewport, fewer than 100 rows are mounted, and Auto-follow stays off. On mobile the outer page is revealed after the truncation notice appears. Browser scenarios use synthetic data only; no live Gateway or provider credentials are involved. Playwright E2E uses the Node runner; ordinary unit tests use the repository default runtime.

Production Logs LOC: 621 → 668 (+47). The added code handles observed input/measurement ordering and removes the second follow owner. No new direct effects, listeners, DOM queries, flush calls, owner APIs, dependencies, or eager imports; the existing layout primitive owns the post-commit retry. Reports and captures are uncommitted artifacts.

Mobile Chromium

Before:

Before: newest Logs rows remain below the reachable end

After:

After: the final retained Logs row is fully visible

Desktop WebKit

Before:

Before: WebKit remains anchored thousands of pixels above the newest row

After:

After: WebKit reaches the final retained Logs row

The initial-follow failure from CI run 41081909564 passes on Linux in the final CI run after adding virtual-core’s documented post-commit retry. All three Logs browser cases pass. Initial-window failures report geometry and request count.

Testbox tbx_01m66qvcmw1mkg45jcmfxe3fnv (blacksmith-testbox, run 41083792625) was stopped when the command queued; no remote proof is claimed.

Final CI attribution

Full CI run 41084504419 completed: 63 jobs passed, 20 skipped, three E2E jobs failed, and the aggregate remains red. All three Logs cases pass, including mobile WebKit refresh on Linux. Landing uses the native inherited-failure route for these five baseline failures; no tests were disabled or declared passing.

Exact failing assertion Baseline proof
Chat run lifecycle: clears shared session activity when chat error arrives first Same failure on scheduled main run 41080670581, job 124149132614
Catalog request admission: ignores unrelated session churn and reflects its own inventory changes Same initial fixture-tool visibility failure on merge-base bundle e862e5e
Settings loading skeletons: renders both Agent Tools data loads as skeletons Same failure on scheduled main run 41080670581, job 124149132296
Sidebar context breakdown: shows a scoped, non-overlapping breakdown (1440 px and 390 px) Both cases fail on merge-base bundle e862e5e at the same missing files category

The test and rendering source blobs for these failures are unchanged in the CI-tested merge d8a1c8fa3d00. Before admission, the native workflow checks all terminal jobs, source hashes, security, reviewed head, and writer authority.

Keep scroll intent, append following, queued jumps, and measured end reconciliation in the Logs virtualizer. Preserve synchronous compensation while moving ResizeObserver measurement outside delivery.

Regression coverage includes mobile Chromium and desktop WebKit wheel scrolling, paused trimming, and mobile WebKit refresh. Repairs the windowing regression introduced in #184917.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 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 30, 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-30T15:53:13.602201Z fad3e65 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: M labels Oct 30, 2026
@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. labels Oct 30, 2026
Keep virtual-core's pending end adjustment until Solid has committed the spacer height. Add initial-window diagnostics and register the existing session child-failure suite with the serial private-server owner.
@steipete
steipete enabled auto-merge (squash) October 30, 2026 16:07
@steipete
steipete disabled auto-merge October 30, 2026 16:10
@steipete
steipete merged commit 516bbeb into main Oct 30, 2026
132 of 137 checks passed
@steipete
steipete deleted the solid2/hf-logs-reachability branch October 30, 2026 16:31
@steipete

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
* fix(ui): keep newest gateway logs reachable

Keep scroll intent, append following, queued jumps, and measured end reconciliation in the Logs virtualizer. Preserve synchronous compensation while moving ResizeObserver measurement outside delivery.

Regression coverage includes mobile Chromium and desktop WebKit wheel scrolling, paused trimming, and mobile WebKit refresh. Repairs the windowing regression introduced in openclaw#184917.

* fix(ui): retry log scroll compensation after layout commits

Keep virtual-core's pending end adjustment until Solid has committed the spacer height. Add initial-window diagnostics and register the existing session child-failure suite with the serial private-server owner.
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. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. docs Improvements or additions to documentation scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant