Repository navigation
refactor(canvas)!: retire A2UI widgets and content-kind hooks - #182109
Conversation
Remove both renderers, their routes and build pipeline, and the generic registered board-widget API. Preserve HTML, native plugin widgets, and MCP Apps. Doctor takes a fresh standard backup before deleting stored A2UI widgets and records the count and HTML replacement guidance. The candidate Doctor owns this repair so existing update drivers can continue through the migration. Advance the closed board schema to protocol v5 with v4 node/probe negotiation, and preserve v4 pairing metadata in the client fallback. Calls using the retired show_widget kind receive actionable argument-validation guidance. BREAKING CHANGE: A2UI widgets and registerBoardWidgetContentKind are removed; stored A2UI widgets are deleted after backup during Doctor/update. General clients must support protocol v5.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53b55ce24e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,8 +1,8 @@ | |||
| /** Current gateway protocol version emitted by modern clients and servers. */ | |||
| export const PROTOCOL_VERSION = 4 as const; | |||
| export const PROTOCOL_VERSION = 5 as const; | |||
There was a problem hiding this comment.
Keep v4 nodes out of the v3 feature-filtering path
When the Gateway upgrades before its nodes, existing v4 nodes now satisfy usesLegacyNodeProtocol in src/gateway/server/ws-connection/connect-admission.ts:240. That flag still applies the pre-plugin-surface restrictions: connect-node-session.ts:198–208 filters plugin capabilities and commands, and connect-session.ts:291 suppresses all pluginSurfaceUrls. Consequently, supported v4 nodes lose working Canvas hosting and other plugin surfaces until they are upgraded too; both native clients obtain their Canvas host from that URL map. Since v4 already supports plugin surfaces and this bump only retires board content, remove those obsolete v3 restrictions or bind them to the actual protocol feature boundary rather than the moving current version.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3fca37d9d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export const PROTOCOL_VERSION = 5 as const; | ||
| /** Lowest general client protocol version accepted by the gateway. */ | ||
| export const MIN_CLIENT_PROTOCOL_VERSION = 4 as const; | ||
| export const MIN_CLIENT_PROTOCOL_VERSION = 5 as const; |
There was a problem hiding this comment.
Update the Linux client's protocol alongside the gateway
When the Linux desktop app connects to this gateway, its handshake is rejected: apps/linux/src-tauri/src/gateway_ws.rs:60–61 still hard-codes both protocol bounds to 4, and connect_params sends those bounds with the operator role, which is not eligible for the N-1 node/probe exception. Consequently, even a Linux app built from this same commit cannot connect, breaking Quick Chat. Update the Rust protocol bounds and its hello-version validation alongside this bump.
AGENTS.md reference: AGENTS.md:L51-L51
Useful? React with 👍 / 👎.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* test(ui): deslop q0002 tests Remove duplicate E2E layers and success-only capture scaffolding. Keep browser geometry, real transport, lifecycle and security assertions. Make the retained waiting-timer alignment check independent of optional artifact capture. Retained proof: new-session-page.durable-write-teardown.e2e.test.ts owns the identical near-cap and pending-write scenarios; config-page.custom-theme.test.ts and view-appearance.browser.test.tsx own Clear/import and rejected-preference behavior; question-prompt.shared-state.test.ts and chat-question-card.test.tsx own sibling resolution and typed-answer remounts. Keep secret validation and corrected-host submission together. Usage rendering/status remain in usage-page.test.ts, view.test.ts, view-overview.test.ts, provider-usage.test.tsx and tooltip.browser.test.ts. Sidebar ordering remains in app-sidebar-session-navigation-logic.test.ts, app-sidebar-session-filter.browser.test.ts and sidebar-selection-overflow/session-stability/pin-placement E2Es. Desktop mapping/retry remain in desktop-panel.test.ts and desktop-panel-session.test.ts; real keyboard/control proof remains in desktop-keyboard.e2e.test.ts and desktop-panel.e2e.test.ts. CI-only campaign: no tests, builds or coverage run. Plain oxlint, oxfmt and diff checks pass. LOC 6099 -> 5163 (15.3%); declarations 57 -> 45; literal-expanded cases 73 -> 53. Stop below 40% to preserve distinct browser and real MCP transport proof. No production, support or routing changes. * test(ui): consolidate remaining q0002 e2e layers Keep browser geometry and real transport contracts while removing owner-boundary replays. Cumulative shard LOC: 6099 -> 3635 (-40.4%); this commit removes another 1528 lines net. Static declarations 57 -> 30, expanded cases 73 -> 38. No test/build/coverage runs under CI-only mode; plain oxlint, oxfmt and diff checks pass. Subagent lifecycle, elapsed time and token accumulation remain in chat-progress.test.ts (reports the whole request; retains a resumed request), chat-sessions-yield.test.ts (counts each run once), chat-transcript-message-index.test.ts (preserves handoff), chat-pane-sidebar-layout.test.tsx (focus and retained panels) and chat-header-subagents.e2e.test.ts. Keep inline width, working-status ordering and waiting-clock browser geometry here. MCP confirmation/context and live authority remain in mcp-app-view.test.ts, server-methods/mcp-app.test.ts and mcp-app-standalone.test.ts; cache policy remains in mcp-app-sandbox-http.test.ts. Keep real App/HTTP/stdio cancellation, teardown, history and cross-origin theme proof. Appearance defaults/accent/server-selection remain in control-ui-presentation.test.ts, view-appearance.browser.test.tsx, server-prefs.test.ts, config-page.custom-theme.test.ts, settings.navigation-profile.test.ts and theme-selection-defaults.e2e.test.ts. Keep actual imported-palette reload and read-only reasoning proof. Question state/recovery remain in chat-composer-question.test.ts, question-prompt.test.ts and favicon status/browser owners; retain shared-card secret validation/retry in the mounted ask document. Attachment restoration and retirement remain in draft-handoff, incognito-navigation and attachment-url-lifecycle E2Es. Read completion, partial-batch custody and submission gates remain in chat-attachments.test.tsx, composer-attachments.test.ts, submit-gates.test.ts and chat-attachment-read-lifecycle.e2e.test.ts. Initial text adoption remains in history-merge.test.ts. Trim unasserted usage fixture fields only. Navigation startup/loading and typing remain in chat-history-warm-startup.test.ts, sessions/index.test.ts, connection-bootstrap.test.ts and chat-composer-focus.e2e.test.ts. Desktop popup routing remains in desktop-panel.e2e.test.ts and the session URL contract tests. No production, helper, routing or baseline changes. Leave the pre-existing obsolete cost-window-card selectors for coordinator diagnosis. * test(scripts): deslop q0005 tests Remove native-assignment cases duplicated by upgrade-survivor-native-assignments.test.ts, redundant tooling argument variants and log inventories. Share hosted-gate fixtures and assertions while retaining trust, freshness, membership and ordering checks. Keep the release-reuse resolver suite unchanged: its remaining cases protect distinct release authority and policy branches. * test(scripts): deslop q0012 tests Remove the copied frozen-membership suite from the plugin registry tests; upgrade-survivor-membership-compat.test.ts retains its three identical cases. Remove the copied loaded-stop-policy suite and virtual-clock harness from systemd tests; upgrade-survivor-stop-policy.test.ts retains all seven identical declarations, including process custody and cleanup failures. Trim source-spelling inventories already covered by executable Docker mount and credential tests and release workflow step lookups. Drop the untouched, unreferenced candidate-manifest self-comparison; preserve Node private-export loading proof. CI-only campaign: no tests, coverage, or builds run. Plain oxlint, oxfmt and git diff --check passed. 6383 to 5689 test lines; the remaining independent ownership, authority and lifecycle paths prevent an honest 40 percent cut. * test(scripts): consolidate q0001 fixtures and owner proof Squash the three q0001 cleanup commits onto the campaign lane. Preserve the newer lane waiver-admission cases, updated qualification-success assertions, and repaired owner-exemption fixture while retaining the shard consolidations and deletions elsewhere. CI-only validation: plain oxlint and oxfmt --check pass for all nine touched files; git diff --check passes. No tests, coverage, Testbox, or check-changed run; affected-test execution is deferred to landing PR CI. * test(scripts): deslop q0014 tests Share repeated recovery request slices, method/path selectors, and pagination fixtures in the security-review entry-point suite. Preserve every case and assertion; no production or shared test-support changes.\n\nKeep mac-runtime and frv.release unchanged: their executable security, publication, transport, and lifecycle boundaries have no redundant source-grep layer to remove safely. CI-only validation: plain oxlint, oxfmt, and diff check. * test(scripts): remove redundant q0014 boundary layers Remove duplicate parser variants, fixture self-checks, and internal inventory lookup proof already exercised by retained materialization snapshots and path-binding cases. Retain direct classifier cursor restoration, close-on-advance, abort cleanup, descriptor substitution, and publication guards. Consolidate release transport and artifact variants at their shared decision branches. Keep child workflow authentication at both callsites and denied second-page reads. Remove repeated security-review recovery and lifecycle scenarios covered by retained recovery cases, dependency-guard-script same-head approval, security-review-rollout ancestry, and security-sensitive-guard-script lifecycle tests. CI-only: oxfmt, plain oxlint, and diff check passed; no tests or coverage run. Original shard LOC 5624 to 5060; the 40 percent target remains unmet because remaining security, publication, and lifecycle contracts have no equivalent retained proof. * test(scripts): consolidate q0014 evidence fixtures Share security-review assertion, lifecycle, timing, and CI fixtures; retain all cases while consolidating common completion scenarios. Share FRV subprocess fixture ownership and legacy qualification setup without changing their distinct outcomes. Narrow Mac staging proof to package selection, launcher removal, owner metadata, isolation, and publication. The materialization resource snapshot and derived-runtime consumer cases retain byte-preservation and foreign-image removal proof. Share materializer FD/race evidence recording while retaining schedule, identity, bytes, and cleanup assertions. CI-only: plain oxlint, oxfmt, and diff check pass; no tests or coverage run. Original shard 5624 lines to 4886. The 40 percent target remains unmet; no sole security, release, or lifecycle proof was deleted to force the metric. * test(qa-lab): deslop q0015 tests Drop the synthetic v3 server and its cleanup-only test. Protocol range and mismatch behavior remain in src/gateway/client.test.ts (advertises the protocol compatibility range; pauses default operator clients after a permanent protocol mismatch). Consolidate real node inventory, presence and location invocation into the retained v3/v4 reconnect scenario. Keep plugin-surface negotiation, pairing reuse, exact invocation results and presence persistence checks. Remove the duplicate Discord quiet-success row: quiet failed-tool coverage remains in the shard, and message-handler.draft-preview.rest.test.ts covers completed tool activity with progress disabled. Run the identical portable rendering subscenario once rather than once per Discord progress variant. CI-only shard: oxfmt, diff-check and plain oxlint pass; no tests or coverage executed. Lines 5041 -> 4715; static cases 25 -> 21. Below the 40 percent target because the remaining scenarios cover distinct authority, lifecycle, catalog replacement and transport behavior. * test(qa-lab): remove redundant q0015 e2e layers Reduce the original shard from 5041 to 2606 test lines (48.3 percent), plus delete its now-unused 65-line native CLI fixture. Keep the previous shard commit intact. CI-only validation: oxfmt, diff-check and plain oxlint pass; no tests, coverage, builds or typechecks run. Retire the orphaned gateway-node-control-plane suite: its five control-plane helper imports have no implementations or exports, including at the shard baseline. Keep client.test.ts protocol-range proof, server.node-pairing-authz.test.ts legacy reconnect and surface approval proof, plugin-node-capability.test.ts legacy ceiling and capability proof, node-command-policy.test.ts policy proof, and server-node-events.test.ts plus device-pairing.test.ts and node-catalog.test.ts presence persistence/projection proof. Remove only its exact CI inventory and timing entries. Remove announcement E2E replays and their proxy/observer fixtures. Owner proof remains in subagent-announce-delivery.test.ts (reports suppression/adapter ambiguity; does not credit unidentified automatic receipts), delivery-completion.integration.test.ts (keeps an uncertainty notice owed without a delivery identity), and session-observer.terminal.test.ts (preserves the cause of a model failure). Slack dispatch.preview-fallback.test.ts owns compact/card/native task, failure and explicit reply-target branches; Discord message-handler.draft-preview.rest.test.ts and message-handler.process.draft-final.test.ts own quiet/tool progress and settlement. Keep the real stale pre-tool preview regression, origin-loss/native-stop rejection and portable Discord wire proof. Keep Telegram catalog replacement with claimed callback, no premature edit, two acknowledged callbacks, advanced polling offset and fully drained ingress. Generic browsing/CLI availability remains in bot.model-picker.test-support.ts via bot.test.ts, bot.create-telegram-bot.test.ts callback retry, model-callback.loopback.integration.test.ts, models-list-result.cli-runtime-availability.test.ts and prepared-model-runtime.native-demand.test.ts. Remove the mixed worker lifecycle replay: node-worker-bundle-installer.test.ts repairs missing receipts; node-worker-supervisor.test.ts admits two durable launches and releases physical slots; worker-turn-launcher-failure-recovery.test.ts preserves active placement after offline/capacity rejection; placement-dispatch-reclaim.test.ts moves back without a reclaimed intermediate; nodes.test.ts and provider-node-teardown.test.ts own role-removal ordering and exact stop/credential settlement. Keep real revoked/unconfirmed turn fencing. Codex retains denial/approval, credential isolation, persistent authorization, physical disconnect extinction and fresh recovery; remove duplicated diagnostic scaffolding and reuse joined cleanup. * test(ui): deslop q0016 tests Remove capture-only video, screenshot, and timing-report scaffolding while retaining pagination probe evidence and all real-Gateway ordering, byte-budget, pagination, and avatar-cache assertions. Coverage owners: chat-error-details.e2e.test.ts and chat-view.test.ts retain error disclosure/copy contracts; chat-responsive.browser.test.ts, new-session-page.responsive-welcome.e2e.test.ts, and new-session-page.model-picker-spacing.e2e.test.ts retain shared responsive composer/picker layout. The streaming flow retains terminal partial text, keyboard/touch disclosure, error geometry, and retry clearing. Delete repeated account-refresh proof owned by model-control.metadata-lifecycle.test.ts (selects a usable retained account after refresh failure without changing saved preferences). Delete folder fallback replay owned by place-browser-state.test.ts (opens HOME for a missing starting folder but reports explicit navigation failures) and place-browser.test.tsx (failed-refresh alert and recovery). CI-only campaign: no tests, coverage, build, or check-changed runs. Plain oxlint, oxfmt, and diff-check pass. Below the 40% target: retain distinct media transport, history/reconnect, approval, telemetry-row identity, and durable-store interleaving coverage. * test(qa): deslop q0017 tests Remove duplicate Docker destination-policy proof retained by required-destination-container-wire.e2e.test.ts. Retain real cancellation and container cleanup proof. Keep exact-pin private-history coverage in src/gateway/server-methods/skills-library.test.ts (exposes exact private pins only while session access remains current), with private RPC denial in skill-library-identity-wire.e2e.test.ts. Keep non-read automation action coverage in src/agents/agent-tools.turn-authority.test.ts (serves caller-scoped automation reads and keeps every write owner-gated). Deduplicate native provider setup with the existing fixture, remove diagnostic-only bookkeeping, and reduce ownership input combinations without losing attachment, ordering, or seeded/unseeded dispatch branches. Preserve all distinct revocation, disclosure, native settlement, and installed-package boundaries. CI-only validation: formatter, plain oxlint, and git diff --check pass. No tests or coverage run. Shard lines 5421 to 5065; declarations 14 to 13; expanded cases 18 to 15. The 40 percent line target is not safely attainable without dropping distinct end-to-end proof. * test(qa): remove redundant q0017 e2e layers Delete provider-review composition: sessions-provider-review.test.ts owns literal admission and awaited-read authority; provider-review-continuation.test.ts owns exact SSE/WebSocket steer and final-effect revalidation; sessions-sharing.test.ts owns viewer denial; devices.lifecycle.test.ts owns immediate invalidation. Session lifecycle tests retain review persistence. Delete Docker composition: required-destination-container-wire.e2e.test.ts retains physical execution and result reconciliation; node-worker-supervisor.container.test.ts retains mounts, labels, isolation and cancellation acknowledgement; worker-runtime-permissions.suite.ts retains full-mode approval suppression. UI chat-flow.models-reasoning, worker-inference and chat-run-lifecycle E2Es retain send/settings/start/abort ordering. Delete automation-boundary composition: system-turn-automation-reads.e2e.test.ts retains real notice admission; cron.validation.test.ts retains creator isolation and history hydration deletion/closure; agent-tools.turn-authority.test.ts retains owner gating and forged provenance; authenticated-request-dispatch.server.test.ts retains runtime revocation before response. Cron service one-shot and batch-finalization tests retain durable failure and auto-disable notification. Remove global ownership replay covered by chat-send-global-identity, chat-send-attachments.owner, chat-history-ownership, server.agent.gateway-server-agent-a, placement-turn-claims.worker and sessions-describe-worker tests. Remove worker permission/legacy/audit and Workshop-authoring replays covered by worker-runtime-permissions.suite, node-launch-adapter, execution-decision-facts/work and skill-library-authoring tests. Preserve loaded finalization, reconnect, physical skill materialization/pinning, native same-session settlement, canonical OpenShell authority and installed OTel coverage. Original shard 5421 to 2881 lines (-46.9%); additional pass 5065 to 2881 (-43.1%). Static formatter, plain oxlint and diff check pass. No tests or coverage run under CI-only instructions. * test(ui): consolidate q0003 e2e owner proof Port q0003 commits 351963564e993 and df86bbb922071 onto the campaign lane. Preserve the newer capability-menu and session-group cases unchanged, plus all four Enter-key cases and their stronger committed-state wait. Apply the remaining cleanup and retain receipt-list failure visibility and desktop scrollability assertions. CI-only validation: oxlint and oxfmt --check passed for all six shard files; git diff --check passed. No tests, coverage, Testbox, or check-changed were run. Independent review is clean after fixing two Activity assertion gaps. * test(scripts): trim q0012 owner replays and fixtures Port q0012 commits ef8017a51048, 446dc27dff34, and 565ac587d1c7 onto the campaign lane. Preserve the newer Windows release-selection matrix, exact-head security-enforcement cases, and package-test sparse declaration-roots regression while applying the shard cleanup. CI-only proof: plain oxlint and oxfmt --check passed for all eight touched files; git diff --check passed. Independent review found no actionable findings. Tests, coverage, Testbox, and check-changed were not run; affected-test execution is deferred to landing PR CI. * test(ui): deslop q0020 tests Remove the restored A2UI suite: its renderer, corpus fixture and bundler were retired in 6f88c26 (#182109). Retired-widget migration remains covered by src/commands/doctor-a2ui-widgets.test.ts. Keep direct shortcuts in session-shortcuts.e2e.test.ts and keyboard-shortcuts-focus.e2e.test.ts instead of replaying them in the real-Gateway search scenario. Keep both composer routes with hover coverage rather than additionally replaying without hover. Share pending account-pagination checks. Remove optional capture/reporting layers and unasserted render diagnostics while retaining budget assertions, native security/recovery, search scope, and responsive controls. CI-only campaign: oxfmt, plain oxlint and diff-check passed; tests and coverage deferred to hosted CI. * test(ui): consolidate q0016 e2e owner coverage Retire redundant picker revalidation and retry scenarios covered by model-control.metadata-lifecycle.test.ts, model-control.test.ts, and chat-model-picker.browser.test.tsx. Keep browser geometry and metadata publication recovery. Image alias acquisition and eviction remain in chat-message-image-admission.test.tsx and chat-message.images.test.tsx. File-copy fallback remains in chat-file-copy-retirement.e2e.test.ts (current/path) and clipboard.test.ts (absent API). Avatar cache semantics remain in assistant-avatar-http.test.ts. Cursor commentary recovery remains in chat-history-cursor.test.ts; pane eviction remains in the retained paginated-history scenario. Offline attachment replay remains in chat-outbox-payloads.e2e.test.ts. Consolidate retained reasoning/tool navigation and pre-submit creation assertions into the stronger cross-tab and browsed-folder scenarios. Keep touch-completion interleaving; generic disclosure and normalization remain in chat-responsive.e2e.test.ts, chat-transcript-render.test.ts, and markdown-streaming.test.ts. Tool detail contracts remain in chat-tool-cards.test.tsx. Incognito queue persistence remains in composer-persistence.test.ts; checkout/filter behavior remains in checkout-chip.test.ts, where-chip.test.ts, and new-session-page.incognito-navigation.e2e.test.ts. CI-only: plain oxlint, oxfmt, and git diff --check pass. No tests, builds, or coverage run. Original shard 5466 lines to 3558 (34.9%); further cuts would retire distinct lifecycle, security, storage, or layout proof. * test(scripts): deslop q0019 tests Factor dialect expectation rows and release-child rejection types without removing cases. Keep all 22 primitive-owner matrix inputs and every release authority and lifecycle boundary. Remove the repeated identical-input inventory scan assertion; the retained SQL inventory case still verifies its rows. Remove copied benchmark lane IDs; the retained inventory test still validates the manifest and hashes the selected workload. * test(scripts): remove redundant q0019 fixture layers Replace the fixture-defined cancellation/rescue driver with the fixture owner promise-join and unwind contract. Keep real process cleanup at test/helpers/run-node-script.test.ts and test/scripts/managed-child-process.output.test.ts (starts owned-tree cleanup at leader exit while a descendant holds both output pipes). Use the shared copied-source compiler for lint fixtures, trim repeated branch variants, and remove copied catalog, recipe, workflow-default and diagnostic inventories. Workflow default identity remains in full-release-validation-continuation-workflow.test.ts; the stronger mid-verification rerun and failed-upload cases retain reuse validation coverage. Preserve distinct release approval, provenance ordering, credential isolation and worker shutdown interleavings. Validation is static only under the campaign CI-only instruction. * test(scripts): consolidate q0019 owner-boundary proof Keep related lint outcomes and Android approval rejections in shared tables with all distinct inputs retained. Compact dialect expectations while preserving construct order, multiplicity, owner classification and independent span checks. Drop duplicate Barnacle maintainer exemption proof covered by ancillary-workflow-concurrency.test.ts (rejects the owners known exemption before allocation). Keep inline-model conversion at src/agents/embedded-agent-runner/model.inline-provider.test.ts and wrapper trailer formatting at run-vitest-bounded.test.ts; retain shutdown races in their owner suite. Reuse the watchdog and benchmark schedule fixture owners; remove prepared-layout source inventories and repeated stage-independent logging validation. No production changes or runtime tests; CI-only campaign static gates passed. * test(scripts): deslop q0018 tests Remove copied workflow and catalog inventories while retaining executable provenance, planner, redaction, and renderer contracts. The prerelease scheduler case retains the external-install canary; renderer collision checks retain generic anchor uniqueness. Exact child identity and dispatch behavior remain covered by package-acceptance-workflow.test.ts. CI-only: oxfmt, plain oxlint, and diff checks passed. No tests or coverage run. Shard LOC 5665 to 5368 (5.2%); below the 40% target because the remaining credential, npm provenance, and process lifecycle cases protect distinct boundaries. * test(scripts): deslop q0018 redundant proof layers Drop repeated allowlist-entry graphs; retain exact worker/Doctor admission, unowned references, sink budgets, repeated publication edges, SDK escapes, command and lazy-import boundaries. Replace copied planner partitions with complete, unique file coverage and Telegram config ownership. Delegate profiler contents to run-vitest-profile.test.ts (profiles selected runner) and post-ack shutdown to vitest-fork-shutdown.test.ts (joins hung-exit shutdown). Preserve namespace and SQLite lifetime proof here. Remove duplicate npm producer-verifier rows and report inventories; shared producer failures remain covered by requires a successful parent for publication and reuses successful preparation and source jobs after parent failure. Synthetic maturity judgments still assert the independent 75 percent result. CI-only: oxfmt, plain oxlint and git diff --check passed; no tests, coverage or check-changed ran. Additional cut: 5368 to 4771 lines. Cumulative: 5665 to 4771 (15.8 percent), still below the requested 40 percent. No production or support files changed. * test(scripts): reduce q0018 runner replay fixtures Replace the multi-wrapper state-cleanup replay with focused real two-file SQLite retirement, strict first/second-file failure verdicts, and native shell-profile isolation. Keep native-home admission and resource receipt failure branches. Home staging remains covered by test/test-env.test.ts, temp-home lifecycle by src/test-utils/temp-home.test.ts, worker retirement by test/non-isolated-runner.test.ts, cache lifetime by vitest-process-cache.test.ts, and wrapper execution by run-vitest, run-vitest-profile, and vitest-report-owner tests. Remove copied prerelease command and concurrency inventories while keeping scheduler completeness, non-cancellation, release-context rejection and blocking-result invariants. CI-only: oxfmt, plain oxlint and diff checks passed; no tests or builds run. Shard LOC 4771 to 4434 this pass, 5665 to 4434 cumulatively (21.7 percent); the requested 40 percent remains unmet. * test(release): share q0013 transport and native helper proof Port q0013 commits f2633d4609e0, 818c7c5651bd, and d376c73ca2b4 onto the campaign lane as one commit. Preserve newer release-state coverage, including HTTP/2 recovery, artifact errors, ghost attempts, Windows policy, cancellation, and candidate manifests. CI-only validation: plain oxlint, oxfmt --check, and git diff --check passed. No tests or coverage run. Independent review finding checked against the helper producer and consumer paths and rejected: both use the fixture work/helper-products file. * test(scripts): deslop q0023 tests Consolidate fixtures and remove duplicated gauntlet process lifecycle replays. Keep managed-child-process.output.test.ts, managed-child-process.test.ts, and managed-child-process.drain.test.ts as lifecycle owners; retain gauntlet error mapping and late-signal rethrow proof. Retain HTTP routing coverage while relying on agent-plugin-bundle-response.test.ts for bundle receipt rejection and bench-gateway-concurrency.test.ts for runtime-carrier boundary variants. Remove repeated same-guard control inputs and copied default inventories. CI-only campaign: oxfmt, plain oxlint and diff-check pass. No tests or coverage run. 5245 to 4925 lines (6.1% reduction); the 40% target remains unmet because remaining cases protect distinct security, provenance, lifecycle and publication paths. * test(scripts): remove redundant q0023 tooling layers Retire repeated lifecycle matrices and complete command inventories. Checkout ownership/reset/retry/cancellation stays in ci-platform-checkout.test.ts; generic fencing, typed recovery and output settlement stays in ci-git-owner.test.ts. QA topology/protocol-base validation stays in ci-workflow-evidence.test.ts. Keep gauntlet-specific late-signal rethrow and timeout row mapping with minimal native fixtures; shared managed-child-process tests own descendant cleanup. Keep one real QA diagnostic integration and exercise invalid summaries directly through readQaSuiteSummary. Combine dependency/slash lifecycle setup and replace parser inventories with shared-branch representatives. Bundle protocol stays in agent-plugin-bundle-response.test.ts; retain HTTP routing checks. Replace the self-counting npm fixture with a direct reported-tarball identity assertion; npm-runner.test.ts retains runner selection proof. Remove same-guard input variants while retaining security boundaries. CI-only: oxfmt, plain oxlint and diff-check pass; no tests/build/coverage run. This commit cuts 4925 to 4176 lines. Cumulative 5245 to 4176 is 20.4%, below the 40% target; remaining independent downloader, mock-server and publication behaviors have no replacement proof. * test(scripts): consolidate remaining q0023 duplicate proof Remove the test-local readiness simulation and nested state factory mock. Preserve the SQLite flip live endpoint, configuration failure and verified child cleanup contracts at actual instance acquisition. Keep utility model precedence and shared streaming lifecycle assertions once; malformed MCP output remains covered by the Code Mode fixture completion scenario. Move QA hot CPU assertions into the existing diagnostic integration; startup CPU remains covered by check-gateway-cpu-scenarios.test.ts. Merge empty-run cleanup into the existing slash-only scenario. Remove redundant process signal call-shape instrumentation while retaining observable death of initially-live resistant descendants. Shrink copied input and manifest inventories and shared executable fixtures. Preserve independent custom package runner timeout, graceful drain, clamp and external termination cases: these do not use the managed-child runner. Keep downloader security and provenance guards. CI-only static gates pass: oxfmt, plain oxlint and diff-check. No tests/build/coverage run. Additional 4176 to 3987 lines; cumulative 5245 to 3987 (24.0%). Target remains unmet by 840 lines; no files or production code deleted. * test(ui): deslop q0021 tests Remove optional capture scaffolding and duplicate E2E owner replays. Keep browser geometry, keyboard focus, remote approval routing, recovery authority, and real-Gateway interleavings. Remaining proof: approval-page.test.ts covers malformed projections and reconnect gating; canonical winner E2E covers refreshed Gateway content. markdown-code-blocks.test.ts and markdown-streaming.test.ts cover literal indented rendering/copying, and markdown-element-refs-solid.test.ts covers retained observation teardown. processes-panel-data.test.ts and chat-processes-panel.test.ts cover transient reads, empty results and stop capability changes. Catalog cold-link flow retains sidebar return, split ownership and adoption; one viewer and one over-budget art size cover the duplicate input rows. CI-only campaign: plain oxlint, oxfmt and diff check pass. No tests or coverage run. LOC 5100 -> 4654 (-8.75%); target 40% not reached without dropping distinct behaviors. * test(ui): deslop q0021 e2e owner layers Remove quota switching replay: chat-state.test.ts rebinds selected-global auth and rejects superseded Main; chat-pane-identity.test.ts rebinds retained fixed-route presentation; chat-view.test.ts scopes subscription usage and navigation. Keep share routes in route-loader-catalog-share.test.ts; catalog views in codex-sessions.e2e.test.ts; process lifecycle in processes-panel-data.test.ts, chat-processes-panel.test.ts and processes-panel.e2e.test.ts; subagent navigation in chat-details-subagents.test.tsx and chat-subagents-panel.test.ts. Keep streaming fence control identity in chat-message-streaming.browser.test.tsx; rail navigation and viewport membership in chat-position-rail.e2e.test.ts; responsive composer sizing in chat-composer-sizing.test.ts; tooltip pin/dismiss behavior in tooltip.test.ts and tooltip.browser.test.ts. Keep pending device creation in new-session-page.device-folder.e2e.test.ts, create-params.test.ts and session-placement-startup.test.ts; destination restoration in draft-place-default-repository.test.ts, draft-place-state.test.ts and draft-session-placement.test.ts. Queue mutation conflicts remain in chat-queue-edit-conflict-recovery.e2e.test.ts and chat-queue-reorder.test.ts. Consolidate fixtures and browser probes while retaining real geometry, codecs, recovery guards and collaborator interleavings. Correct pre-existing nonexistent composer harness imports to the existing exact locator boundary. Approval severity and canonical resolution remain in approval-page.test.ts. Attachment status rendering remains in chat-message-attachments.test.tsx. CI-only: no tests, coverage or builds run. Plain oxlint, oxfmt and git diff --check pass. Original shard 5100 -> 3104 LOC (39.1%); 44 lines short of 40%, retained rather than deleting distinct browser/lifecycle proof. * test: retain d453 contracts flagged by CI and review
…pdatable (#182319) #182109 retired the A2UI pipeline and removed its .gitignore entries, but Git installs built before it keep the generated bundles under extensions/canvas/src/host/a2ui/ (and older src/canvas-host/a2ui and vendor/a2ui dist outputs). Once unignored, the update clean check (git status --porcelain) reports them as untracked and every later `openclaw update` refuses the checkout as dirty. Observed on a production Git install after updating to 6f88c26. Restore the ignore entries for the retired outputs and guard them with a check-ignore regression test next to the clean check's owner.
#182109 replaced the local MAX_PROTOCOL_VERSION constant in gateway_ws.rs with the shared openclaw_gateway_client PROTOCOL_VERSION but left three hello-ok fixtures in gateway_control_auth_owner_tests.rs on the removed name, so the desktop companion test builds fail with E0425 on main (Build Linux companion, Test macOS companion, Test Windows desktop).
…aw#182109) * refactor(canvas)!: retire A2UI widgets and content-kind hooks Remove both renderers, their routes and build pipeline, and the generic registered board-widget API. Preserve HTML, native plugin widgets, and MCP Apps. Doctor takes a fresh standard backup before deleting stored A2UI widgets and records the count and HTML replacement guidance. The candidate Doctor owns this repair so existing update drivers can continue through the migration. Advance the closed board schema to protocol v5 with v4 node/probe negotiation, and preserve v4 pairing metadata in the client fallback. Calls using the retired show_widget kind receive actionable argument-validation guidance. BREAKING CHANGE: A2UI widgets and registerBoardWidgetContentKind are removed; stored A2UI widgets are deleted after backup during Doctor/update. General clients must support protocol v5. * test: align retirement proof with protocol v5 * fix(protocol): preserve v4 node features through the v5 cutover * fix(doctor): preserve retired third-party widget sources * test(ui): settle context meter before measuring pixels
…limit (openclaw#182269) Split signed-connect field preservation and invalid-manifest rejection into focused integration tests. Preserve all 12 cases and assertions with shared local setup. The protocol-v5 coverage in 18900ac (openclaw#182109) grew the combined test past the 100-line Clippy limit.
…2318) * test(ui): deslop q0002 tests Remove duplicate E2E layers and success-only capture scaffolding. Keep browser geometry, real transport, lifecycle and security assertions. Make the retained waiting-timer alignment check independent of optional artifact capture. Retained proof: new-session-page.durable-write-teardown.e2e.test.ts owns the identical near-cap and pending-write scenarios; config-page.custom-theme.test.ts and view-appearance.browser.test.tsx own Clear/import and rejected-preference behavior; question-prompt.shared-state.test.ts and chat-question-card.test.tsx own sibling resolution and typed-answer remounts. Keep secret validation and corrected-host submission together. Usage rendering/status remain in usage-page.test.ts, view.test.ts, view-overview.test.ts, provider-usage.test.tsx and tooltip.browser.test.ts. Sidebar ordering remains in app-sidebar-session-navigation-logic.test.ts, app-sidebar-session-filter.browser.test.ts and sidebar-selection-overflow/session-stability/pin-placement E2Es. Desktop mapping/retry remain in desktop-panel.test.ts and desktop-panel-session.test.ts; real keyboard/control proof remains in desktop-keyboard.e2e.test.ts and desktop-panel.e2e.test.ts. CI-only campaign: no tests, builds or coverage run. Plain oxlint, oxfmt and diff checks pass. LOC 6099 -> 5163 (15.3%); declarations 57 -> 45; literal-expanded cases 73 -> 53. Stop below 40% to preserve distinct browser and real MCP transport proof. No production, support or routing changes. * test(ui): consolidate remaining q0002 e2e layers Keep browser geometry and real transport contracts while removing owner-boundary replays. Cumulative shard LOC: 6099 -> 3635 (-40.4%); this commit removes another 1528 lines net. Static declarations 57 -> 30, expanded cases 73 -> 38. No test/build/coverage runs under CI-only mode; plain oxlint, oxfmt and diff checks pass. Subagent lifecycle, elapsed time and token accumulation remain in chat-progress.test.ts (reports the whole request; retains a resumed request), chat-sessions-yield.test.ts (counts each run once), chat-transcript-message-index.test.ts (preserves handoff), chat-pane-sidebar-layout.test.tsx (focus and retained panels) and chat-header-subagents.e2e.test.ts. Keep inline width, working-status ordering and waiting-clock browser geometry here. MCP confirmation/context and live authority remain in mcp-app-view.test.ts, server-methods/mcp-app.test.ts and mcp-app-standalone.test.ts; cache policy remains in mcp-app-sandbox-http.test.ts. Keep real App/HTTP/stdio cancellation, teardown, history and cross-origin theme proof. Appearance defaults/accent/server-selection remain in control-ui-presentation.test.ts, view-appearance.browser.test.tsx, server-prefs.test.ts, config-page.custom-theme.test.ts, settings.navigation-profile.test.ts and theme-selection-defaults.e2e.test.ts. Keep actual imported-palette reload and read-only reasoning proof. Question state/recovery remain in chat-composer-question.test.ts, question-prompt.test.ts and favicon status/browser owners; retain shared-card secret validation/retry in the mounted ask document. Attachment restoration and retirement remain in draft-handoff, incognito-navigation and attachment-url-lifecycle E2Es. Read completion, partial-batch custody and submission gates remain in chat-attachments.test.tsx, composer-attachments.test.ts, submit-gates.test.ts and chat-attachment-read-lifecycle.e2e.test.ts. Initial text adoption remains in history-merge.test.ts. Trim unasserted usage fixture fields only. Navigation startup/loading and typing remain in chat-history-warm-startup.test.ts, sessions/index.test.ts, connection-bootstrap.test.ts and chat-composer-focus.e2e.test.ts. Desktop popup routing remains in desktop-panel.e2e.test.ts and the session URL contract tests. No production, helper, routing or baseline changes. Leave the pre-existing obsolete cost-window-card selectors for coordinator diagnosis. * test(scripts): deslop q0005 tests Remove native-assignment cases duplicated by upgrade-survivor-native-assignments.test.ts, redundant tooling argument variants and log inventories. Share hosted-gate fixtures and assertions while retaining trust, freshness, membership and ordering checks. Keep the release-reuse resolver suite unchanged: its remaining cases protect distinct release authority and policy branches. * test(scripts): deslop q0012 tests Remove the copied frozen-membership suite from the plugin registry tests; upgrade-survivor-membership-compat.test.ts retains its three identical cases. Remove the copied loaded-stop-policy suite and virtual-clock harness from systemd tests; upgrade-survivor-stop-policy.test.ts retains all seven identical declarations, including process custody and cleanup failures. Trim source-spelling inventories already covered by executable Docker mount and credential tests and release workflow step lookups. Drop the untouched, unreferenced candidate-manifest self-comparison; preserve Node private-export loading proof. CI-only campaign: no tests, coverage, or builds run. Plain oxlint, oxfmt and git diff --check passed. 6383 to 5689 test lines; the remaining independent ownership, authority and lifecycle paths prevent an honest 40 percent cut. * test(scripts): consolidate q0001 fixtures and owner proof Squash the three q0001 cleanup commits onto the campaign lane. Preserve the newer lane waiver-admission cases, updated qualification-success assertions, and repaired owner-exemption fixture while retaining the shard consolidations and deletions elsewhere. CI-only validation: plain oxlint and oxfmt --check pass for all nine touched files; git diff --check passes. No tests, coverage, Testbox, or check-changed run; affected-test execution is deferred to landing PR CI. * test(scripts): deslop q0014 tests Share repeated recovery request slices, method/path selectors, and pagination fixtures in the security-review entry-point suite. Preserve every case and assertion; no production or shared test-support changes.\n\nKeep mac-runtime and frv.release unchanged: their executable security, publication, transport, and lifecycle boundaries have no redundant source-grep layer to remove safely. CI-only validation: plain oxlint, oxfmt, and diff check. * test(scripts): remove redundant q0014 boundary layers Remove duplicate parser variants, fixture self-checks, and internal inventory lookup proof already exercised by retained materialization snapshots and path-binding cases. Retain direct classifier cursor restoration, close-on-advance, abort cleanup, descriptor substitution, and publication guards. Consolidate release transport and artifact variants at their shared decision branches. Keep child workflow authentication at both callsites and denied second-page reads. Remove repeated security-review recovery and lifecycle scenarios covered by retained recovery cases, dependency-guard-script same-head approval, security-review-rollout ancestry, and security-sensitive-guard-script lifecycle tests. CI-only: oxfmt, plain oxlint, and diff check passed; no tests or coverage run. Original shard LOC 5624 to 5060; the 40 percent target remains unmet because remaining security, publication, and lifecycle contracts have no equivalent retained proof. * test(scripts): consolidate q0014 evidence fixtures Share security-review assertion, lifecycle, timing, and CI fixtures; retain all cases while consolidating common completion scenarios. Share FRV subprocess fixture ownership and legacy qualification setup without changing their distinct outcomes. Narrow Mac staging proof to package selection, launcher removal, owner metadata, isolation, and publication. The materialization resource snapshot and derived-runtime consumer cases retain byte-preservation and foreign-image removal proof. Share materializer FD/race evidence recording while retaining schedule, identity, bytes, and cleanup assertions. CI-only: plain oxlint, oxfmt, and diff check pass; no tests or coverage run. Original shard 5624 lines to 4886. The 40 percent target remains unmet; no sole security, release, or lifecycle proof was deleted to force the metric. * test(qa-lab): deslop q0015 tests Drop the synthetic v3 server and its cleanup-only test. Protocol range and mismatch behavior remain in src/gateway/client.test.ts (advertises the protocol compatibility range; pauses default operator clients after a permanent protocol mismatch). Consolidate real node inventory, presence and location invocation into the retained v3/v4 reconnect scenario. Keep plugin-surface negotiation, pairing reuse, exact invocation results and presence persistence checks. Remove the duplicate Discord quiet-success row: quiet failed-tool coverage remains in the shard, and message-handler.draft-preview.rest.test.ts covers completed tool activity with progress disabled. Run the identical portable rendering subscenario once rather than once per Discord progress variant. CI-only shard: oxfmt, diff-check and plain oxlint pass; no tests or coverage executed. Lines 5041 -> 4715; static cases 25 -> 21. Below the 40 percent target because the remaining scenarios cover distinct authority, lifecycle, catalog replacement and transport behavior. * test(qa-lab): remove redundant q0015 e2e layers Reduce the original shard from 5041 to 2606 test lines (48.3 percent), plus delete its now-unused 65-line native CLI fixture. Keep the previous shard commit intact. CI-only validation: oxfmt, diff-check and plain oxlint pass; no tests, coverage, builds or typechecks run. Retire the orphaned gateway-node-control-plane suite: its five control-plane helper imports have no implementations or exports, including at the shard baseline. Keep client.test.ts protocol-range proof, server.node-pairing-authz.test.ts legacy reconnect and surface approval proof, plugin-node-capability.test.ts legacy ceiling and capability proof, node-command-policy.test.ts policy proof, and server-node-events.test.ts plus device-pairing.test.ts and node-catalog.test.ts presence persistence/projection proof. Remove only its exact CI inventory and timing entries. Remove announcement E2E replays and their proxy/observer fixtures. Owner proof remains in subagent-announce-delivery.test.ts (reports suppression/adapter ambiguity; does not credit unidentified automatic receipts), delivery-completion.integration.test.ts (keeps an uncertainty notice owed without a delivery identity), and session-observer.terminal.test.ts (preserves the cause of a model failure). Slack dispatch.preview-fallback.test.ts owns compact/card/native task, failure and explicit reply-target branches; Discord message-handler.draft-preview.rest.test.ts and message-handler.process.draft-final.test.ts own quiet/tool progress and settlement. Keep the real stale pre-tool preview regression, origin-loss/native-stop rejection and portable Discord wire proof. Keep Telegram catalog replacement with claimed callback, no premature edit, two acknowledged callbacks, advanced polling offset and fully drained ingress. Generic browsing/CLI availability remains in bot.model-picker.test-support.ts via bot.test.ts, bot.create-telegram-bot.test.ts callback retry, model-callback.loopback.integration.test.ts, models-list-result.cli-runtime-availability.test.ts and prepared-model-runtime.native-demand.test.ts. Remove the mixed worker lifecycle replay: node-worker-bundle-installer.test.ts repairs missing receipts; node-worker-supervisor.test.ts admits two durable launches and releases physical slots; worker-turn-launcher-failure-recovery.test.ts preserves active placement after offline/capacity rejection; placement-dispatch-reclaim.test.ts moves back without a reclaimed intermediate; nodes.test.ts and provider-node-teardown.test.ts own role-removal ordering and exact stop/credential settlement. Keep real revoked/unconfirmed turn fencing. Codex retains denial/approval, credential isolation, persistent authorization, physical disconnect extinction and fresh recovery; remove duplicated diagnostic scaffolding and reuse joined cleanup. * test(ui): deslop q0016 tests Remove capture-only video, screenshot, and timing-report scaffolding while retaining pagination probe evidence and all real-Gateway ordering, byte-budget, pagination, and avatar-cache assertions. Coverage owners: chat-error-details.e2e.test.ts and chat-view.test.ts retain error disclosure/copy contracts; chat-responsive.browser.test.ts, new-session-page.responsive-welcome.e2e.test.ts, and new-session-page.model-picker-spacing.e2e.test.ts retain shared responsive composer/picker layout. The streaming flow retains terminal partial text, keyboard/touch disclosure, error geometry, and retry clearing. Delete repeated account-refresh proof owned by model-control.metadata-lifecycle.test.ts (selects a usable retained account after refresh failure without changing saved preferences). Delete folder fallback replay owned by place-browser-state.test.ts (opens HOME for a missing starting folder but reports explicit navigation failures) and place-browser.test.tsx (failed-refresh alert and recovery). CI-only campaign: no tests, coverage, build, or check-changed runs. Plain oxlint, oxfmt, and diff-check pass. Below the 40% target: retain distinct media transport, history/reconnect, approval, telemetry-row identity, and durable-store interleaving coverage. * test(qa): deslop q0017 tests Remove duplicate Docker destination-policy proof retained by required-destination-container-wire.e2e.test.ts. Retain real cancellation and container cleanup proof. Keep exact-pin private-history coverage in src/gateway/server-methods/skills-library.test.ts (exposes exact private pins only while session access remains current), with private RPC denial in skill-library-identity-wire.e2e.test.ts. Keep non-read automation action coverage in src/agents/agent-tools.turn-authority.test.ts (serves caller-scoped automation reads and keeps every write owner-gated). Deduplicate native provider setup with the existing fixture, remove diagnostic-only bookkeeping, and reduce ownership input combinations without losing attachment, ordering, or seeded/unseeded dispatch branches. Preserve all distinct revocation, disclosure, native settlement, and installed-package boundaries. CI-only validation: formatter, plain oxlint, and git diff --check pass. No tests or coverage run. Shard lines 5421 to 5065; declarations 14 to 13; expanded cases 18 to 15. The 40 percent line target is not safely attainable without dropping distinct end-to-end proof. * test(qa): remove redundant q0017 e2e layers Delete provider-review composition: sessions-provider-review.test.ts owns literal admission and awaited-read authority; provider-review-continuation.test.ts owns exact SSE/WebSocket steer and final-effect revalidation; sessions-sharing.test.ts owns viewer denial; devices.lifecycle.test.ts owns immediate invalidation. Session lifecycle tests retain review persistence. Delete Docker composition: required-destination-container-wire.e2e.test.ts retains physical execution and result reconciliation; node-worker-supervisor.container.test.ts retains mounts, labels, isolation and cancellation acknowledgement; worker-runtime-permissions.suite.ts retains full-mode approval suppression. UI chat-flow.models-reasoning, worker-inference and chat-run-lifecycle E2Es retain send/settings/start/abort ordering. Delete automation-boundary composition: system-turn-automation-reads.e2e.test.ts retains real notice admission; cron.validation.test.ts retains creator isolation and history hydration deletion/closure; agent-tools.turn-authority.test.ts retains owner gating and forged provenance; authenticated-request-dispatch.server.test.ts retains runtime revocation before response. Cron service one-shot and batch-finalization tests retain durable failure and auto-disable notification. Remove global ownership replay covered by chat-send-global-identity, chat-send-attachments.owner, chat-history-ownership, server.agent.gateway-server-agent-a, placement-turn-claims.worker and sessions-describe-worker tests. Remove worker permission/legacy/audit and Workshop-authoring replays covered by worker-runtime-permissions.suite, node-launch-adapter, execution-decision-facts/work and skill-library-authoring tests. Preserve loaded finalization, reconnect, physical skill materialization/pinning, native same-session settlement, canonical OpenShell authority and installed OTel coverage. Original shard 5421 to 2881 lines (-46.9%); additional pass 5065 to 2881 (-43.1%). Static formatter, plain oxlint and diff check pass. No tests or coverage run under CI-only instructions. * test(ui): consolidate q0003 e2e owner proof Port q0003 commits 351963564e993 and df86bbb922071 onto the campaign lane. Preserve the newer capability-menu and session-group cases unchanged, plus all four Enter-key cases and their stronger committed-state wait. Apply the remaining cleanup and retain receipt-list failure visibility and desktop scrollability assertions. CI-only validation: oxlint and oxfmt --check passed for all six shard files; git diff --check passed. No tests, coverage, Testbox, or check-changed were run. Independent review is clean after fixing two Activity assertion gaps. * test(scripts): trim q0012 owner replays and fixtures Port q0012 commits ef8017a51048, 446dc27dff34, and 565ac587d1c7 onto the campaign lane. Preserve the newer Windows release-selection matrix, exact-head security-enforcement cases, and package-test sparse declaration-roots regression while applying the shard cleanup. CI-only proof: plain oxlint and oxfmt --check passed for all eight touched files; git diff --check passed. Independent review found no actionable findings. Tests, coverage, Testbox, and check-changed were not run; affected-test execution is deferred to landing PR CI. * test(ui): deslop q0020 tests Remove the restored A2UI suite: its renderer, corpus fixture and bundler were retired in 18900ac (openclaw#182109). Retired-widget migration remains covered by src/commands/doctor-a2ui-widgets.test.ts. Keep direct shortcuts in session-shortcuts.e2e.test.ts and keyboard-shortcuts-focus.e2e.test.ts instead of replaying them in the real-Gateway search scenario. Keep both composer routes with hover coverage rather than additionally replaying without hover. Share pending account-pagination checks. Remove optional capture/reporting layers and unasserted render diagnostics while retaining budget assertions, native security/recovery, search scope, and responsive controls. CI-only campaign: oxfmt, plain oxlint and diff-check passed; tests and coverage deferred to hosted CI. * test(ui): consolidate q0016 e2e owner coverage Retire redundant picker revalidation and retry scenarios covered by model-control.metadata-lifecycle.test.ts, model-control.test.ts, and chat-model-picker.browser.test.tsx. Keep browser geometry and metadata publication recovery. Image alias acquisition and eviction remain in chat-message-image-admission.test.tsx and chat-message.images.test.tsx. File-copy fallback remains in chat-file-copy-retirement.e2e.test.ts (current/path) and clipboard.test.ts (absent API). Avatar cache semantics remain in assistant-avatar-http.test.ts. Cursor commentary recovery remains in chat-history-cursor.test.ts; pane eviction remains in the retained paginated-history scenario. Offline attachment replay remains in chat-outbox-payloads.e2e.test.ts. Consolidate retained reasoning/tool navigation and pre-submit creation assertions into the stronger cross-tab and browsed-folder scenarios. Keep touch-completion interleaving; generic disclosure and normalization remain in chat-responsive.e2e.test.ts, chat-transcript-render.test.ts, and markdown-streaming.test.ts. Tool detail contracts remain in chat-tool-cards.test.tsx. Incognito queue persistence remains in composer-persistence.test.ts; checkout/filter behavior remains in checkout-chip.test.ts, where-chip.test.ts, and new-session-page.incognito-navigation.e2e.test.ts. CI-only: plain oxlint, oxfmt, and git diff --check pass. No tests, builds, or coverage run. Original shard 5466 lines to 3558 (34.9%); further cuts would retire distinct lifecycle, security, storage, or layout proof. * test(scripts): deslop q0019 tests Factor dialect expectation rows and release-child rejection types without removing cases. Keep all 22 primitive-owner matrix inputs and every release authority and lifecycle boundary. Remove the repeated identical-input inventory scan assertion; the retained SQL inventory case still verifies its rows. Remove copied benchmark lane IDs; the retained inventory test still validates the manifest and hashes the selected workload. * test(scripts): remove redundant q0019 fixture layers Replace the fixture-defined cancellation/rescue driver with the fixture owner promise-join and unwind contract. Keep real process cleanup at test/helpers/run-node-script.test.ts and test/scripts/managed-child-process.output.test.ts (starts owned-tree cleanup at leader exit while a descendant holds both output pipes). Use the shared copied-source compiler for lint fixtures, trim repeated branch variants, and remove copied catalog, recipe, workflow-default and diagnostic inventories. Workflow default identity remains in full-release-validation-continuation-workflow.test.ts; the stronger mid-verification rerun and failed-upload cases retain reuse validation coverage. Preserve distinct release approval, provenance ordering, credential isolation and worker shutdown interleavings. Validation is static only under the campaign CI-only instruction. * test(scripts): consolidate q0019 owner-boundary proof Keep related lint outcomes and Android approval rejections in shared tables with all distinct inputs retained. Compact dialect expectations while preserving construct order, multiplicity, owner classification and independent span checks. Drop duplicate Barnacle maintainer exemption proof covered by ancillary-workflow-concurrency.test.ts (rejects the owners known exemption before allocation). Keep inline-model conversion at src/agents/embedded-agent-runner/model.inline-provider.test.ts and wrapper trailer formatting at run-vitest-bounded.test.ts; retain shutdown races in their owner suite. Reuse the watchdog and benchmark schedule fixture owners; remove prepared-layout source inventories and repeated stage-independent logging validation. No production changes or runtime tests; CI-only campaign static gates passed. * test(scripts): deslop q0018 tests Remove copied workflow and catalog inventories while retaining executable provenance, planner, redaction, and renderer contracts. The prerelease scheduler case retains the external-install canary; renderer collision checks retain generic anchor uniqueness. Exact child identity and dispatch behavior remain covered by package-acceptance-workflow.test.ts. CI-only: oxfmt, plain oxlint, and diff checks passed. No tests or coverage run. Shard LOC 5665 to 5368 (5.2%); below the 40% target because the remaining credential, npm provenance, and process lifecycle cases protect distinct boundaries. * test(scripts): deslop q0018 redundant proof layers Drop repeated allowlist-entry graphs; retain exact worker/Doctor admission, unowned references, sink budgets, repeated publication edges, SDK escapes, command and lazy-import boundaries. Replace copied planner partitions with complete, unique file coverage and Telegram config ownership. Delegate profiler contents to run-vitest-profile.test.ts (profiles selected runner) and post-ack shutdown to vitest-fork-shutdown.test.ts (joins hung-exit shutdown). Preserve namespace and SQLite lifetime proof here. Remove duplicate npm producer-verifier rows and report inventories; shared producer failures remain covered by requires a successful parent for publication and reuses successful preparation and source jobs after parent failure. Synthetic maturity judgments still assert the independent 75 percent result. CI-only: oxfmt, plain oxlint and git diff --check passed; no tests, coverage or check-changed ran. Additional cut: 5368 to 4771 lines. Cumulative: 5665 to 4771 (15.8 percent), still below the requested 40 percent. No production or support files changed. * test(scripts): reduce q0018 runner replay fixtures Replace the multi-wrapper state-cleanup replay with focused real two-file SQLite retirement, strict first/second-file failure verdicts, and native shell-profile isolation. Keep native-home admission and resource receipt failure branches. Home staging remains covered by test/test-env.test.ts, temp-home lifecycle by src/test-utils/temp-home.test.ts, worker retirement by test/non-isolated-runner.test.ts, cache lifetime by vitest-process-cache.test.ts, and wrapper execution by run-vitest, run-vitest-profile, and vitest-report-owner tests. Remove copied prerelease command and concurrency inventories while keeping scheduler completeness, non-cancellation, release-context rejection and blocking-result invariants. CI-only: oxfmt, plain oxlint and diff checks passed; no tests or builds run. Shard LOC 4771 to 4434 this pass, 5665 to 4434 cumulatively (21.7 percent); the requested 40 percent remains unmet. * test(release): share q0013 transport and native helper proof Port q0013 commits f2633d4609e0, 818c7c5651bd, and d376c73ca2b4 onto the campaign lane as one commit. Preserve newer release-state coverage, including HTTP/2 recovery, artifact errors, ghost attempts, Windows policy, cancellation, and candidate manifests. CI-only validation: plain oxlint, oxfmt --check, and git diff --check passed. No tests or coverage run. Independent review finding checked against the helper producer and consumer paths and rejected: both use the fixture work/helper-products file. * test(scripts): deslop q0023 tests Consolidate fixtures and remove duplicated gauntlet process lifecycle replays. Keep managed-child-process.output.test.ts, managed-child-process.test.ts, and managed-child-process.drain.test.ts as lifecycle owners; retain gauntlet error mapping and late-signal rethrow proof. Retain HTTP routing coverage while relying on agent-plugin-bundle-response.test.ts for bundle receipt rejection and bench-gateway-concurrency.test.ts for runtime-carrier boundary variants. Remove repeated same-guard control inputs and copied default inventories. CI-only campaign: oxfmt, plain oxlint and diff-check pass. No tests or coverage run. 5245 to 4925 lines (6.1% reduction); the 40% target remains unmet because remaining cases protect distinct security, provenance, lifecycle and publication paths. * test(scripts): remove redundant q0023 tooling layers Retire repeated lifecycle matrices and complete command inventories. Checkout ownership/reset/retry/cancellation stays in ci-platform-checkout.test.ts; generic fencing, typed recovery and output settlement stays in ci-git-owner.test.ts. QA topology/protocol-base validation stays in ci-workflow-evidence.test.ts. Keep gauntlet-specific late-signal rethrow and timeout row mapping with minimal native fixtures; shared managed-child-process tests own descendant cleanup. Keep one real QA diagnostic integration and exercise invalid summaries directly through readQaSuiteSummary. Combine dependency/slash lifecycle setup and replace parser inventories with shared-branch representatives. Bundle protocol stays in agent-plugin-bundle-response.test.ts; retain HTTP routing checks. Replace the self-counting npm fixture with a direct reported-tarball identity assertion; npm-runner.test.ts retains runner selection proof. Remove same-guard input variants while retaining security boundaries. CI-only: oxfmt, plain oxlint and diff-check pass; no tests/build/coverage run. This commit cuts 4925 to 4176 lines. Cumulative 5245 to 4176 is 20.4%, below the 40% target; remaining independent downloader, mock-server and publication behaviors have no replacement proof. * test(scripts): consolidate remaining q0023 duplicate proof Remove the test-local readiness simulation and nested state factory mock. Preserve the SQLite flip live endpoint, configuration failure and verified child cleanup contracts at actual instance acquisition. Keep utility model precedence and shared streaming lifecycle assertions once; malformed MCP output remains covered by the Code Mode fixture completion scenario. Move QA hot CPU assertions into the existing diagnostic integration; startup CPU remains covered by check-gateway-cpu-scenarios.test.ts. Merge empty-run cleanup into the existing slash-only scenario. Remove redundant process signal call-shape instrumentation while retaining observable death of initially-live resistant descendants. Shrink copied input and manifest inventories and shared executable fixtures. Preserve independent custom package runner timeout, graceful drain, clamp and external termination cases: these do not use the managed-child runner. Keep downloader security and provenance guards. CI-only static gates pass: oxfmt, plain oxlint and diff-check. No tests/build/coverage run. Additional 4176 to 3987 lines; cumulative 5245 to 3987 (24.0%). Target remains unmet by 840 lines; no files or production code deleted. * test(ui): deslop q0021 tests Remove optional capture scaffolding and duplicate E2E owner replays. Keep browser geometry, keyboard focus, remote approval routing, recovery authority, and real-Gateway interleavings. Remaining proof: approval-page.test.ts covers malformed projections and reconnect gating; canonical winner E2E covers refreshed Gateway content. markdown-code-blocks.test.ts and markdown-streaming.test.ts cover literal indented rendering/copying, and markdown-element-refs-solid.test.ts covers retained observation teardown. processes-panel-data.test.ts and chat-processes-panel.test.ts cover transient reads, empty results and stop capability changes. Catalog cold-link flow retains sidebar return, split ownership and adoption; one viewer and one over-budget art size cover the duplicate input rows. CI-only campaign: plain oxlint, oxfmt and diff check pass. No tests or coverage run. LOC 5100 -> 4654 (-8.75%); target 40% not reached without dropping distinct behaviors. * test(ui): deslop q0021 e2e owner layers Remove quota switching replay: chat-state.test.ts rebinds selected-global auth and rejects superseded Main; chat-pane-identity.test.ts rebinds retained fixed-route presentation; chat-view.test.ts scopes subscription usage and navigation. Keep share routes in route-loader-catalog-share.test.ts; catalog views in codex-sessions.e2e.test.ts; process lifecycle in processes-panel-data.test.ts, chat-processes-panel.test.ts and processes-panel.e2e.test.ts; subagent navigation in chat-details-subagents.test.tsx and chat-subagents-panel.test.ts. Keep streaming fence control identity in chat-message-streaming.browser.test.tsx; rail navigation and viewport membership in chat-position-rail.e2e.test.ts; responsive composer sizing in chat-composer-sizing.test.ts; tooltip pin/dismiss behavior in tooltip.test.ts and tooltip.browser.test.ts. Keep pending device creation in new-session-page.device-folder.e2e.test.ts, create-params.test.ts and session-placement-startup.test.ts; destination restoration in draft-place-default-repository.test.ts, draft-place-state.test.ts and draft-session-placement.test.ts. Queue mutation conflicts remain in chat-queue-edit-conflict-recovery.e2e.test.ts and chat-queue-reorder.test.ts. Consolidate fixtures and browser probes while retaining real geometry, codecs, recovery guards and collaborator interleavings. Correct pre-existing nonexistent composer harness imports to the existing exact locator boundary. Approval severity and canonical resolution remain in approval-page.test.ts. Attachment status rendering remains in chat-message-attachments.test.tsx. CI-only: no tests, coverage or builds run. Plain oxlint, oxfmt and git diff --check pass. Original shard 5100 -> 3104 LOC (39.1%); 44 lines short of 40%, retained rather than deleting distinct browser/lifecycle proof. * test: retain d453 contracts flagged by CI and review
…pdatable (openclaw#182319) openclaw#182109 retired the A2UI pipeline and removed its .gitignore entries, but Git installs built before it keep the generated bundles under extensions/canvas/src/host/a2ui/ (and older src/canvas-host/a2ui and vendor/a2ui dist outputs). Once unignored, the update clean check (git status --porcelain) reports them as untracked and every later `openclaw update` refuses the checkout as dirty. Observed on a production Git install after updating to 18900ac. Restore the ignore entries for the retired outputs and guard them with a check-ignore regression test next to the clean check's owner.
openclaw#182109 replaced the local MAX_PROTOCOL_VERSION constant in gateway_ws.rs with the shared openclaw_gateway_client PROTOCOL_VERSION but left three hello-ok fixtures in gateway_control_auth_owner_tests.rs on the removed name, so the desktop companion test builds fail with E0425 on main (Build Linux companion, Test macOS companion, Test Windows desktop).
上游 6f88c26 (PR openclaw#182109) 退役 A2UI 并删除 root script canvas:a2ui:bundle, 本 workflow 仍执行 pnpm canvas:a2ui:bundle -> ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL, 导致 10-28 起每次构建都停在第四步、gradle 从未运行。
What Problem This Solves
A2UI duplicates the HTML widget path and retains the last Lit renderer dependency. This retires that format and its otherwise-unused plugin API in favor of HTML widgets.
User Impact
HTML widgets, native plugin widgets, and MCP Apps keep their existing behavior.
Breaking change: stored A2UI widgets are deleted during Doctor/update after a fresh standard database backup. Doctor reports the number removed and explains that they can be recreated as HTML widgets. Other widgets survive. Non-A2UI rows using the retired registered-renderer API become inert HTML source previews after the same backup; their original descriptor and manifest are preserved, layout and identity remain, and previous capabilities are removed. The candidate's Doctor performs this repair, so an already-installed update driver does not need to understand it. Calls using
show_widget(kind: "a2ui")fail at argument validation withA2UI widgets were removed; use kind "html".Why This Change Was Made
Removing both Canvas renderers, their HTTP route and build pipeline, and the generic
registeredboard-content path leaves one HTML rendering path.The closed board schema removal advances the wire protocol to v5. General clients use v5; nodes and probes retain the v4 window. The client retry path preserves the v4 pairing envelope instead of applying its retired v3 transformation. Approved v4 nodes retain plugin capabilities, commands, and hosted surface URLs. Linux operators and the Rust node host consume the canonical protocol constants; the Rust host starts at v5 and retains v4 fallback. It treats
hello.protocolas the server version and preserves the selected v4 session protocol when an accepted v4 connection reaches a v5 server. Older source-built Rust binaries require rebuilding; this does not retrofit already-compiled clients.Evidence
pnpm tsgo:ui); later Doctor/protocol edits do not change UI source3a97b5962d5(pnpm deadcode:knip); later final change was the four-line test repairc055a496831: strict check passed, 280,645 → 280,626 B gzip (−19 B), 7 JS requests; CSS 40,215 B, 1 request unchanged. Later Doctor/protocol edits do not change UI importspnpm why @a2ui/web_core litf35c249d156: 202 jobs completed. All 9 UI E2E, both real-Gateway, all 3 PostgreSQL, and security-fast passed. Six jobs contain seven verified baseline failures; the aggregate remains red. Landed through native inherited-failure recovery as6f88c26dcf823a6d5c99a6053316829edc1a6512.The Doctor regression seeds both A2UI markers, non-A2UI registered rows (including a registered-only database), an earlier same-version backup, and surviving HTML, MCP, and plugin widgets; it checks the fresh backup, deletion, count warning, and repeat-run behavior. Hosted-web QA now serves real persisted HTML documents while retaining wrong, expired, revoked, and retired capability checks. The remaining UI change removes retired-format recognition and its label override; surviving markup, styles, and layout are unchanged.
The first full CI run passed all 9 UI E2E shards and both real-Gateway shards. Hosted review subsequently identified old v3 feature filtering accidentally applied to v4 nodes and stale Rust client constants; those findings are repaired, with a real-Gateway regression for v4 plugin URL access and invocation. It exposed stale protocol fixtures, a missing generated config-doc hash, the reduced environment-variable budget, and a shadowed test variable; these are fixed in the replacement head.
A targeted local rerun passed 21 widget tests and 12 mobile-survivor tests. The node control-plane suite timed out in its 180-second setup hook during isolated target-config convergence, after Doctor completed; all 5 cases were skipped. This remains an investigated local setup failure. The exact repaired head passed all five node control-plane cases in hosted CI job 120764135947. No timeout or assertion was relaxed. Baseline reproductions are limited to unmatched failing CI cases. No local Docker was run.
Independent Codex review completed clean at P0–P2 on the current-main integration; a fresh review of the subsequent protocol repairs also completed clean at P0–P2. It reviewed the full diff plus unchanged backup, Doctor/update, and protocol-client owners. The resolved merges retain main's dependency updates. The final integration conflict was limited to the lockfile: it was regenerated with pnpm from main, and
pnpm why @a2ui/web_core litremained empty. Reviewed production/test changes were unchanged by that integration. The earlier UI typecheck/startup comparison and protocol-repair Knip are retained as scoped proof. The final Doctor preservation repair has its own passing regression, targeted lint, and independent P0–P2 review; the one subsequent edit only renamed a shadowed test parameter.Removal and compatibility notes
Against the integrated main base, counting touched TS/JS/JSX and native source files: production source LOC 31,789 → 28,889 (−2,900); test/fixture source LOC 27,049 → 25,063 (−1,986). No startup budget was raised. The lockfile drops
@a2ui/web_core,lit,lit-element,lit-html,@lit/reactive-element,@lit/context,@lit-labs/ssr-dom-shim,@preact/signals-core,redos-detector,regjsparser,validate-color, and the unusedzod-to-json-schemaZod-3 variant. Canvas no longer depends on Solid, DOMPurify, or marked; their other owners retain them.Public Plugin SDK usage inspection observed no matching references, with incomplete coverage (2,062 complete / 2,469 eligible packages; 407 incomplete and 621 unresolved references). A source search found Canvas as the only direct bundled caller on the base. A bounded Inspector run completed 3 of 175 plugins; its retained checkpoint is incomplete and is not used as a finished inventory or a zero-consumer claim. The removal proceeds under the explicit maintainer decision to retire this API.
Intentional A2UI mentions remain in Doctor/validation regression code, retirement and historical release documentation, native path-rejection tests, and the frozen command inventory of the released iOS upgrade-survivor fixture. That fixture never executes the retired commands.
The source repository no longer carries documentation translation memories. Control UI translation memory is regenerated by the existing post-merge Control UI Locale Refresh workflow; CI deliberately separates generated locale PRs from source changes. A canonical-generator preview confirmed one obsolete help segment per 21 locales, with no added translations.
CI failure attribution
Earlier integrated run 40059430643 tested merge
bb820bb6f597daeb67b8226dca7acd22d73e116e(main parent7fe2477f20ac2a692cd1ba5f906fafa4f4b97a68, PR head8e6d5a2b5a2). Its exact named UI inventory failure is reproduced on that main parent: #182136 deletedchat-swarm-progress.browser.test.tsbut retained its entry inuiNodeDrivenBrowserTestFiles. The test passes on our earlier branch and fails on the actual CI base. The separate project-ownership failure is reproduced on main base473c9a6545ce: the opt-independency-retention.test.tsis absent from normal suite ownership. Neither inventory was changed to mask these failures.The final run retains exact test-name attribution for every failing job for native inherited-failure recovery. The completed final run has six failed jobs containing seven named failures. Latest completed scheduled main run 40058965760 independently fails both inventory cases and the schema-inlining case. A focused run on current merge base
473c9a6545cereproduces the exact CLI remote-URL, Telegram model-picker, scheduler multi-instance, and child-timeout delivery failures (4 failed, 21 passed, 5 skipped; 321.75s test time, 633.43s including the required baseline build). The native recovery admitted only cases that actually failed on the final head. All UI E2E, real-Gateway, PostgreSQL, and security-fast jobs passed. No jobs remain pending.Run 40060493530 additionally failed
Session context meter colors > paints context stages as the session updates (1440 px). Its exact main-parent reproduction passed, so it was not declared inherited. A four-line test repair waits for finite ancestor animations before measuring crop bounds, keeping Playwright painting and every native pixel/color assertion. The repaired case passed locally; a new full CI run onf35c249d156validates that head.projects vitest config > covers each normal full-suite test file exactly once after configs cached filtered includestsdown config > installs schema inlining only on executable runtime graphsui package vitest config > partitions runtimes after native UI sharding without changing ownership or dropping filescli json stdout contract > renders hooks read failures through their canonical owner for configured remote Gateway missing its URLrecovers a replaced model catalog and drains the following Telegram callbackgateway multi-instance e2e > preserves scheduler runtime across a scheduler-disabled Gateway editdelivers a child completion once while parent timeout recovery is activeFinal CI tested merge
4d830e0416916954e012276f2cd67c00f5f0cf47has ordered parents maine3d396280fc8bb99646edd83b7aa09c48988b18band reviewed headf35c249d1567321e0ad866bb190ea4439a55ba28. Inspected failure source blobs are unchanged by the PR. The failed jobs and aggregate are retained as failures in native evidence; no baseline or assertion was loosened.Post-merge verification: the source PR landed as
6f88c26dcf823a6d5c99a6053316829edc1a6512. The canonical locale workflow completed successfully and generated cleanup #182266 landed as5389ae0ae4a, removing the retired A2UI help segment from all 21 locale memories. Currentmainhas no A2UI matches inui/src/i18n/.i18n. Native PR and baseline checkouts were removed.