Skip to content

refactor: deslop gateway subdirectory and UI page leftovers - #168185

Merged
steipete merged 4 commits into
mainfrom
deslop/bundle10-gateway-ui-pages-20261009
Oct 10, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/bundle10-gateway-ui-pages-20261009

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Gateway subdirectories and Control UI pages retain redundant state, forwarding layers, and repeated presentation code after earlier ownership refactors.

User Impact

The cleanup preserves session admission, connection authority, desktop/terminal lifecycle, Talk delivery, and page rendering. A CI-discovered startup race is also repaired: cached chat history remains pending through the first connecting snapshot instead of briefly showing an empty-chat welcome. No configuration, schema, protocol, dependency, or release changes.

Why This Change Was Made

Combines d35 and d47 in one coherent cleanup: one New Session composer owner, typed page presentation state, shared connection/session bookkeeping, and shared lifecycle operations. The combined change removes 542 net production lines (-213 UI, -329 Gateway), excluding tests/support/generated outputs. This uses the coordinator-approved 500–999-line exception; the coverage log below records the audited scope and retained boundaries.

Applied d35 3dd0cb6f5bc, then d47 b67c9129ac5 / 45a17a87652, onto main 9c9b2bbc177, then rebased onto dbe7b43beb0 and 1be932e5ba1 to resolve named CI/conflict gates. Main's new Creation Composer, background, and cloud-placement behavior stay intact. No production cleanup hunks dropped. The old generated boot-manifest delta was discarded in favor of main and regenerated canonically; the subsequent rename-test conflict keeps main's complete test and drops our now-redundant selector hunk. The obsolete Usage max-lines baseline entry was pruned exactly.

Evidence

Current signed candidate: 70465d6e94ba730c47b723ec87e2ecfef5b4503b. All 26 sequential timing comparisons now qualify (104/104 selected samples passed, maximum head median +2.89%). Exact-head hosted CI is complete; its eight historical inherited failures and aggregate are individually attributed below, with later upstream repairs distinguished from the tested-main snapshot. The second rebase's import-order formatting issue is corrected; all 64 changed existing formatter targets and the mandatory 3/3 suppression tests pass.

  • Direct sequential Knip production/full-tree/scripts: zero findings (964.44s / 1198.984s / 493.482s), closing the original timeout gaps.
  • Focused Gateway: 343 tests / 20 files passed. Focused UI: 186 tests / 8 files and 56 E2E scenarios / 7 files passed.
  • Final UI parity on this head versus 1be932e5ba1: 36/36 pairs with zero differing pixels, no missing states, and 72/72 stable repeats. Both 11-scenario capture packets and all four cases in the main-owned mutation test pass. Source-map contents match the recorded source. Only the compile-time build identity was normalized, equally on both sides.
  • Core and all 27 core-test typegraphs passed; core plus four Gateway graphs were rerun after rebase. Final UI production and UI chat/E2E graphs pass. Runtime/Madge cycles zero; no new component relative to clean base.
  • Fresh independent whole-diff P0–P2 review is clean, including the startup repair. Its new deterministic owner regression failed before the fix; all 14 lifecycle/loading sibling tests and all 12 cases in the original failing browser files pass on the repair prototype. Final bundle browser replay passed all 12 cases; the main-wins mutation file separately passed 4/4 after the second rebase. The 14-case owner regression/sibling proof took 93.07s wall on the loaded Mac; the 12-case browser replay took 123.11s. New owner test has no added timer/process boot or production seam.
  • The exact changed-check plan was executed in decomposed form so Knip could run directly/sequentially; no native wrapper success is claimed. Full core lint completed through supported split-core mode after the aggregate 900s timeout: 76/80 shards pass; the other four yield 12 untouched-file max-lines findings, identically reproduced on clean initial main. No touched-file lint finding remains. Final base also reproduces an unrelated stale doctor-memory-search baseline entry and suppression mismatch; newer main fixes are 72eafadc01a and 09709291c98. No new suppression, budget, skip, or retry is introduced here.

