Repository navigation
test(core,ui,plugins): remove low-value tests (batch d258) - #176648
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 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. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates fixtures and assertions and removes duplicate test cases across core, plugins, and the Control UI. Example: A PDF attachment receives renewed bytes under the same attachment identity.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored PR open: the test consolidation is useful, but three verified changes make valid behavior fail its tests. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese test suites supply synthetic requests, events, and state to existing runtime owners and check their responses, lifecycle, authorization, and UI behavior. flowchart LR
A[Test fixtures] --> B[Existing runtime owners]
B --> C[Consolidated assertions]
C --> D[CI results]
Technical reviewBest possible solution: Retain the consolidation while restoring optional-field assertions, completing the mount-helper cutover, and separating PDF URL changes from iframe identity. Do we have a high-confidence way to reproduce the issue? The pinned diff, helper implementations, and exact-head CI annotations establish the three reported test failures; no target code was executed during this review. Is this the best way to solve the issue? Shared fixtures and tables fit the existing owners, but consolidation must preserve omitted-field semantics, cleanup APIs, and the PDF renderer's existing identity contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 77a403f1c153. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -3797. Total -3797 across 76 files. Added test files: 2. View PR surface stats
Review metrics
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 18, 2026, 8:17 PM ET / October 19, 2026, 00:17 UTC. |
…176648) * test(control-ui): deslop x8108 tests * test(control-ui): deslop x8108 tests * test(control-ui): deslop x8108 tests * test(memory-core): deslop x8110 tests * test(memory-core): deslop x8110 tests * test(gateway): deslop x8112 tests * test(gateway): deslop x8112 tests * test(gateway): deslop x8112 tests * test(model-providers): deslop x8111 tests * test(model-providers): deslop x8111 tests * test(model-providers): deslop x8111 tests * test(signal): deslop x8114 tests * test(signal): deslop x8114 tests * test(process): deslop x8113 tests * test(process): deslop x8113 tests * test(process): deslop x8113 tests * test(state): deslop x8115 tests * test(state): deslop x8115 tests * test(state): deslop x8115 tests * test(imessage): deslop x8119 tests * test(imessage): deslop x8119 tests * test(chat): deslop x8117 tests * test(chat): deslop x8117 tests * test(chat): deslop x8117 tests * test(agents): deslop x8118 tests * test(agents): deslop x8118 tests * test(agents): deslop x8118 tests * test(pr): deslop x8120 tests * test(pr): deslop x8120 tests * test: retain boundary proof and repair d258 fixtures * test: repair remaining d258 fixture typing * test: drop d258 reductions rejected by type-aware lint
Register the documented maintainer CLI from openclaw#176797 using the existing executable entry pattern. Remove the unused fixture left by openclaw#176648 after its diagnostic suite reductions were dropped; keep the original diagnostic tests intact.
What Problem This Solves
Repeated fixture construction and assertion scaffolding make these tests harder to maintain. This batch consolidates those patterns and removes duplicate cases while retaining distinct authority, recovery, protocol, and lifecycle checks.
User Impact
No production behavior change. Only tests and test-support files change; no dependency, configuration, or public API changes.
Why This Change Was Made
Replays campaign batch d258 onto pinned main
a70b7c23104ada5d7d1a21b245dec72623a78a7e. Applied 29 of 30 listed commits, preserving their messages, followed by three focused corrective commits. OpenCode commitd6224c73b870e60ba1aa730d876a9ae7ff97452fwas skipped: all four files conflicted extensively with newer main auth/catalog/replay-policy coverage.Conflict and review decisions:
mainreset fixture key and navigation contribution kind. Repaired scope-array types, mock-call narrowing, Solid disposal, and required popup callback typing.src/infra/agent-events.ts), andisRecordremains used by orphan-recovery assertions. All corrective reviews completed clean through P2.No touched path matches current CODEOWNERS rules.
Evidence
CI-only validation: changed-file
oxfmt --write, plainoxlint -c .oxlintrc.json, andgit diff --checkexited 0. Local tests, typechecks, check-changed, builds, coverage, and Testbox were not run. Hostedopenclaw/ci-gateis the runtime proof and merge gate.Initial runs 39178753824 and 39180665065 exposed fixture/type failures; their affected reductions were repaired or dropped. Run 39181869148 passed typechecks and runtime test jobs (PostgreSQL conformance was still pending at observation), while type-aware lint rejected six more changed files; those reductions were dropped. Its separate mock-export ratchet failure is in
src/cli/program/root-help.test.ts, outside this diff. Line-budget diagnostics were non-blocking warnings. No pre-existing-failure merge exception is claimed without the required main-CI evidence. Fresh CI follows the final corrective push.Production LOC: +0 / -0. Test files: +7556 / -11183. Test-support files: +541 / -862. Combined: +8097 / -12045, net -3948 lines across 59 files. Static declarations 482 → 406; static expanded cases 641 → 636. These counts are not execution results and undercount dynamic tables.
Per-shard final replay inventory and source evidence
LOC includes test support and compares pinned main with the final candidate. Source reports have no numeric coverage totals: tests/coverage were not run under CI-only mode, so no <=1% coverage claim is made.
Skipped shard x8109: no final file/LOC/declaration delta; coverage not run in source report.
Dropped file-level reductions
extensions/memory-core/src/dreaming.test.tsextensions/signal/src/monitor/event-handler.inbound-context.test.tsextensions/signal/src/monitor/event-handler.reply-session-conflict.test.tssrc/agents/embedded-agent-runner/skill-runtime.library-read.test.tssrc/process/spawn-utils.test.tsui/src/pages/model-providers/view.test.tssrc/agents/embedded-agent-runner/sessions-yield.orchestration.test-support.tssrc/state/openclaw-agent-db.committed-read.test.tsui/src/pages/chat/components/chat-pdf-preview.test.tssrc/agents/embedded-agent-runner/server-endpoint-compaction.test.tstest/scripts/pr-main-refresh.test.tssrc/gateway/server.chat-abort-settlement.test.tssrc/process/terminal-pty.test.tsui/src/pages/chat/components/chat-message-embed-policy.test.tsui/src/plugins/control-ui-contributions.test.tsui/src/pages/chat/components/chat-question-card.test.tsxui/src/pages/chat/components/chat-reply-attribution.browser.test.tsxx8108
ui/src/plugins/control-ui-dashboard.test.ts(+303 / -427)ui/src/plugins/control-ui-host.test.ts(+346 / -474)ui/src/plugins/control-ui-navigation.test.ts(+93 / -157)ui/src/plugins/control-ui-runtime.test.ts(+178 / -265)ui/src/plugins/control-ui-session-summary.test.ts(+240 / -265)x8110
extensions/memory-core/src/dreaming-command.test.ts(+56 / -109)extensions/memory-core/src/dreaming-consolidation-projects.test.ts(+40 / -99)extensions/memory-core/src/dreaming-consolidation.test-support.ts(+40 / -0)extensions/memory-core/src/dreaming-consolidation.test.ts(+125 / -345)extensions/memory-core/src/dreaming-dreams-file.test.ts(+174 / -245)extensions/memory-core/src/dreaming-narrative.test.ts(+200 / -278)x8111
ui/src/pages/model-providers/data.test.ts(+328 / -460)ui/src/pages/model-providers/load.test.ts(+181 / -247)ui/src/pages/model-providers/model-providers-page.installed-agents.test.ts(+406 / -460)ui/src/pages/model-providers/profiles-view.test.tsx(+256 / -368)ui/src/pages/model-providers/route.test.ts(+200 / -231)x8112
src/gateway/server.agent.gateway-server-agent-b.test.ts(+181 / -271)src/gateway/server.channels-start-outcomes.test.ts(+210 / -303)src/gateway/server.chat.orphaned-recovery.test.ts(+30 / -121)src/gateway/server.models-voicewake-misc.test.ts(+217 / -307)src/gateway/server.plugin-http-role-scopes.test.ts(+205 / -259)src/gateway/server.sessions.reset-concurrency.test.ts(+161 / -250)src/gateway/server.sessions.reset-models.test.ts(+76 / -171)x8113
src/process/orphaned-process.test.ts(+88 / -170)src/process/owned-stdio.windows.test.ts(+118 / -146)src/process/respawn-child-runner.test.ts(+114 / -179)src/process/spawn-diagnostics.test-support.ts(+42 / -0)src/process/spawn-secret-input.test.ts(+57 / -125)src/process/terminal-pty-bun.test.ts(+98 / -132)src/process/terminal-pty-node.test.ts(+48 / -71)x8114
extensions/signal/src/monitor/access-policy.test.ts(+53 / -148)extensions/signal/src/monitor/event-handler.mention-gating.test.ts(+88 / -228)extensions/signal/src/monitor/event-handler.partial-delivery.test.ts(+85 / -134)x8115
src/state/openclaw-agent-db-disposal.test.ts(+67 / -104)src/state/openclaw-agent-db-maintenance.test.ts(+196 / -257)src/state/openclaw-agent-db-module-identity.test.ts(+25 / -38)src/state/openclaw-agent-db-open-authority.test.ts(+125 / -159)src/state/openclaw-agent-db-readonly-scope.test.ts(+358 / -467)src/state/openclaw-agent-db-registry-listing.settled.test.ts(+97 / -107)src/state/openclaw-agent-db.open-timing.test.ts(+61 / -71)x8117
ui/src/pages/chat/components/chat-message-reactions.test.ts(+24 / -36)ui/src/pages/chat/components/chat-position-rail-scroll.test.tsx(+210 / -291)ui/src/pages/chat/components/chat-read-aloud.test.tsx(+90 / -131)ui/src/pages/chat/components/chat-selection-popup.test.ts(+151 / -213)x8118
src/agents/embedded-agent-runner/runs.force-clear-terminal.test.ts(+94 / -96)src/agents/embedded-agent-runner/runs.generation.test.ts(+195 / -377)src/agents/embedded-agent-runner/runs.liveness.test.ts(+138 / -163)src/agents/embedded-agent-runner/sandbox-skills.test.ts(+134 / -210)x8119
extensions/imessage/src/monitor/inbound-processing.context.test.ts(+73 / -145)extensions/imessage/src/monitor/inbound-processing.systemPrompt.test-support.ts(+60 / -125)extensions/imessage/src/monitor/ingress.test.ts(+225 / -334)extensions/imessage/src/monitor/monitor-provider.echo-cache.test-support.ts(+75 / -159)extensions/imessage/src/monitor/recovery-cursor.test-support.ts(+63 / -112)extensions/imessage/src/monitor/remote-host.test.ts(+53 / -112)extensions/imessage/src/monitor/sanitize-outbound.test-support.ts(+223 / -398)extensions/imessage/src/monitor/self-chat-dedupe.test.ts(+44 / -150)x8120
test/scripts/pr-gh-async.test.ts(+127 / -143)test/scripts/pr-git-maintenance.test.ts(+114 / -134)test/scripts/pr-main-refresh.test-support.ts(+38 / -68)