Skip to content

refactor: consolidate UI and package lifecycle bookkeeping - #169375

Merged
steipete merged 6 commits into
mainfrom
deslop/w04-ui-pages-20261011
Oct 12, 2026
Merged

steipete merged 6 commits into
mainfrom
deslop/w04-ui-pages-20261011

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Combined wave-2 cleanup (w04 + w11)

Final reviewed head: 961db63164e48977c8372f0ba6ad8f110a47ff86. Exact-head CI 38208949916 completed with 102 terminal jobs and no cancellations. Its only three root failures are independently proven main failures (native catalog maintenance overlap, steering fixture assertions, and retired terminal selector); the aggregate gate is downstream. Exhaustive failure attribution, local proof and disclosed gaps. Landing uses the explicitly authorized inherited-failure exception, not a claim of green CI.

Rebundles the UI-pages lane and deslop/w11-packages-misc-20261011 at 14424bd627ee574121b61dbece95f8bd53a93b38, as requested by the coordinator. Both w11 commits applied cleanly: no conflicting hunks dropped. Combined reduction: 787 net production lines (692 added, 1,479 removed), excluding documentation, tests, fixtures, test support, generated files and declarations. This uses the explicitly approved 500–999 exception, with both lane ledgers below as the coverage log.

The UI removes duplicate page state/rendering and speculative display-cache bookkeeping. The packages/core lane shares Google thinking and theme validation paths, simplifies channel alias adapters, and removes synthetic hot-replacement/lost-ack/offline-writer recovery machinery. The UI cutover also removes the unreachable compensation-reconnect consumer and obsolete compensation-only test expectations. Public config, protocol, SDK exports, security authority checks, ordinary write settlement and data durability remain intact. There is no intended visual or feature change.

The separate main-red suppression fix is not part of this PR: 81a4679dec8b7fc0fb137df0a5b085a93d4977c7 adds the exact explained JSON control-character regex to the existing allowlist. The regex intentionally rejects invalid JSON control characters.

Additional best-effort tradeoffs accepted (w11)

Combined validation

Fresh combined P2 review raised one Interactions xhigh finding, declined after source inspection: unchanged getGoogleThinkingLevel ends with return ThinkingLevel.HIGH (google-shared.ts:310), so xhigh cannot become an unsupported wire value. Existing serialized-request coverage also asserts high. The UI compensation-consumer cutover received a separate scoped-clean P2 review. No accepted actionable finding remains.

Both requested Linux-only NOCOW cases passed separately on Testbox tbx_01m4pt6fym0pdv908r48twbzze, run 38190427942, verified head 3742a8bc7307e972e9b026a54b6164174bead57f and tree b9a1f82321fd0b7957a3d8703ce82b315e73b690. Commands used node scripts/run-vitest.mjs src/commands/doctor-sqlite-nocow.test.ts -t '<exact test name>'; wrapper times were 27.58s and 18.14s. Subsequent edits affect only UI consumers/tests, not that proof's graph. The lease is stopped and cleanup reconciled.

Local extension lint stopped before lint at the normal SDK declaration preparation's unchanged 300000ms deadline. On the same Linux lease, unmodified pnpm lint:extensions completed preparation (12,645 declarations) and checked 10,661 files in 152.1s. It failed only on two untouched main files: extensions/openai/image-generation-provider.test.ts:1078 (1002 > 1000 lines), and extensions/crabbox/src/crabbox-worker-provider.ts:756 (717 > 700 lines). Both files and the full lint config have identical blobs on current main 05287aca6a6584f8f10c763c7b21947cc7f8089c; a narrow same-config reproduction reports the same errors. No threshold was changed.

Fresh runtime and Madge cycle checks both report zero. The original suppression suite fails only on the missing main-side JSON-regex allowlist; an isolated test copy with exactly the already-landed two-line fix passes all three tests (35.88s). The canonical test is unchanged in this PR. Final UI boundary proof passes 69 tests across six files (74.62s Vitest, 80.74s wrapper): sidebar narration retry/release, foreground admission, history retry/errors, session subscriptions and mounted transcript loading. Red proof exposed exactly the obsolete compensation assertions; no timeout, retry, skip, or kept assertion was weakened. Final cutover P2 review is scoped-clean.

