Skip to content

fix(release): preserve gateway fixture close callback - #166348

Merged
RomneyDa merged 8 commits into
release/2026.9.9from
fix/release-2026.9.9-gateway-client-onclose
Oct 7, 2026
Merged

RomneyDa merged 8 commits into
release/2026.9.9from
fix/release-2026.9.9-gateway-client-onclose

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • restore the source fix contract for the onClose option in the 2026.9.9 backport
  • retain the claimed Gateway listener until transport startup adopts it
  • unblock the candidate prod-type and listener-ownership qualification lanes

Evidence

Consolidated 2026.9.9 fixes

This PR carries every known remaining 2026.9.9 blocker; #166024 and #166031 are closed as superseded.

  • onClose fixture type contract (FRV check-prod-types / check-test-types*)
  • Gateway listener claim through startup (FRV checks-node-agentic-control-plane-runtime, EADDRINUSE)
  • explicit Gateway test ports
  • fix(ui): collapse empty child-attention gaps above composer #166347 composer child-attention gap backport
  • product fix: a smooth end-follow already at the end retired itself without capturing the end anchor, so measured stream growth (e.g. a 14-paragraph delta) was never followed and the reader stayed ~1000px above the end. scrollToEnd now captures the edge for that no-op. Reproduced locally 3/11 failures (incl. the exact CI 1124 <= 8 own-submit miss) before; 5/5 passes after. Same flake class seen on main scheduled CI.
  • real-Gateway collaborator scroll proof: wait for the streamed paragraph to render, then poll follow with a 15s budget instead of vitest's 1s default

@clawsweeper

clawsweeper Bot commented Oct 6, 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.

@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 6, 2026, 9:23 PM ET / October 7, 2026, 01:23 UTC (Revision 5).

ClawSweeper review

What this changes

This PR repairs Gateway test callback and listener handling, backports compact chat-composer spacing, and preserves follow-to-end behavior when streamed content grows.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this member-authored release-branch PR remains useful. No introduced correctness defect was found, and the previously undocumented scroll failure now has a concrete explanation and reported before/after results.

Priority: P2
Reviewed head: 2f0d9dcc6f4633efa36ea5896eea1df6bed45d17

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported repair with inspected visual evidence and a documented scroll investigation; required test-cost disclosure remains.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop/mobile before-and-after images directly support the composer-spacing backport. The body reports real-Gateway streamed-growth failures before the end-anchor repair and five passing runs afterward; these runs were not independently executed here. The member-authored PR is exempt from ordinary external-contributor proof, and no authority or stored-data compatibility gate is triggered.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected desktop/mobile before-and-after images directly support the composer-spacing backport. The body reports real-Gateway streamed-growth failures before the end-anchor repair and five passing runs afterward; these runs were not independently executed here. The member-authored PR is exempt from ordinary external-contributor proof, and no authority or stored-data compatibility gate is triggered.
Evidence reviewed 8 items Pinned introduced changes: Reviewed the merge-base-to-head patch supplied by the host, including callback typing, claimed-listener adoption, explicit-port preservation, rendered-stream waits, end-anchor capture, and composer selectors.
Listener ownership and callback contract: The fixture reserves and adopts the existing claim before startup, retains cleanup after rejected shutdown, and preserves explicit numeric ports. The client helper already forwards options.onClose; the changed type now permits callers to supply it.
Prior scroll concern addressed: Compared with the previously reviewed head, the new production change captures the end anchor after a smooth no-op retires its command. The offset owner explicitly retires such commands at the physical end, supporting the stated causal explanation.
Findings None None.
Security None None.

How this fits together

Gateway fixtures start isolated servers and clients for validation. The Control UI receives streamed chat content and uses transcript anchoring and composer layout rules to preserve the reader’s position.

flowchart TD
  A[Gateway test inputs] --> B[Listener reservation]
  B --> C[Gateway server and client]
  C --> D[Validation results]
  E[Streamed chat content] --> F[Transcript end anchoring]
  F --> G[Reader viewport]
  H[Composer notices] --> G
Loading

Before merge

  • Complete next step (P2) - Record measured wall times for materially changed tests and available CI timings in the PR body.
Agent review details

Security

None.

PR surface

Source +7, Tests +27. Total +34 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 13 6 +7
Tests 5 40 13 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 53 19 +34

Review metrics

None.

Technical review

Best possible solution:

Keep listener custody and chat anchoring with their existing owners, and carry these focused repairs into the release candidate.

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

Yes, from source: smooth follow can retire at the existing end without capturing an anchor before subsequent measured growth. The body reports a matching real-Gateway failure and after-fix runs; this review did not execute them.

Is this the best way to solve the issue?

Yes. The patch repairs the existing listener and transcript owners and synchronizes assertions with rendered content while retaining the original end-distance requirement.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 98567acd6060.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: These bounded release-validation and chat-presentation repairs warrant normal priority; pending checks alone do not increase urgency.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected desktop/mobile before-and-after images directly support the composer-spacing backport. The body reports real-Gateway streamed-growth failures before the end-anchor repair and five passing runs afterward; these runs were not independently executed here. The member-authored PR is exempt from ordinary external-contributor proof, and no authority or stored-data compatibility gate is triggered.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected desktop/mobile before-and-after images directly support the composer-spacing backport. The body reports real-Gateway streamed-growth failures before the end-anchor repair and five passing runs afterward; these runs were not independently executed here. The member-authored PR is exempt from ordinary external-contributor proof, and no authority or stored-data compatibility gate is triggered.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected desktop/mobile before-and-after images directly support the composer-spacing backport. The body reports real-Gateway streamed-growth failures before the end-anchor repair and five passing runs afterward; these runs were not independently executed here. The member-authored PR is exempt from ordinary external-contributor proof, and no authority or stored-data compatibility gate is triggered.

Evidence

What I checked:

  • Pinned introduced changes: Reviewed the merge-base-to-head patch supplied by the host, including callback typing, claimed-listener adoption, explicit-port preservation, rendered-stream waits, end-anchor capture, and composer selectors. (2f0d9dcc6f46)
  • Listener ownership and callback contract: The fixture reserves and adopts the existing claim before startup, retains cleanup after rejected shutdown, and preserves explicit numeric ports. The client helper already forwards options.onClose; the changed type now permits callers to supply it. (src/gateway/test-helpers.e2e.ts:313, 2f0d9dcc6f46)
  • Prior scroll concern addressed: Compared with the previously reviewed head, the new production change captures the end anchor after a smooth no-op retires its command. The offset owner explicitly retires such commands at the physical end, supporting the stated causal explanation. (ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts:613, 2f0d9dcc6f46)
  • Recorded investigation and remaining cost disclosure: The captured body reports three failures in eleven pre-fix runs and five passing after-fix runs through the real-Gateway collaborator scenario. A live REST read confirmed the same head and body. It documents the product cause but still omits measured test wall times and available CI timings requested in the previous review. (ui/src/e2e/chat-collaborator-scroll.real-gateway.e2e.test.ts:302, 2f0d9dcc6f46)
  • Inspected visual backport proof: Inspected all four prepared desktop/mobile before-and-after images linked from fix(ui): collapse empty child-attention gaps above composer #166347. They directly show tighter spacing between the pull-request bar and composer. That PR is merged on main; this branch backports its matching selectors and geometry regression. (ui/src/styles/chat/composer-surface.css:27, 2f0d9dcc6f46)
  • Current-main and release-target distinction: Current main has related listener and end-anchor repairs, including a differently expressed smooth-no-op capture. The verified PR target is release/2026.9.9, so current-main overlap does not make this release repair redundant. The supplied latest release is v2026.9.8; no shipment of this branch was established. (ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts, 98567acd6060)

Likely related people:

  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Lehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add measured wall times for materially changed tests and available CI timings to the PR body.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-06T23:41:38.643Z sha 0d0440c :: needs maintainer review before merge. :: none
  • reviewed 2026-10-06T23:54:54.552Z sha 639ee70 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-07T00:39:36.615Z sha d18c712 :: blocked before merge. :: none
  • reviewed 2026-10-07T01:01:23.333Z sha f116c87 :: blocked before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 7, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 7, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 7, 2026
@RomneyDa
RomneyDa merged commit 64ad20a into release/2026.9.9 Oct 7, 2026
205 checks passed
@RomneyDa
RomneyDa deleted the fix/release-2026.9.9-gateway-client-onclose branch October 7, 2026 01:31
NerQuiLes pushed a commit to Xtampa-AI/openclaw that referenced this pull request Oct 11, 2026
Audit all 253 September-only commits against da0cbcc. Port only
applicable fixes and final companions, preserving October owners and
shipped upgrade contracts. Exclude September-specific waivers, schema
rollback, dependency changes, and credential-absence pass conditions.

Adapt retained ACP archive receipts without reopening retired custody;
retain SDK1.30.1 issuer fencing and explicit re-registration; exclude
standalone worker copies from beta.2 updater compatibility bridges.
Report settled Doctor release failures before the no-config early return.

Sources below are whole backports or scoped repair selections:

fix(discord): keep health inspection from blocking Gateway connections (openclaw#166736)
Source-commit: dc26366

fix: avoid foreign-listener race in Gateway acquisition proof (openclaw#166883)
Source-commit: bd0b97d

fix(ci): admit workspace package tests in Windows replay (openclaw#166895)
Source-commit: 9bc88a6

fix(release): restore beta.2 updater inventory and Podman control (openclaw#166872)
Source-commit: e203c64

fix(copilot): plugin tool calls fail from the second turn of a session (openclaw#164598)
Source-commit: c6e5ae8

fix(test): await WhatsApp inbound drain (openclaw#165842)
Source-commit: 05170cd

fix(qa-lab): keep SUT CLI in isolated launcher
Source-commit: 6681bcd

test(qa-lab): assert resolved companion CLI cwd
Source-commit: a60b458

fix(release): accept candidate-owned child evidence (openclaw#165357)
Source-commit: 500c95a

fix(acp): migrate metadata from retained sessions
Source-commit: 16398dc

fix(release): isolate first-hop service containment (openclaw#164898)
Source-commit: 85124fe

fix(release): isolate upgrade survivor scenarios (openclaw#165007)
Source-commit: aad828f

test(release): expect isolated survivor scenarios (openclaw#165009)
Source-commit: 02e7f91

fix(release): split restart auth validation (openclaw#165048)
Source-commit: 6160d9f

test: serialize PowerShell completion process suites (openclaw#166229)
Source-commit: 320e52b

fix(update): settle only this Doctor's commands in managed custody (openclaw#164868)
Source-commit: bdb44e2

fix(claude-cli): replies hang until the run times out when a background agent runs Bash (openclaw#165596)
Source-commit: 889611b

fix(whatsapp): synchronize shutdown test with durable admission (openclaw#166531)
Source-commit: 1f576e4

fix: prevent heartbeat live replies from abbreviating markers (openclaw#166777)
Source-commit: c4ed37e

fix(ci): keep full release validation within measured budgets (openclaw#166774)
Source-commit: 471f950

improve(ci): reuse Watch cache and expose shared scan build progress (openclaw#166498)
Source-commit: 66d898f

fix(e2e): normalize registry helper image modes (openclaw#163188)
Source-commit: 1a09bec

fix: MiniMax live validation misses Code Mode file reads (openclaw#163619)
Source-commit: fc23bc8

fix(test): read canonical ACP upgrade metadata
Source-commit: 46c8dd2

fix(qa): remove unavailable Telegram emoji fixture (openclaw#164956)
Source-commit: e785c56

fix(release): reconcile full validation regressions (openclaw#166200)
Source-commit: a3e349e

fix(release): unblock stable validation evidence (openclaw#166315)
Source-commit: 5ac0f82

fix(release): unblock 2026.9.9 full qualification (openclaw#166341)
Source-commit: 8aa6d7c

test(irc): await owned monitor signals (openclaw#163180)
Source-commit: 429ea8c

fix(release): unblock 2026.9.9 full validation (round 4) (openclaw#166485)
Source-commit: ccb390b

fix(release): repair Doctor teardown and FRV evidence recovery
Source-commit: 5d7fa8e

fix(release): bound FRV job reads and normalize ghost evidence
Source-commit: 1854d41

test(release): align priority fixture with bounded job pages
Source-commit: 4fd4fcc

fix(test): keep MCP validation connected after automatic pairing approval (openclaw#166849)
Source-commit: 0979efd

fix(release): address 2026.9.9 validation failures and retain diagnostics (openclaw#166962)
Source-commit: a024875

fix(release): repair fleet and CLI validation fixtures (openclaw#166977)
Source-commit: b899f42

fix: keep 2026.9.9 upgrades on state schema 19 (openclaw#166959)
Source-commit: bcfc888

fix(ui): keep passive chat viewers following incoming turns
Source-commit: 6d9689d

fix(doctor): commit transcript archive migration progress per batch and honor interruption (openclaw#165837)
Source-commit: 3a085ea

fix(doctor): restore release repair settlement
Source-commit: fab3a66

fix(release): reconcile FRV backports
Source-commit: 0c01cc6

fix(ui): refresh end geometry during interaction (openclaw#166239)
Source-commit: 5b71763

fix(ui): preserve follow intent across content growth (openclaw#166258)
Source-commit: ffcdd4d

fix(ui): gate content follow on height changes (openclaw#166301)
Source-commit: 4964263

fix(release): preserve gateway fixture close callback (openclaw#166348)
Source-commit: 64ad20a

test(ui): await collaborator smooth follow (openclaw#166285)
Source-commit: 90abf6a

Co-authored-by: Eric Curtin <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Abdel Gomez-Perez <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

2 participants