Hosted CI attribution and repair

Initial exact-head run 38024009280 completed 69 jobs green, 21 scope-skipped, and these three failed jobs, with no cancelled CI jobs:

Job Attribution and disposition
checks-ui-e2e (5/9) / 114131140258 Dashboard cold-load welcome frame also reproduced on clean main. Repaired the loading-state producer, preserving the existing browser assertions.
checks-ui-e2e (2/9) / 114131140281 Old recovery ordering expectation corrected upstream by 5c7d73950d9, brought in through rebase. Pending rename modal misuse was corrected upstream; its subsequent cached-pane selector ambiguity was reproduced on main and repaired by selecting the visible pane, without weakening assertions.
openclaw/ci-gate / 114132556291 Downstream aggregate of those two E2E jobs; no independent failure.

Security High and Critical Quality passed. Exhaustive initial check inventory: 221 terminal checks (98 success, 118 skipped, 1 neutral, 3 failure, 1 old ancillary auto-response cancellation). That cancelled ancillary run 38023772394 was superseded by successful same-head 38023774081; it is not used as product proof. New exact-head CI will determine final readiness; no admin exception has been used.

The current head's CI run 38049514549 is terminal: 64 successful jobs, 21 scope-skipped, eight actual failed jobs and their aggregate gate; no cancellations. Formatting and all types pass. Every remaining failure has separate main evidence:

Current failed job Independent main evidence
Node compact-small-5 / 114205854623 Clean 8420f82cbbf: the prepared-model scoped-refresh case reproduces exactly (expected two worker calls, observed three); its catalog/auth owners are not lane edits.
Node compact-large-18 / 114205854631 Clean 8420f82cbbf: placement evidence reproduces exactly (unknown/current/absent becomes all unknown); the placement evidence owners are not lane edits.
E2E 2/9 / 114205854022 Main job 114203387133: same native conversation y=154 instead of 52.
E2E 3/9 / 114205853977 Main job 114203387187: same collaborator scroll delta 26 instead of at most 1.
E2E 4/9 / 114205853990 Main job 114203387180: same four mobile geometry failures.
E2E 6/9 / 114205853947 Main job 114203387158: same two 50px New Session handoff offsets.
E2E 7/9 / 114205854082 Main job 114203387179: same session-color wait for the refreshed sidebar label.
E2E 8/9 / 114205853976 Main job 114203387147: same dark/light position-rail 50px offsets.
openclaw/ci-gate / 114207178411 Aggregate only of those eight jobs.

The six E2E comparisons use independent main CI 38048680925 at b0e5f302dd8. Their test, layout, and harness blobs match this PR's tested merge ee545ff7ff01 (main parent e7ec72eb23c). Upstream 320b0884c23/dc0ef48154f add the Details class and its 50px transcript margin, explaining the exact handoff/rail/native displacement. This lane changes no CSS or Details/roster owner. The matching independent main failures, not merely untouched test names, qualify the attribution. None of these defects is claimed fixed here.

Newer main is not being described as still red for those UI cases. Upstream 7e256f7302d4 removes the redundant Details spacing; the later main run 38056049112 on 7b125134f386 executes and passes all formerly failing UI cases: native, collaborator scroll, mobile geometry, instant-thread, session color, and position rail. Main also updates the model credential-reacquisition contract in a825abb1fae4 and corrects the session-color fixture clock in 27193f88bd67. Latest main exact-case Node results were not inferred from changed shard names; the historical matching failures above remain their proof. Fetched main for this refresh is f694a7e6821eaf58bff2494550cf71ec5fcf0a52.

Final 26-case sequential parity