Fresh production UI types and all eight UI-test/extension-declaration type graphs pass. Prior w11 core/extension types are reused after verifying all 20 w11 production blobs are byte-identical to its tested head. Changed-file typed lint, UI style batches, formatting, i18n, and pre-format ratchets pass. The export scans complete: script scan passes; production/full scans report many untouched Solid/component and core exports. Current-main comparison is in progress; these are not yet claimed inherited. Remaining guard results will be recorded before landing. The individual-lane proof below remains qualified to its tested revision; exact-head hosted CI is the landing gate. No CI reruns or empty pushes will be used to obtain green.

w11 coverage ledger

The complete requested ledger is retained locally at /Users/steipete/Projects/openclaw-wt/deslop-w11/.local/w11-ledger.md, with companion AI, CLI, commands, plugins and ACP/talk/channels ledgers. Public coverage summary:

Cluster Decision and provenance
AI host/session resources Remove historical-default-host weak-reference inventory (#158901); retain explicit-host lifetime and global cleanup.
Google thinking options Share one parameterized path; serialized Interactions xhigh/max remain high.
Responses continuation Remove redundant prefix pass and synthetic serialization fence (#128848); prefix and request envelope contracts retained.
Theme protocol choices One typed validator; public values, order and exact errors retained (#154518/#154935/#168027).
Gateway client subscriptions Remove lost-ACK compensation, retain overlapping owners, release ordering and server authority (#126760/#159564).
Channel binding/alias/forwarders Remove activity-generation fence and repeated method mirrors; retain live routing (#154672/#167788/#134945).
CLI invocation resources Remove duplicate post-await admission; keep tracked-work disposal (#142388/#142838/#168587).
Doctor NOCOW Remove second offline inventory scan; keep initial native-handle admission, integrity, metadata and original retention (#160877/#161501).
Status scan/report Consolidate repeated rendering/result plumbing; keep full user-visible output.
Plugin catalog/thinking Remove throwing-registrar requeue and retired-policy fallback; retain authority (#111669/#162470).
Talk voice digest Consolidate duplicate recording paths; keep mutation semantics.
Memory redaction/incognito KEEP: secret/privacy authority.
Worker retirement/native sections KEEP: normal shutdown settlement and real cross-thread durable writes.
Validator registry/embedding formats KEEP: public exports, external validation and persisted shapes.
Plugin cache/binding authority KEEP: install/allowlist/approval authority, not display-cache freshness.

Prior w11 proof: focused owner/sibling tests; core/extension production and test type graphs; runtime/Madge cycles zero; all three export scans clean. Full build passed in 41m 2.3s, followed only by a focused-tested cleanup-error cause preservation. No SDK entrypoints or direct export declarations changed. Extension lint and two Linux-only cases were the explicit gaps being closed here.


What Problem This Solves

Removes duplicated Control UI lifecycle/state plumbing and repeated page rendering while keeping the existing pages and controls.

User Impact

No intended visual or feature change. Security/authorization, ordinary concurrent sessions, draft durability, and pending write settlement remain intact. The w04 portion removes 438 net production lines after main absorbed part of the original cut and after the final migration safeguard; the combined count is recorded above.

Why This Change Was Made

The Solid Gateway hook now delegates to the existing renderer-neutral binding. Revision-based capability projections share one constructor; Skills has one typed synchronous state object instead of a mirrored field inventory. Usage reads props directly and renders its four query controls through one path. Five local preference toggles and nine page-local SVG shells share their existing presentation contract. Dead group-generation and skill-message type plumbing is removed.

The lane investigated recent additions first, then the largest remaining owners. Larger apparent targets in draft persistence, permissions, media, and session reconciliation were retained where they protect user data or realistic concurrency. A proposed palette-owner simplification was reverted after existing tests demonstrated a lost queued write during remount.

Best-effort tradeoffs accepted

Evidence

  • Independent P2 review: palette write-settlement finding fixed by reverting that change. Identity-batch finding declined because the unchanged fetch-cache identity check rejects genuinely in-flight invalidations. Final retry-overlap finding declined after checking both callers and the existing loading admission; the automatic-slot pacing tradeoff is explicitly accepted above. No accepted actionable findings remain.
  • Focused coverage: 436 unit contracts across the original targeted run and repaired palette/history cases; 63 focused browser assertions. Post-lint Skills directory: 56 unit tests and six browser tests passed. No retries, skips, timeout increases, assertion weakening, or new suppressions were added.
  • Runtime import cycles: 0. Madge cycles: 0. All 11 affected core-test type graphs and production UI types passed. Formatting, i18n, line/suppression/assertion/mock ratchets, dependency/patch/coercion guards, typed lint, and styles passed.
  • Visual proof: 13 complete light/dark pairs are pixel-exact. The remaining light chat-preference pair initially captured different media-discovery phases; independently inspected settled captures compare at 0 changed pixels, also without tolerance. Galleries below include the settled frame. The failed capture-selector/feedback checks are not represented as passing tests.
  • Broad scope attempt: 199 observed files, 4,925 passing assertions, nine failures, then operator-side interruption of this lane's process because the 16-CPU host was heavily saturated (observed load >150). Four Chat Responsive failures reproduce on clean baseline: one initial-roster timeout and three cached-fixture cascades. Five other timeout/detached-frame cases pass individually on both baseline and candidate; their broad-run interaction remains unresolved, not claimed fixed or proven inherited.
  • check:changed ran its real gates. Its three parallel export scans timed out after ten minutes; a sequential scan then caught the now-removed unused SkillMessageMap. The final production export rescan also timed out. Final complete export-scan proof remains for exact-head hosted CI; no scan was skipped or allowlisted. Remote routing did not allocate a runner because provider authentication was unavailable; the wrapper fell back locally.

The combined branch is in the explicitly authorized 500–999-line exception band after both lanes' source/provenance passes. Hosted checks on this exact head remain the landing gate.

Lane coverage ledger (original locations)
Cluster Decision and provenance
lib/reactive/gateway-page.ts:1, lib/gateway-page-binding.ts:36 Consolidate independent #168767/#168788 owners; keep connection/route semantics.
lib/reactive/projection.ts:68,211 Remove synthetic subscription reentrancy/late-callback defenses from #168405; retain cleanup, ordered events, and awaited settlement.
lib/reactive/{application,application-native,domain-capabilities,domain-keyed,theme,router}.ts Share repeated source-subscribe/equality construction from #168405.
lib/sessions/session-group-catalog.ts:44-240 Remove catalog generations, equality mirrors, and recursive successors from #117103/#123276/#148483; retain cache, connection guards, startup retry, migration authority.
lib/sessions/{index,session-capability}.ts Remove dead groupsGeneration, whose final consumer was removed in #168656.
lib/agents/identity.ts:104-214 Remove batch epoch map from #168170, retaining lower fetch invalidation and connection-generation checks.
pages/skills/skills-page.tsx:43-175,318-352 Replace state name/declaration/reset mirrors introduced in #168758; remove now-private unused SkillMessageMap export.
pages/usage/{view,view-details,view-overview,view-query-section}.tsx Remove pass-through memo fields and repeated filters from the Solid port.
pages/usage/refresh-policy.ts:22-122 Remove duplicate promise/cycle custody from #165110; retain loading admission and bounded retries with stated pacing tradeoff.
pages/chat/chat-history-request.ts:189-269 One bounded producer deadline instead of reader-specific deadlines from synthetic #145436.
pages/config/view-appearance-preferences.ts:44 One renderer for five identical preference rows; no behavioral tradeoff.
pages/plugins/catalog-results.tsx:76 Share nine exact SVG shells from #168758; keep deferred artwork and paths.
pages/plugins/skill-preview.tsx:222 Delete unused port adapter from #168758; live component retained.
Palette identity write owner Proposed removal reverted: queued-write remount settlement is a real contract.
Sessions page / plugin credential editor Retain authority checks protecting mutations and secrets.
Composer persistence / detail editor / media Retain data, navigation, and bounded-resource ownership; no safe large deletion established.
Session row provenance / key normalization Most machinery already removed by the preceding sweep; remaining physical identity and query contracts retained.
Config gateway operations / cron Retain draft/write receipts, persisted forms, and ordinary reconnect handling.
Hover marquee / progress cards Retain measured rendering and bounded cache behavior.
Same-name .ts / .tsx pairs All surviving large pairs are live controller/component splits; obsolete Activity/Usage renderers already removed in 95dcdf93588.

Paths above are relative to ui/src. No schema, persistence representation, SDK export, protocol, dependency, or changelog change.

Exact-head CI follow-up

Late persistence review found that a stale empty list could otherwise reach legacy sessions.groups.put, replacing newer saved group/default rows. Fixed with the existing pending promise's identity check only immediately before that write; no generations or display-read fences restored. New boundary regression failed at the unwanted RPC before the fix. All 43 migration/session tests pass after it (6.22s wrapper), UI types and ten affected test-type graphs pass, typed lint passes, and final independent P2 review is scoped-clean.

Run 38195603511 completed on 0b5b3a00d1e2518488177769160a75ad6b4a27f8 with five failing jobs and no cancellations:

  • checks-node-changed-compact-large-17: the auth-recovery test still expected the removed retired-policy fallback. Fixed the expectation to require the existing live-authority rejection; all 34 policy/recovery tests pass.
  • checks-node-changed-compact-large-9: two server-boundary tests still asserted removed lost-ACK compensation. Deleted only those synthetic tests and their private fixture. All 80 approval/registry/broadcast tests pass; live approval authorization, audience filtering and disconnected-client cleanup coverage remain.
  • checks-node-compact-small-1: duplicate wrapper inventory entries on main. Independently reproduced on main 2b9aa2ead43a21978627fdbf794223b4f16aaeaa; another lane subsequently fixed it in 2b66ae6c3a310308a59127201b56c0900aa19b37. This PR did not change the inventory or failing test.
  • checks-ui-e2e (2/9): five pasted-text cases and one archived-session action case failed. Current-main bundled reproduction is in progress; not yet claimed inherited.
  • checks-ui-e2e (3/9): MCP-server modal case failed. Current-main bundled reproduction is in progress; not yet claimed inherited.

The aggregate openclaw/ci-gate failed because of those jobs. Test-only follow-up received fresh scoped-clean P2 review. No CI rerun or empty push was requested; the next head contains the actual stale-test repairs.

Before / after

Attached synthetic galleries show Agents, Chat, Skills, Usage, all category icons, and the chat/sidebar preference controls in light and dark themes. No real account data or live Gateway was used.

Before: synthetic UI pages and preference controls

After: pixel-identical synthetic UI pages and preference controls

Post-merge accounting correction: a strict squash-first-parent recount excludes both documentation files and ui/src/test-helpers/app-sidebar.ts. Production-only change is 692 additions / 1,479 deletions = -787 LOC; the earlier -780 accounting mixed those non-production changes into the total. This does not change the approved 500-999 exception or CI evidence.

@clawsweeper

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

@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. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR consolidates UI rendering and lifecycle owners and simplifies subscription, provider, CLI, and Doctor bookkeeping.

Example: A second chat pane joins a shared history request after 59 seconds.

  • Before: The second pane receives its own 60-second loading window.
  • After: Both panes share the producer’s remaining second, then offer Retry.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, owner-approved consolidation with the prior finding fixed; stored-state compatibility and current-head CI attribution remain incomplete.
Proof confidence 🐚 platinum hermit (4/6) Ordinary behavior proof is exempt for this maintainer-authored PR; inspected synthetic UI galleries support visual parity, but supplied candidate tests and historical walkthroughs do not establish latest-stable upgrade compatibility for legacy groups and Doctor’s persisted-state rewrite.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Duplicated lifecycle and rendering bookkeeping increases maintenance cost.
Reason: The established area owner directs the consolidation and explicitly records its accepted recovery tradeoffs.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this maintainer-directed PR open; the prior stale-import finding is fixed, and no new concrete patch defect was identified.

Priority: P3
Reviewed head: 961db63164e48977c8372f0ba6ad8f110a47ff86

Before merge

  • Complete next step - Classify the failed Node shards using their failure output and a base comparison; repair only failures caused by this diff and cite evidence for inherited failures.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide sanitized v2026.10.2-to-candidate evidence preserving saved groups/defaults and legacy import, and verifying offline Doctor copies, metadata, and retained originals; redact credentials and non-public endpoints.
Agent review details

How this fits together

Control UI pages consume Gateway state through connection-owned bindings and subscriptions; package helpers manage provider resources, while offline Doctor rewrites verified database copies.

flowchart TD
 A[Control UI pages] --> B[Page binding and projections]
 B --> C[Gateway client subscriptions]
 C --> D[Gateway state owners]
 D --> E[Plugin and AI runtimes]
 F[Offline Doctor] --> G[Verified database copies]
Loading

Technical review

Best possible solution:

Retain the shared owners and focused legacy-write guard, with existing-state compatibility verified before landing.

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

The previous stale-import sequence is now rejected at the write boundary, and the added regression exercises that sequence through the real session capability with mocked Gateway I/O; no target code was run during this review.

Is this the best way to solve the issue?

Delegating to existing owners and retaining one check before the destructive import follows the approved simplification direction without restoring the removed display-generation machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Gateway page binding and page rendering keeps the original intent (refactor: migrate Usage and Activity pages to Solid #168788: Share renderer-neutral connection ownership while preserving page behavior and synchronous state owners.)
  • Reactive projection lifetime defenses changes intended behavior with a stated reason (e09de50: Protect projection replacement and disposal; the current PR explicitly accepts simpler synchronous listener-lifetime assumptions.)
  • Group catalog generations and legacy import changes intended behavior with a stated reason (7bae247: Reject superseded connection-owned reads; the PR accepts weaker display freshness while retaining pending-load identity at the persistent import.)
  • Shared history deadlines changes intended behavior with a stated reason (fix(ui): recover when chat or model loading never finishes #145436: Bound loading and expose recovery; the PR deliberately gives each shared producer one deadline.)
  • Subscription acknowledgment compensation changes intended behavior with a stated reason (7f9a46e: Reconcile uncertain subscription outcomes; the PR explicitly accepts stale observation until a fresh subscription or reconnect.)
  • Runtime host cleanup changes intended behavior with a stated reason (8a2d2ff: Keep runtime transport ownership isolated across host replacement; the PR reduces historical-host cleanup while retaining captured stream scope.)
  • Responses continuation serialization changes intended behavior with a stated reason (fix(ai): raise HTTP continuation idle TTL to a fixed 90 minutes, bound the cache #128848: Bound continuation state and reject replacement during serialization; the PR explicitly accepts reentrant serialization as best effort.)
  • Retired thinking callbacks changes intended behavior with a stated reason (6a2e32b: Preserve session-list availability during registry replacement; the PR accepts visible rejection until catalog refresh while retaining authority refusal.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Previous finding resolved: The latest commit checks pending-load identity immediately before the destructive legacy sessions.groups.put request; invalidation clears that identity. (ui/src/lib/sessions/session-group-catalog.ts:131, 961db63164e4)
  • Focused regression retained: The added capability-boundary regression holds an empty response across invalidation, rejects the legacy write, preserves browser storage, and adopts Client with /repos/client and Worktree defaults. (ui/src/lib/sessions/session-group-migration.test.ts:165, 961db63164e4)
  • Accepted product direction: The full maintainer-authored body explicitly accepts shared deadlines, stale observation after lost acknowledgments, construction-time adapter hooks, and offline maintenance without a second outside-writer sweep. (961db63164e4)
  • Persistence validation remains separate: Doctor retains WAL-aware snapshots, integrity checks, metadata preservation, current maintenance authority, atomic exchange reconciliation, and originals; supplied candidate evidence describes tests rather than a latest-stable upgrade and repair using existing state. (src/commands/doctor-sqlite-nocow.ts:401, 961db63164e4)
  • Authorization owner preserved: The unchanged server subscription owner checks paired-device approval scope, retained session access, and current client authority before committing approval observation. (src/gateway/server-methods/sessions-subscriptions.ts:117, 961db63164e4)
  • Candidate visual evidence inspected: The attached before/after synthetic galleries show Agents, Chat, Skills, Usage, category icons, and preferences; both downloaded images have identical SHA-256 9ea2986fc5bb57841f6f9351365cc8e882f29ce1d8751c9a0f78b234ae89e0ed. Historical group-default screenshots from Start new sessions with folder group defaults #123276 establish the earlier feature, not candidate upgrade coverage. (961db63164e4)

Likely related people:

  • Peter Steinberger: Raw commit 7bae247 adds ui/src/lib/sessions/session-group-catalog.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7bae24760b09; files: ui/src/lib/sessions/session-group-catalog.ts)
  • Jesse Merhi: Raw commit edb5adf adds ui/src/lib/sessions/session-group-catalog.ts:206 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: edb5adfbf508; files: ui/src/lib/sessions/session-group-catalog.ts)
  • Jason (Json): Raw commit a9b802e adds ui/src/pages/chat/chat-history-request.ts:183 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a9b802e87b9b; files: ui/src/pages/chat/chat-history-request.ts)

PR surface

Source -787, Tests -693, Docs +8. Total -1472 across 73 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 45 692 1479 -787
Tests 26 140 833 -693
Docs 2 13 5 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 73 845 2317 -1472

Labels

Label changes:

  • add P3: This is owner-directed maintenance with no remaining demonstrated user-facing regression.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 session-state: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.

Label justifications:

  • P3: This is owner-directed maintenance with no remaining demonstrated user-facing regression.
  • merge-risk: 🚨 compatibility: Public SDK forwarders now capture option hooks at construction; the maintainer explicitly accepts rebuilding adapters after replacement.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-11T21:22:39.850Z sha 872431f :: blocked before merge. :: none
  • reviewed 2026-10-11T21:30:53.866Z sha 872431f :: blocked before merge. :: none
  • reviewed 2026-10-11T23:17:32.668Z sha d113fe5 :: blocked before merge. :: none
  • reviewed 2026-10-12T02:32:01.012Z sha 0b5b3a0 :: blocked before merge. :: none
  • reviewed 2026-10-12T03:45:08.449Z sha 567f146 :: blocked before merge. :: [P1] Reject superseded group reads before importing legacy groups

Reviewed October 12, 2026, 1:52 AM ET / 05:52 UTC (Revision 6).

@steipete
steipete marked this pull request as ready for review October 11, 2026 21:26
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Oct 11, 2026
@steipete
steipete marked this pull request as draft October 11, 2026 23:06
@steipete
steipete force-pushed the deslop/w04-ui-pages-20261011 branch from 872431f to d113fe5 Compare October 11, 2026 23:11
Keep one path for channel configuration forwarding, Google thinking
preparation, status projections and rendering, and voice digest settlement.
Remove speculative catalog, transport, and lifecycle coordination while
preserving security-effect authority and ordinary durable settlement.

Best-effort tradeoffs accepted:
- Replacing the process-default AI host mid-session leaves old runtime-local
  caches for global cleanup or bounded expiry. #158901 tested replacement
  synthetically; explicit runtime owners and stream authority remain.
- A throwing synchronous custom-API registrar fails setup instead of requeuing
  a partial drain. #111669 supports initialization ordering, not recovery from
  an arbitrary throwing registrar; restart after repairing it.
- Reentrant toJSON cleanup can replace a continuation claim during serialization.
  #128848's synthetic callback is unlike provider JSON; the next turn can replay
  full history. Credential isolation and cache limits remain.
- A concurrent channel rebind may miss its activity touch. #154672's forced
  incarnation swaps no longer trigger a retry protocol; routing still rereads.
- An admitted CLI registry load may finish during shutdown. The work scope
  joins and disposes it; new command admission remains closed (#142388/#142838).
- Unsupported writers during offline NOCOW copying are no longer detected by
  a second inventory/fuser/fingerprint scan. #160877/#161501 used synthetic
  interleavings; initial exclusivity, integrity, atomic exchange, and retained
  originals still protect normal maintenance and recovery.
- Remote keyword listings changing between pages may repeat or skip entries,
  rather than reject the cursor (#163459). Request binding and limits remain.
- A missing subscription acknowledgment can leave stale observation until
  a fresh subscription or reconnect, without compensating requests. #126760
  and #159564 forced ACK loss; server authorization and acknowledged leases remain.
- A retained thinking callback may reject during plugin reload until the
  catalog refreshes or the caller retries. #162470 used forced retirement;
  the plugin instance continues to reject revoked execution.

Use the existing compiled CLI fixture for native-resource lifetime proof so
cold source transformation occurs before its unchanged runtime deadline.
No schema, dependency, protocol shape, or permission change.
Keep the existing aggregate errors and message while attaching the caught error as the standard cause. No signature or import graph changes.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes commands Command implementations labels Oct 12, 2026
@steipete steipete changed the title refactor(ui): consolidate page state and refresh bookkeeping refactor: consolidate UI and package lifecycle bookkeeping Oct 12, 2026
@steipete
steipete marked this pull request as ready for review October 12, 2026 02:23
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 12, 2026
@clawsweeper clawsweeper Bot added 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. and removed P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Oct 12, 2026
@steipete

steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Final-head CI attribution and inherited-failure landing

Reviewed and signed head: 961db63164e48977c8372f0ba6ad8f110a47ff86. Net production change: -787 lines (692 added / 1,479 removed; docs, tests, fixtures, support, generated code and declarations excluded). The coordinator explicitly approved combining w04+w11 under the 500–999 exception; both ledgers are summarized in the PR body. Both w11 commits applied cleanly; no conflicting hunks were dropped.

CI 38208949916 completed on this exact head. All 102 jobs are terminal. There are three root failures, one downstream gate failure, and no cancellations. The complete commit check-run inventory was queried with the paginated commit API before this decision.

Failing job Attribution and independent evidence
checks-node-changed-compact-large-2 test/plugins/codex-session-catalog-naming.test.ts, “adopts duplicate native titles without claiming labels or replacing local naming,” threw the offline-maintenance error from state read admission. The identical case and exception failed on main 5f925029e0800504fc04dd41c0cd297d37636c0f in main job 114667657722. The test and maintenance/read/cache/adoption owners were not changed by this PR. Standalone and the original six-file selection passed on main 6b307d5d98f16496be7a800661c64c06978ca211 (137 tests), so this is an observed intermittent main failure, not a claimed fix.
checks-node-changed-compact-large-4 Four assertions in chat-send-message-injection.isolated-gateway.test.ts fail: accepted steer at 120001 ms; active-source tombstone; unknown-active-source tombstone; unrelated prior-source tombstone. A full-file run on clean main 6b307d5d98f16496be7a800661c64c06978ca211, with its own frozen dependencies and isolated state, reproduced all four at the same lines 230/319/375. The test and direct chat-send owners are untouched. One additional local startup timeout is recorded separately and is not the basis of this attribution. The guard traces to human incident #128971 and remains intact.
checks-ui-e2e (7/9) terminal-upload.e2e.test.ts, “uploads picked and dropped files, then pastes staged paths without Enter,” waits for retired wa-tab-panel.tp-viewport. The exact test, selector, and timeout also failed on main 5f925029e0800504fc04dd41c0cd297d37636c0f in main job 114667656102. Test blob 04d43a6613b99788559b6fdf4738a6e244f140d1 and direct terminal owners match; none is changed here. Main fix 84aa93eee6b49370cc5d5d675900611e0b387753 updates only the obsolete selector, preserving upload assertions.
openclaw/ci-gate Downstream aggregate of the three independently attributed failures above; not an additional product failure.

All other exact-head jobs passed or were intentionally skipped by the repository planner. No jobs were rerun, no workflow was dispatched, and no empty push was used to obtain green. Earlier pushes fixed actual stale test expectations and the discovered legacy-group data-loss boundary. Earlier model-probe, paste, and MCP failures were independently reproduced on main; they are not failures on this final run.

The late persistence finding is fixed: stale display catalogs remain best effort, but an invalidated empty response cannot authorize sessions.groups.put during legacy import. The check reuses the existing pending promise only at that destructive effect. Its regression failed before the fix; all 43 focused session tests pass afterward. Final P2 review is scoped-clean; production UI types, ten affected test-type graphs and typed lint pass. Earlier reviewed consumer cuts have 69 UI, 34 thinking-policy and 80 approval/registry/broadcast tests passing. Runtime/Madge cycles are zero. Both Linux-only NOCOW cases passed separately; the owned Testbox was stopped. Existing sanitized pixel-identical galleries remain in the body.

Local proof limits remain explicit: extension lint ran fully on Linux and reported two untouched-main max-lines violations. Script export scan passed; production/full export scans reported 82 symbols in 60 untouched files. Matching baseline scans timed out, and the one queued remote comparison never executed and was stopped/reconciled. No reported file was modified and no reported exported symbol appeared in removed source lines, but transitive export causality is not claimed proved. These facts are not described as green checks or used as CI failure attribution; no baseline/allowlist/timeout was weakened.

Proceeding with the coordinator-authorized inherited-failure exception, pinned to the reviewed head above. No release, deployment, schema change, or live-state operation is involved.

Post-merge accounting correction: a strict squash-first-parent recount excludes both documentation files and ui/src/test-helpers/app-sidebar.ts. Production-only change is 692 additions / 1,479 deletions = -787 LOC; the earlier -780 accounting mixed those non-production changes into the total. This does not change the approved 500-999 exception or CI evidence.

@steipete
steipete merged commit 8130510 into main Oct 12, 2026
175 of 180 checks passed
@steipete
steipete deleted the deslop/w04-ui-pages-20261011 branch October 12, 2026 07:20
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Oct 12, 2026
299 upstream commits, seven of them touching extensions/feishu (none
overlap the branch's files). runtime-forwarders.ts and the config baseline
hash file conflicted.

openclaw#169375 made createRuntimeOutboundDelegates read each method once instead
of re-reading the params on every call. The merge takes that shape and
adds the branch's sendFormattedText to the OutboundMethod union and to the
returned delegates, so Feishu still advertises the formatted sender on the
registered surface. Upstream's updated forwarder test is kept, with the
branch's sendFormattedText: undefined row.

The config baseline hashes were regenerated from this merge with
build:docker in a separate detached checkout. Counts are unchanged at core
2499, channel 4033 and plugin 4527, since upstream moved none. The core and
plugin hashes match upstream/main, the channel hash is the branch's from
the last merge, and the combined hash is new. The generated channel
metadata is unchanged. The config docs, channel metadata, config schema,
plugin inventory, sqlite session schema and runtime sidecar checks pass
there.

Feishu: 102 files and 1265 tests in the extension project, and the 17
Feishu files in the database-workers project (213 tests), all passing.
The four monitor.lifecycle.test.ts failures seen at the last merge are
gone: openclaw#169616 moved lifecycle.test-support.ts to mock the async binding
route that bot.ts calls. The
src/channels/plugins tests (112 files, 809 tests) and the other tests that
use the forwarders pass. tsgo:core, tsgo:extensions, tsgo:test, the eight
baseline ratchets against upstream/main, the import cycle checks and oxfmt
on the changed files pass. Lint reports 15 max-lines errors, deadcode:full
reports 3 unused exports and db:worker-inventory:check reports a stale
inventory, all in files this branch leaves identical to upstream, and all
three reproduce on a clean 3f337ed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…169375)

* refactor(ui): consolidate page state and refresh bookkeeping

* refactor: simplify transient plugin and client bookkeeping

Keep one path for channel configuration forwarding, Google thinking
preparation, status projections and rendering, and voice digest settlement.
Remove speculative catalog, transport, and lifecycle coordination while
preserving security-effect authority and ordinary durable settlement.

Best-effort tradeoffs accepted:
- Replacing the process-default AI host mid-session leaves old runtime-local
  caches for global cleanup or bounded expiry. openclaw#158901 tested replacement
  synthetically; explicit runtime owners and stream authority remain.
- A throwing synchronous custom-API registrar fails setup instead of requeuing
  a partial drain. openclaw#111669 supports initialization ordering, not recovery from
  an arbitrary throwing registrar; restart after repairing it.
- Reentrant toJSON cleanup can replace a continuation claim during serialization.
  openclaw#128848's synthetic callback is unlike provider JSON; the next turn can replay
  full history. Credential isolation and cache limits remain.
- A concurrent channel rebind may miss its activity touch. openclaw#154672's forced
  incarnation swaps no longer trigger a retry protocol; routing still rereads.
- An admitted CLI registry load may finish during shutdown. The work scope
  joins and disposes it; new command admission remains closed (openclaw#142388/openclaw#142838).
- Unsupported writers during offline NOCOW copying are no longer detected by
  a second inventory/fuser/fingerprint scan. openclaw#160877/openclaw#161501 used synthetic
  interleavings; initial exclusivity, integrity, atomic exchange, and retained
  originals still protect normal maintenance and recovery.
- Remote keyword listings changing between pages may repeat or skip entries,
  rather than reject the cursor (openclaw#163459). Request binding and limits remain.
- A missing subscription acknowledgment can leave stale observation until
  a fresh subscription or reconnect, without compensating requests. openclaw#126760
  and openclaw#159564 forced ACK loss; server authorization and acknowledged leases remain.
- A retained thinking callback may reject during plugin reload until the
  catalog refreshes or the caller retries. openclaw#162470 used forced retirement;
  the plugin instance continues to reject revoked execution.

Use the existing compiled CLI fixture for native-resource lifetime proof so
cold source transformation occurs before its unchanged runtime deadline.
No schema, dependency, protocol shape, or permission change.

* fix: preserve runtime cleanup error cause

Keep the existing aggregate errors and message while attaching the caught error as the standard cause. No signature or import graph changes.

* refactor(ui): finish subscription compensation cutover

* test: retire obsolete subscription recovery expectations

* fix(ui): guard legacy group import at the write boundary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant