Repository navigation
test(core,ui,plugins): remove low-value tests (batch d059) - #169687
Conversation
|
🦞👀 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: needs changes before merge. What this changesThis PR removes and consolidates tests across core, plugins, and the Control UI without changing production code. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 11 items remain Keep this PR open: the test cleanup is useful, but seven removals discard distinct contract coverage that should be retained before merge. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe affected Vitest suites exercise production owners using fixed inputs, isolated state, and transport fixtures, then compare their results with independent contract expectations. flowchart LR
A[Test scenarios] --> B[Production owners]
C[State and transport fixtures] --> B
B --> D[Observed results]
D --> E[Contract assertions]
E --> F[CI gate]
Technical reviewBest possible solution: Keep the consolidation and restore the distinct cases in their existing test owners using compact shared fixtures. Do we have a high-confidence way to reproduce the issue? The coverage losses are directly visible in the pinned diff and retained suites; no runtime failure was reproduced because production code is unchanged. Is this the best way to solve the issue? Consolidation is appropriate, but coverage totals do not establish redundancy when retained fixtures never exercise the removed contract inputs. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f59ae8cd0730. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 12, 2026, 2:56 AM ET / 06:56 UTC. |
…169687) * test(ui): deslop x1254 tests * test(flows): deslop x1255 tests * test(memory-wiki): deslop x1253 tests * test(chutes): deslop x1249 tests * test(nostr): deslop x1258 tests * test(agents): deslop x1246 tests * test(auto-reply): deslop x1259 tests * test(browser): deslop x1257 tests * test(tts): deslop x1264 tests * test(ui): deslop x1266 tests * test: retain independent security and cache contracts
What Problem This Solves
Redundant test variants and implementation-mirroring checks add maintenance and execution cost across the UI, flows, providers, browser relay, agents, auto-reply, and TTS suites.
User Impact
No user-visible or production behavior change. This is test-only cleanup: 98 files, +801/−8,826 test LOC (net −8,025), with 428 fewer static test declarations. Production and shared-support LOC: +0/−0.
Why This Change Was Made
Batch d059 replays ten coverage-gated campaign commits onto main, retaining meaningful behavioral, security, and lifecycle checks. No new dependencies, production seams, migrations, or baseline changes.
All ten source commits were applied; none skipped. The only manual replay conflict was in
ui/src/pages/chat/session-message-cache.test.ts: keep main's newer widget-layout invalidation regression and both new widget lifecycle tests; remove the old message-weight implementation check as intended. Remaining patches applied cleanly; changes already on main were not duplicated, including the Signal fixture hunk from x1249.Independent review raised twelve P2 coverage findings. All were accepted: the eleven files listed below are preserved byte-for-byte from the main baseline, dropping their cleanup hunks entirely. This retains Nostr admin-scope enforcement, durable auth-history isolation, native approval failure/cancellation, per-field relay authentication, raw stream-handle ownership, cross-agent tool events, prefetch freshness/cache-clear fencing, completed-prewarm invalidation, persisted-record validation, actual sidebar overrides, and ungrouped-subagent pagination. No findings were rejected.
extensions/nostr/src/nostr-profile-http.test.tssrc/agents/cli-runner/session-history.test.tssrc/agents/cli-runner/cli-native-tool-approval.test.tsextensions/browser/src/browser/extension-relay/auth-v2.test.tsextensions/browser/src/browser/extension-relay/relay-fetch.test.tsui/src/pages/chat/tool-stream-fallback.node.test.tsui/src/pages/chat/session-prefetch.test.tsui/src/pages/chat/session-snapshot-prewarm.test.tsui/src/pages/chat/session-snapshot-write.test.tsui/src/pages/chat/sidebar-layout-persistence.test.tsui/src/pages/chat/subagents-panel-data.test.tsCODEOWNERS: no changed paths match the current owned-path rules.
Evidence
Focused validation: all 98 final changed test files passed, 1,220 tests total. Command shape:
pnpm test <explicit changed test files> --maxWorkers=1.The initial selection completed 27 files / 272 tests before it was deliberately interrupted for review corrections (614.05 s elapsed, including initial compilation). Those files remained byte-identical. The remaining 71 files / 948 tests passed in 2,230.72 s across 13 routed Vitest shards. No test failure was suppressed or retried; the first run's exit 130 was the intentional stop before editing.
Initial worker compilation took 156.51 s; the continuation reused the compiled outputs. Long local wall time includes the loaded host and existing database/import-heavy fixtures. Hosted CI owns broad proof and CI timings.
node_modules/.bin/oxfmt --write <changed files>: passed; no additional formatting delta.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS files>: exit 0; also checked the restored files.git diff --check: passed.Hosted
openclaw/ci-gateis the broad merge gate. No Testbox/Crabbox lease requested or used, per the campaign's local-first validation rule.Full-batch independent review completed; all twelve findings addressed by the restorations above. The subsequent correction-only review was scoped-clean at P0–P2.
Per-shard final diff and original coverage evidence
Declaration counts cover static
it/testdeclarations in final changed files, not expanded cases. LOC is each shard's final diff against the pinned main baseline. Historical source coverage below measured the original larger cleanup, before the conservative review restorations; it is not a fresh coverage measurement on this PR. The original x1249 group exclusion and coverage blind spot are retained explicitly.x1254
Test LOC +23/−782 (net −759); changed-file declarations 110 → 70 (−40).
Original in-shard coverage: statements 6,016 → 6,016; branches 4,396 → 4,393 (−0.068%).
Files:
ui/src/pages/chat/scroll.test.tsui/src/pages/chat/session-message-cache.test.tsui/src/pages/chat/session-prefetch-lifecycle.test.tsui/src/pages/chat/split-layout.test.tsui/src/pages/chat/stream-reconciliation.test.tsui/src/pages/chat/subagents-panel-activity.test.tsui/src/pages/chat/tool-stream-preamble.commentary-dedupe.node.test.tsx1255
Test LOC +132/−1436 (net −1304); changed-file declarations 178 → 134 (−44).
Original in-shard coverage: statements 1,440 → 1,440; branches 968 → 965 (−0.31%); functions 326 → 326.
Files:
src/flows/bundled-health-checks.test.tssrc/flows/channel-setup.status.test.tssrc/flows/channel-setup.test.tssrc/flows/doctor-core-bootstrap-size-check.test.tssrc/flows/doctor-core-checks.runtime.test.tssrc/flows/doctor-core-checks.test.tssrc/flows/doctor-health-contribution-runners.state.paths.test.tssrc/flows/doctor-lint-flow.test.tssrc/flows/doctor-removed-workspaces-state-check.test.tssrc/flows/doctor-repair-flow.test.tssrc/flows/provider-flow.test.tssrc/flows/search-setup.test.tsx1253
Test LOC +74/−1008 (net −934); changed-file declarations 116 → 72 (−44).
Original in-shard coverage: covered statements 8,658 → 8,655 (−3); branches 4,259 → 4,257 (−2); functions 1,703 → 1,702 (−1).
Files:
extensions/memory-wiki/index.test.tsextensions/nvidia/index.test.tsextensions/nvidia/provider-catalog.test.tsextensions/qa-lab/src/live-transports/matrix/cli.test.tsextensions/qa-lab/src/live-transports/matrix/matrix-scenario-flows.test.tsextensions/reef/doctor-contract-api.test.tssrc/commands/onboard-non-interactive/api-keys.test.tssrc/infra/tls/gateway.test.tssrc/process/supervisor/adapters/pty.test.tssrc/storage/filesystem.test.tsx1249
Test LOC +54/−736 (net −682); changed-file declarations 123 → 86 (−37).
Original in-shard coverage: statements 4,250 → 4,249; branches 2,615 → 2,608. Signal’s failed baseline group was excluded; the source report also records a Vault coverage blind spot.
Files:
extensions/chutes/models.test.tsextensions/chutes/oauth.test.tsextensions/deepseek/index.test.tsextensions/deepseek/provider-policy-api.test.tsextensions/oc-path/src/oc-path/tests/jsonl/edit.test.tsextensions/oc-path/src/oc-path/tests/jsonl/resolve.test.tsextensions/qa-lab/web/src/http.test.tsextensions/qa-lab/web/src/ui-render.test.tsextensions/vault/src/cli.test.tssrc/agents/subagents/completion/subagent-completion-admission.requester-wake.test.tssrc/agents/subagents/completion/subagent-completion-admission.store.test.tsx1258
Test LOC +32/−1143 (net −1111); changed-file declarations 151 → 74 (−77).
Original in-shard coverage: statements 1,004 → 999 (−0.50%); branches 462 → 458 (−0.87%).
Files:
extensions/nostr/src/channel.outbound.test.tsextensions/nostr/src/channel.test.tsextensions/nostr/src/nostr-bus.inbound.test.tsextensions/nostr/src/nostr-cursor.test.tsextensions/nostr/src/nostr-ingress.test.tsextensions/nostr/src/nostr-key-utils.test.tsextensions/nostr/src/nostr-profile-import.test.tsextensions/nostr/src/nostr-profile.test.tsextensions/nostr/src/nostr-state-store.test.tsx1246
Test LOC +24/−370 (net −346); changed-file declarations 127 → 105 (−22).
Original in-shard coverage: statements 10,502 → 10,501; branches 7,159 → 7,158.
Files:
src/agents/cli-runner/bundle-mcp-codex.user-config.test.tssrc/agents/cli-runner/cli-live-session-registry.test.tssrc/agents/cli-runner/cli-run-settlement.test.tssrc/agents/cli-runner/cli-run-transcript.admission.test.tssrc/agents/cli-runner/helpers.system-prompt-resume.test.tssrc/agents/cli-runner/helpers.system-prompt.test.tssrc/agents/cli-runner/history-boundary.test.tssrc/agents/cli-runner/mcp-grant-context.test.tssrc/agents/cli-runner/model-call-diagnostics.test.tsx1259
Test LOC +24/−713 (net −689); changed-file declarations 165 → 108 (−57).
Original in-shard coverage: covered statements 1,975 → 1,975 (0); branches 1,527 → 1,526 (−1); functions 398 → 398 (0).
Files:
src/auto-reply/group-thread.test.tssrc/auto-reply/heartbeat-reply-payload.test.tssrc/auto-reply/inbound-debounce.test.tssrc/auto-reply/status.test.tssrc/auto-reply/thinking.test.tssrc/auto-reply/tokens.test.tssrc/auto-reply/tool-meta.test.tsx1257
Test LOC +151/−623 (net −472); changed-file declarations 133 → 116 (−17).
Original in-shard coverage: statements 3,540 → 3,540; branches 1,987 → 1,986 (−0.05%).
Files:
extensions/browser/src/browser/extension-relay/gateway-relay-route.test.tsextensions/browser/src/browser/extension-relay/relay-auth.test.tsextensions/browser/src/browser/extension-relay/relay-bridge.fetch.test.tsextensions/browser/src/browser/extension-relay/relay-bridge.test.tsextensions/browser/src/browser/extension-relay/relay-lifecycle.test.tsextensions/browser/src/browser/extension-relay/relay-runtime.test.tsextensions/browser/src/browser/extension-relay/relay-server.auth-v2.test.tsextensions/browser/src/browser/extension-relay/relay-targets.test.tsx1264
Test LOC +177/−1162 (net −985); changed-file declarations 137 → 81 (−56).
Original in-shard coverage: statements 1,060 → 1,060; branches 805 → 804 (−0.12%).
Files:
src/tts/directive-number.test.tssrc/tts/directives.test.tssrc/tts/prepare-text.test.tssrc/tts/provider-registry.test.tssrc/tts/speech-text.test.tssrc/tts/status-config.test.tssrc/tts/tts-config.test.tssrc/tts/tts-runtime-fallbacks.test.tssrc/tts/tts-runtime-personas.test.tssrc/tts/tts-runtime-routing.test.tssrc/tts/tts-summary.test.tsx1266
Test LOC +110/−853 (net −743); changed-file declarations 155 → 121 (−34).
Original in-shard coverage: statements 4,067 → 4,065; branches 2,356 → 2,342.
Files:
ui/src/app/lazy-shell-action.test.tsui/src/app/mcp-app-routing.test.tsui/src/app/mentions.test.tsui/src/app/native-browser-bridge.test.tsui/src/app/native-link-routing.test.tsui/src/app/native-notifications.test.tsui/src/app/native-route-memory.test.tsui/src/app/native-window-drag.test.tsui/src/app/notifications-auto-prompt.test.tsui/src/app/overlays-update-campaign.test.tsui/src/app/overlays-update-report.test.tsui/src/app/overlays-update-triage.test.tsui/src/app/overlays.test.tsui/src/app/public-assets.test.ts