Exact bundle 70465d6e94ba730c47b723ec87e2ecfef5b4503b versus clean main 1be932e5ba1b88248eba86022c592dbefd14726a; two sequential Blacksmith Testbox leases, at most one live. Cases 1–16: tbx_01m4jzkvgg2wvscpv9txjvcznj, run 38055415364. Cases 17–26: tbx_01m4k2rnaepf102px26tzsw7j9, run 38058973050. Every individual comparison ran base/head/head/base on the same machine. All 104 selected samples pass (one selected case each); all 26 head wrapper-wall medians are within the baseline +5% budget. Native reports, exact selection, source trees, worker input provenance and cleanup signals were checked. No test timeout, retry, skip or assertion was changed. Whole-wrapper wall time is the primary metric; test-only durations remain diagnostic.

Case Historical failing test Base median (s) Head median (s) Head delta Pass/fail
1 managed Linux private audio > loads only a private null sink and does not record before explicit start 2.94 2.85 -2.96% 1/0 on all four
2 authenticated WebSocket request trace dispatch > preserves request isolation through a real authenticated WebSocket session 36.26 35.95 -0.85% 1/0 on all four
3 sessions.delete admits unrelated same-store patches during Worker validation 39.67 40.11 1.11% 1/0 on all four
4 talk realtime gateway relay > closes only realtime relays owned by the disconnected connection 27.31 27.12 -0.72% 1/0 on all four
5 native Talk action ownership through public plugin registration > keeps native generated input in current-turn custody but out of display and future calls 34.69 34.65 -0.12% 1/0 on all four
6 native Talk action ownership through public plugin registration > selects eligible native history before projection and the item cap 35.41 35.85 1.25% 1/0 on all four
7 native Talk action ownership through public plugin registration > registration readiness > releases the provider when registration readiness never publishes 33.77 33.57 -0.59% 1/0 on all four
8 native Talk action ownership through public plugin registration > admits literal delegation tags in public steering as visible user input 33.36 33.16 -0.59% 1/0 on all four
9 native Talk action ownership through public plugin registration > active steering > delivers once without replacing the original task (transcript-first) 33.63 33.55 -0.24% 1/0 on all four
10 native Talk action ownership through public plugin registration > active followup > delivers once without replacing the original task (transcript-first) 33.44 33.32 -0.34% 1/0 on all four
11 native Talk action ownership through public plugin registration > admits idle task Check the weather. once without steering it when final ASR arrives later 33.73 33.57 -0.47% 1/0 on all four
12 native Talk action ownership through public plugin registration > makes one current-state decision for steering delegated after original settlement 33.54 33.56 0.06% 1/0 on all four
13 gateway connect pairing exemptions > reconciles concurrent pairing decisions against current device authority 37.23 37.35 0.31% 1/0 on all four
14 gateway connect pairing exemptions > keeps a merged owner unidentified until Doctor repairs it before reconnect 37.81 37.17 -1.70% 1/0 on all four
15 gateway connect pairing exemptions > keeps the owner's renamed profile across shared-token and cached device-token connections 36.53 36.35 -0.50% 1/0 on all four
16 gateway connect pairing exemptions > keeps local pairing pending when automatic approval is revoked before commit 36.13 35.61 -1.44% 1/0 on all four
17 gateway connect pairing exemptions > keeps local pairing pending when browser origin is revoked before commit 36.34 36.21 -0.37% 1/0 on all four
18 gateway connect pairing exemptions > keeps local pairing pending when proxy policy is revoked before commit 35.76 36.66 2.53% 1/0 on all four
19 gateway connect pairing exemptions > returns terminal identity details and pauses a rejected real device-token client 37.64 37.58 -0.17% 1/0 on all four
20 gateway connect pairing exemptions > admits an auth-none local backend self-call before and after a narrower pairing row exists 36.00 37.04 2.89% 1/0 on all four
21 gateway connect pairing exemptions > admits an auth-none TUI operator client before and after a narrower pairing row exists 35.49 35.75 0.73% 1/0 on all four
22 gateway connect pairing exemptions > silently widens a narrow local pairing row for a auth-none CLI client 35.42 35.64 0.62% 1/0 on all four
23 gateway connect pairing exemptions > silently widens a narrow local pairing row for a token-auth native app client 35.88 35.94 0.16% 1/0 on all four
24 gateway connect pairing exemptions > keeps a narrow pairing row as the Tailscale Control UI scope cap 36.09 36.16 0.20% 1/0 on all four
25 voice creation authority > creates a incognito replacement without cold reads in write grants (revoked=false) 40.53 41.07 1.32% 1/0 on all four
26 voice creation authority > creates a incognito replacement without cold reads in write grants (revoked=true) 40.34 41.32 2.43% 1/0 on all four

The original overloaded-Mac failures/partial attempts remain separate evidence, not relabeled passing. The first Testbox command was deliberately interrupted during case 17 after retaining complete cases 1–16; that partial case is not counted. The cache-heavy initial artifact download timed out; compact native-evidence retrieval succeeded.

Coverage log for the 500–999-line exception

The source lanes audited Gateway subdirectories (201 production files / 42,646 lines after support exclusion) and UI pages m–z (271 production files / 60,320 lines), largest-first with caller/owner checks. These are audit denominators, not claims that every file changed or every test passed. The retained combined diff changes 68 files, including the bounded CI repair.

Area Retained simplification and coverage decision
Agent turns One phase-tagged pending-terminal registry and one session-state owner; retain sticky outcomes, source publication barriers, retry deadlines, admission revalidation, media custody, and recovery ordering.
Gateway connections Reuse prepared connection facts and one auth-log limiter operation; preserve authenticated ingress, address and generation overrides, pairing locality, role/scope checks, and exact warning text.
Desktop Derive released/stopped state from existing lifecycle owners, share process records and restart accounting; preserve independent audio/desktop budgets, RFB wire limits, observer reservations, reentrant close, and failed-cleanup custody.
Terminals One typed connection index and shared write/resize settlement; preserve exact agent ownership, browser adoption, in-flight open cancellation, upload revalidation, and detach/eviction behavior.
Portals Share listener unregister/close operations; retain separate streaming HTTP/raw WebSocket proxying, startup memoization, ingress authority, and close-before-reuse ordering.
Talk Share event construction, relay-capacity checks, and voice launch selection; preserve final-event backpressure classification, draining-session capacity, provider ordering, connection ownership, and transcription grace.
New Session Remove sole-caller draft-composer projection and localize its option contract; preserve live getters, attachment read signals, command/mention ownership, error actions, and cloud choice ordering.
Usage Group typed presentation state/callbacks and render cost-window/error-day cases directly; preserve request/detail owners, selection ordering, and all controls.
Models / Memory Import Share segmented reset/reselection and report/count rendering; preserve disabled/overridden controls and import/backfill/rollback authority.
Workshop / Secrets Share row/history variants and draft normalization; preserve explicit secret-kind override, disclosure checks, mutation authority, and error reset.
Rejected trials / retained owners Kept desktop broker collision behavior, RFB reader modes, execution/admission cleanup distinctions, page subscription lifecycles, and worktree mutation boundaries. Rejected Search dedupe because it increased Chat boot dependencies; rejected picker-shell and tiny shared-renderer trials that grew code or obscured distinct behavior.

No feature removal, compatibility shim, new lint suppression, relaxed assertion/budget, or changelog edit. Tests changed only where removed internal projections required their fixtures to use the real remaining owner.

New Session before cleanup, clean main

New Session after cleanup, pixel-identical

Before fix: empty-chat welcome while dashboard history is pending

After fix: cached transcript retained while connecting

@clawsweeper

clawsweeper Bot commented Oct 10, 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 app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 10, 2026
@steipete
steipete marked this pull request as ready for review October 10, 2026 04:25
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 70465d6e94ba730c47b723ec87e2ecfef5b4503b
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/server/plugins-http/route-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/connect-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/connect-device-metadata.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/connect-existing-device.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/handshake-auth-log-limiter.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates Gateway lifecycle bookkeeping and Control UI presentation while fixing a brief empty-chat welcome during initial connection.

Example: Open Mission control with cached chat text “Synthetic mission briefing.” while connecting.

  • Before: The chat pane briefly displays the empty-chat welcome.
  • After: The cached transcript remains visible while history is pending.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent cleanup with no actionable finding; direct visual evidence covers the startup repair, while the wider Gateway refactor relies on source and focused-test evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor-proof gate; inspected browser screenshots support New Session parity and the connecting-history repair, while broader Gateway preservation is supported by source review and recorded focused tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Repeated internal ownership and presentation code makes equivalent workflows harder to maintain; initial connection can briefly misrepresent a cached conversation as empty.
Reason: Maintainer-authored direction supports a coherent reduction of duplicate code without new product settings or public contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed cleanup remains distinct from main, with no introduced correctness or security defect found; every observed CI failure has matching independent main evidence.

Priority: P3
Reviewed head: 70465d6e94ba730c47b723ec87e2ecfef5b4503b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway owners admit connections and agent turns, manage desktop, terminal, portal, and Talk lifetimes, and publish results to Control UI page controllers and renderers.

flowchart LR
  A[Browser clients] --> B[Gateway connection admission]
  B --> C[Agent turn owner]
  B --> D[Desktop terminal and portal owners]
  B --> E[Talk session owners]
  C --> F[Control UI page state]
  D --> F
  E --> F
  F --> G[Rendered pages]
Loading

Technical review

Best possible solution:

Retain the consolidated owners and startup repair, then use the native landing workflow's verified inherited-failure handling.

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

The initial source-change path clears loading before the old disconnected-transition condition can restore it; the added owner regression and inspected before/after screenshots corroborate the startup failure.

Is this the best way to solve the issue?

The cleanup removes superseded projections and duplicated bookkeeping while retaining existing policy owners, and the startup repair corrects loading state at its producer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7b125134f386.

Provenance checked

  • Agent turn service and session bookkeeping keeps the original intent (0b1fc0e: Create a transport-free turn owner while preserving admission, detached settlement, and replay behavior.)
  • Agent wait terminal observation keeps the original intent (d5225dd: Prevent waits from becoming terminal before the canonical RPC replay payload publishes.)
  • Connection authentication and warning suppression keeps the original intent (24ad248: Split connection phases while preserving authentication ordering and security invariants; warning suppression separately limits only missing-credential startup noise.)
  • Desktop and terminal lifecycle keeps the original intent (0c824f0: Bind desktop streams to current owners and pairing generations while retaining observer limits; terminal history separately establishes exact agent ownership and browser co-attachment.)
  • Talk launch and relay bookkeeping keeps the original intent (c4a6c17: Support voice replacement through existing Talk ownership and lifecycle contracts.)
  • New Session composer and page presentation keeps the original intent (56b3d23: Consolidate page contracts while preserving connection generations, mutation authority, and user-visible behavior.)
  • Model defaults, Memory Import, and Usage rendering keeps the original intent (0d6c967: Share presentation and lifecycle cores while retaining variant-specific guards, controls, and ordering.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 79bfa37 adds src/gateway/server-methods/agent-job.ts:473 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 79bfa3771cea; files: src/gateway/server-methods/agent-job.ts)

PR surface

Source -539, Tests +7, Other -1. Total -533 across 68 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 54 1150 1689 -539
Tests 13 138 131 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 68 1288 1821 -533

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: Primarily internal cleanup with a bounded startup presentation repair; no urgent diff-caused regression was established.
  • 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.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T04:33:51.777Z sha 860b641 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T10:13:35.744Z sha b973a37e7792b997901dae6263bcd2c86a56ef66 :: needs changes before merge. :: none
  • reviewed 2026-10-10T11:11:53.700Z sha e9529e4 :: needs changes before merge. :: none
  • reviewed 2026-10-10T11:53:32.430Z sha 70465d6 :: needs changes before merge. :: none

Reviewed October 10, 2026, 9:42 AM ET / 13:42 UTC (Revision 5).

@steipete
steipete force-pushed the deslop/bundle10-gateway-ui-pages-20261009 branch from 860b641 to b973a37 Compare October 10, 2026 09:59
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@steipete
steipete force-pushed the deslop/bundle10-gateway-ui-pages-20261009 branch from b973a37 to e9529e4 Compare October 10, 2026 11:01
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head CI attribution

Head: 70465d6e94ba730c47b723ec87e2ecfef5b4503b. CI 38049514549 tested merge ee545ff7ff01ec5a9a6d6bf4af8b81b676a6817f against main e7ec72eb23c57265ea4980648e5762b2d59e70c9.

All eight failing jobs reproduced independently on main CI 38048680925, commit b0e5f302dd8d7ad6e2c141c9e9667bd11b8de645. These are inherited-at-tested-main failures; several have since been repaired upstream, as noted below:

Failing PR job Matching main proof
Node compact-small-5 (114205854623) Main job 114203388137: prepared-model scoped refresh, “carries completed discovery across scoped hot reload without rediscovery”; expected two worker calls, received three. Also reproduced on clean main 8420f82cbbf.
Node compact-large-18 (114205854631) Main job 114203388385: placement evidence, “keeps ordinary directory discovery failures independent from incognito evidence”; expected unknown/current/absent, received three unknown. Also reproduced on clean main 8420f82cbbf.
UI E2E 2/9 (114205854022) Main job 114203387133: native conversation geometry, y=154 instead of 52.
UI E2E 3/9 (114205853977) Main job 114203387187: collaborator older-history scroll, accepted delta 26 instead of <=1.
UI E2E 4/9 (114205853990) Main job 114203387180: mobile geometry, the same four viewport cases and action-bottom values 159/173/175 exceeding 142/150.
UI E2E 6/9 (114205853947) Main job 114203387158: both instant-thread handoff cases, identical 50px offsets (131.3125 vs 81.3125; 122 vs 72).
UI E2E 7/9 (114205854082) Main job 114203387179: session-color, identical 30-second wait for “Design review refreshed”.
UI E2E 8/9 (114205853976) Main job 114203387147: dark/light position-rail cases, offset 50 instead of <2.

openclaw/ci-gate (114207178411) only aggregates those Node and UI failures. Every other selected CI family passed, including formatting, lint, all types, architecture/guards, dependency boundaries, baseline ratchets, build, UI unit tests and performance. The exact-head check census contains 154 checks: 88 successful, 56 scope-skipped, one neutral, nine failed; none cancelled or active. Every skipped canonical family is explicitly unselected, not missing required proof.

The model/placement owners are unchanged by this PR. For all six UI failures, the tested merge and independent main have identical relevant tests, layout owners and harnesses. The 50px geometry comes from main's Details reservation (320b0884c23, dc0ef48154f), not this PR's New Session cleanup; pending draft and committed full-pane layout share the same upstream mismatch on main. This PR does not change those CSS/layout or roster-refresh owners. These are recorded inherited defects, not claimed fixes.

Newer main is not being described as still red for those UI cases. Upstream 7e256f7302d4 removes the redundant Details spacing; the later main run 38056049112 on 7b125134f386 executes and passes all formerly failing UI cases: native, collaborator scroll, mobile geometry, instant-thread, session color, and position rail. Main also updates the model credential-reacquisition contract in a825abb1fae4 and corrects the session-color fixture clock in 27193f88bd67. Latest main exact-case Node results were not inferred from changed shard names; the historical matching failures above remain their proof. Fetched main for this refresh is f694a7e6821eaf58bff2494550cf71ec5fcf0a52.

Review recheck found no submitted change-request reviews or inline findings; the current-head review reports no actionable findings. This does not replace the remaining campaign proof.

Final 26-case sequential parity

Exact bundle 70465d6e94ba730c47b723ec87e2ecfef5b4503b versus clean main 1be932e5ba1b88248eba86022c592dbefd14726a; two sequential Blacksmith Testbox leases, at most one live. Cases 1–16: tbx_01m4jzkvgg2wvscpv9txjvcznj, run 38055415364. Cases 17–26: tbx_01m4k2rnaepf102px26tzsw7j9, run 38058973050. Every individual comparison ran base/head/head/base on the same machine. All 104 selected samples pass (one selected case each); all 26 head wrapper-wall medians are within the baseline +5% budget. Native reports, exact selection, source trees, worker input provenance and cleanup signals were checked. No test timeout, retry, skip or assertion was changed. Whole-wrapper wall time is the primary metric; test-only durations remain diagnostic.

Case Historical failing test Base median (s) Head median (s) Head delta Pass/fail
1 managed Linux private audio > loads only a private null sink and does not record before explicit start 2.94 2.85 -2.96% 1/0 on all four
2 authenticated WebSocket request trace dispatch > preserves request isolation through a real authenticated WebSocket session 36.26 35.95 -0.85% 1/0 on all four
3 sessions.delete admits unrelated same-store patches during Worker validation 39.67 40.11 1.11% 1/0 on all four
4 talk realtime gateway relay > closes only realtime relays owned by the disconnected connection 27.31 27.12 -0.72% 1/0 on all four
5 native Talk action ownership through public plugin registration > keeps native generated input in current-turn custody but out of display and future calls 34.69 34.65 -0.12% 1/0 on all four
6 native Talk action ownership through public plugin registration > selects eligible native history before projection and the item cap 35.41 35.85 1.25% 1/0 on all four
7 native Talk action ownership through public plugin registration > registration readiness > releases the provider when registration readiness never publishes 33.77 33.57 -0.59% 1/0 on all four
8 native Talk action ownership through public plugin registration > admits literal delegation tags in public steering as visible user input 33.36 33.16 -0.59% 1/0 on all four
9 native Talk action ownership through public plugin registration > active steering > delivers once without replacing the original task (transcript-first) 33.63 33.55 -0.24% 1/0 on all four
10 native Talk action ownership through public plugin registration > active followup > delivers once without replacing the original task (transcript-first) 33.44 33.32 -0.34% 1/0 on all four
11 native Talk action ownership through public plugin registration > admits idle task Check the weather. once without steering it when final ASR arrives later 33.73 33.57 -0.47% 1/0 on all four
12 native Talk action ownership through public plugin registration > makes one current-state decision for steering delegated after original settlement 33.54 33.56 0.06% 1/0 on all four
13 gateway connect pairing exemptions > reconciles concurrent pairing decisions against current device authority 37.23 37.35 0.31% 1/0 on all four
14 gateway connect pairing exemptions > keeps a merged owner unidentified until Doctor repairs it before reconnect 37.81 37.17 -1.70% 1/0 on all four
15 gateway connect pairing exemptions > keeps the owner's renamed profile across shared-token and cached device-token connections 36.53 36.35 -0.50% 1/0 on all four
16 gateway connect pairing exemptions > keeps local pairing pending when automatic approval is revoked before commit 36.13 35.61 -1.44% 1/0 on all four
17 gateway connect pairing exemptions > keeps local pairing pending when browser origin is revoked before commit 36.34 36.21 -0.37% 1/0 on all four
18 gateway connect pairing exemptions > keeps local pairing pending when proxy policy is revoked before commit 35.76 36.66 2.53% 1/0 on all four
19 gateway connect pairing exemptions > returns terminal identity details and pauses a rejected real device-token client 37.64 37.58 -0.17% 1/0 on all four
20 gateway connect pairing exemptions > admits an auth-none local backend self-call before and after a narrower pairing row exists 36.00 37.04 2.89% 1/0 on all four
21 gateway connect pairing exemptions > admits an auth-none TUI operator client before and after a narrower pairing row exists 35.49 35.75 0.73% 1/0 on all four
22 gateway connect pairing exemptions > silently widens a narrow local pairing row for a auth-none CLI client 35.42 35.64 0.62% 1/0 on all four
23 gateway connect pairing exemptions > silently widens a narrow local pairing row for a token-auth native app client 35.88 35.94 0.16% 1/0 on all four
24 gateway connect pairing exemptions > keeps a narrow pairing row as the Tailscale Control UI scope cap 36.09 36.16 0.20% 1/0 on all four
25 voice creation authority > creates a incognito replacement without cold reads in write grants (revoked=false) 40.53 41.07 1.32% 1/0 on all four
26 voice creation authority > creates a incognito replacement without cold reads in write grants (revoked=true) 40.34 41.32 2.43% 1/0 on all four

The original overloaded-Mac failures/partial attempts remain separate evidence, not relabeled passing. The first Testbox command was deliberately interrupted during case 17 after retaining complete cases 1–16; that partial case is not counted. The cache-heavy initial artifact download timed out; compact native-evidence retrieval succeeded.

The campaign parity requirement is complete. The requested inherited-failure exception is limited to the eight individually attributed historical jobs and their aggregate, with no cancelled or active checks. The intended squash is pinned to 70465d6e94ba730c47b723ec87e2ecfef5b4503b; current head, mergeability, reviews and all check runs are revalidated immediately before submission.

@steipete
steipete merged commit 88e8716 into main Oct 10, 2026
156 of 166 checks passed
@steipete
steipete deleted the deslop/bundle10-gateway-ui-pages-20261009 branch October 10, 2026 15:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…#168185)

* refactor: deslop gateway subdirectory and UI page leftovers

* chore: prune obsolete usage max-lines baseline

* fix(ui): preserve pending history through first connection

* style(ui): normalize new session imports after rebase
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 14, 2026
…29388 absorb: absorb step 22

Upstream openclaw#168185 folds the gateway agent turn's session state into one
AgentSessionPersistResult object (`state`) that persistAgentSessionPhase
reads and updates, instead of initial* params and update callbacks.

Conflicts:
- agent-session-persist.ts: upstream's state destructuring, keeping our
  consumedContinuationTraceparent seed from the incoming entry.
- agent-turn-service.ts: upstream's single `session` object throughout; our
  continuation traceparent now rides it (Object.assign carries
  consumedContinuationTraceparent from the persist result) and is passed to run
  execution as sessionContinuationTraceparent.

Checks: tsgo core, extensions, core-test and ext-test 0; SDK surface 0;
config baseline and worker inventory regenerated.

Checkpoint sweep (986 suites; all reds re-run with a clean /tmp):
- identical on plain upstream 88e8716: memory-core reindex-backoff 2/6,
  model-runtime-choice 2/32, tts-stream 1/12, cli-json-stdout.models 2/8;
  tui-pty-local e2e and seven .live suites give no offline result.
- gateway agent.test 405/405 here (its earlier 3 reds were stale schema-24/25
  agent DBs left in /tmp by earlier runs).
- ours, red before this step (already red at step 20/21; the per-step lists
  never ran them), fixed in follow-up commits: subagent-announce.continuation
  owner mismatch, archive.continuation e2e worker-read mock, duplicate
  validation-cache entry in vitest.database-worker-core-paths.mjs (ci-* plan
  tests).
- ours, red before this step, still open: usage.sessions-usage-details,
  provider-catalog-live-runtime.config, user-turn-transcript.recorder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jhynq2GVpzuVQQieebEubg
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL 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.

1 participant