Repository navigation
test(gateway, ui, plugins): remove low-value tests (batch d335) - #178651
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: blocked before merge. What this changesThis PR consolidates test fixtures, assertions, and cases across Gateway, Control UI, Plugin SDK, Crabbox, and voice-call suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR reduces repetitive test scaffolding, and inspection found no concrete introduced defect. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherVitest suites feed synthetic requests, transport failures, filesystem fixtures, and browser interactions into existing production owners, then assert their results and lifecycle behavior. flowchart LR
A[Test fixtures] --> B[Vitest suites]
B --> C[Gateway and SDK owners]
B --> D[Plugin owners]
B --> E[Control UI components]
C --> F[Behavior assertions]
D --> F
E --> F
Technical reviewBest possible solution: Retain the fixture consolidation and distinct regression contracts, with the existing current-head CI gates determining readiness. Do we have a high-confidence way to reproduce the issue? This PR is a behavior-preserving test refactor; no runtime bug reproduction applies, and no target code was executed during this read-only review. Is this the best way to solve the issue? Reusing existing fixtures and consolidating equivalent assertions is appropriate; the examined cancellation, authority, recovery, and focus contracts retain meaningful coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7c858fcf245. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2836, Generated -97. Total -2933 across 73 files. Added test files: 1. 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 20, 2026, 3:05 PM ET / 19:05 UTC. |
…claw#178651) * test(gateway): deslop z0350 tests * test(gateway): deslop z0350 tests * test(gateway): deslop z0350 tests * test(voice-call): deslop z0352 tests * test(gateway): deslop z0345 tests * test(gateway): deslop z0345 tests * test(gateway): deslop z0345 tests * test(ui): deslop z0351 tests * test(ui): deslop z0351 tests * test(ui): deslop z0351 tests * test(gateway): deslop z0353 tests * test(gateway): deslop z0353 tests * test(gateway): deslop z0353 tests * test(infra): deslop z0355 tests * test(infra): deslop z0355 tests * test(infra): deslop z0355 tests * test(ui): deslop z0354 tests * test(ui): deslop z0354 tests * test(ui): deslop z0354 tests * test(plugin-sdk): deslop z0356 tests * test(plugin-sdk): deslop z0356 tests * test(plugin-sdk): deslop z0356 tests * test(gateway): deslop z0358 tests * test(gateway): deslop z0358 tests * test(gateway): deslop z0358 tests * test(chat): deslop z0359 tests * test(chat): deslop z0359 tests * test(crabbox): deslop z0361 tests * test(crabbox): deslop z0361 tests * test(ui): format retained board validator fixture * test: retain regression coverage and drop invalid fixture cleanups
What Problem This Solves
Replay campaign batch d335 onto current main, consolidating repetitive test fixtures and assertions while retaining distinct behavior contracts.
User Impact
No production or user-visible behavior changes are intended. Base: 718e3f0. Test and test-support LOC: +6403 / -9336 (net -2933); production LOC: +0 / -0.
Evidence
Replay decisions
Logging commit 5f40dccf91d95af68594d93b4c53c9eb63d28ab3 (z0347) skipped: all eight files conflicted with current diagnostic changes, including GC-reason assertions absent from this main version. Current main wins; no logging edits retained.
Dropped cleanup changes, restoring main byte-for-byte, in: src/gateway/server.sessions.create.repositories.test.ts; ui/src/lib/session-display.test.ts; ui/src/lib/system-info.test.ts; ui/src/lib/speech-playback.test.ts; ui/src/pages/chat/components/chat-pane-header.test-support.ts; ui/src/pages/chat/components/chat-model-preferences.test.tsx; ui/src/pages/chat/components/chat-permission-picker.test.tsx; src/plugin-sdk/provider-catalog-live-runtime.strict.test.ts; src/plugin-sdk/provider-catalog-shared.refresh.test.ts. This preserves original types and the independent cross-provider cancellation and uncacheable-result retry cases. Restored modified-click assertions in person-activity-card.test.ts.
Shards
Declaration counts below are source-shard evidence, not newly measured counts after dropping cleanup hunks. Rebased LOC and file lists describe the final candidate.
z0350
Rebased test/support delta: +681 / -1028; lines 1643 → 1296. Source declaration/case evidence: Retained all 40 declarations and 65 actual cases. Consolidated fixtures, setup, and repeated assertions; made two prompt expectations independent of production helpers. No production changes or case deletions.
Coverage: not run (source report, CI-only).
Files:
src/gateway/agent-list.test.ts,src/gateway/agent-prompt.test.ts,src/gateway/artifact-downloads.test.ts,src/gateway/assistant-avatar.test.ts,src/gateway/auth-surface-resolution.test.ts,src/gateway/board-sandbox.test.ts,src/gateway/agent-command.test-helpers.ts,src/gateway/auth-token-store-ref.test.ts.z0352
Rebased test/support delta: +273 / -621; lines 1637 → 1289. Source declaration/case evidence: Expanded cases remain 56 → 56; declarations 42 → 40. Extracted repeated fixtures and event builders, compacted data tables, and consolidated two outbound test pairs without dropping their cases or assertions. The routed-TTS table retains inbound override/outbound isolation; the end-call table retains default/timeout reasons and cleanup checks.
Coverage: not run (source report, CI-only).
Files:
extensions/voice-call/src/manager/events.amd.test.ts,extensions/voice-call/src/manager/events.inbound.test.ts,extensions/voice-call/src/manager/outbound.test.ts,extensions/voice-call/src/manager/timers.test.ts.z0345
Rebased test/support delta: +446 / -756; lines 1665 → 1355. Source declaration/case evidence: Static counts: declarations 33 → 30; expanded cases 45 → 47 because previously grouped error checks now run separately. No production or shared-support changes; no bug/flake fixes.
Coverage: not run (source report, CI-only).
Files:
src/gateway/server-methods/chat-transcript-persistence.node-loss.test.ts,src/gateway/server-methods/claws-add.test.ts,src/gateway/server-methods/claws.test.ts,src/gateway/server-methods/chat-startup-requester.test.ts,src/gateway/server-methods/config.cache-recovery.test.ts,src/gateway/server-methods/config.read-recovery.test.ts,src/gateway/server-methods/control-ui.session-github.test.ts.z0351
Rebased test/support delta: +313 / -505; lines 1085 → 893. Source declaration/case evidence: Consolidated fixtures/setup and removed the setter test’s unreachable alternate path. Preserved all 45 declarations and 74 statically counted cases, including protocol rejection, authority invalidation, playback cancellation, and bridge lifecycle assertions. No production or shared-support changes.
Coverage: not run (source report, CI-only).
Files:
ui/src/lib/protocol-validators.generated.test.ts,ui/src/lib/provider-quota-summary.test.ts,ui/src/lib/solid-bridge.test.tsx.z0353
Rebased test/support delta: +759 / -1062; lines 2113 → 1810. Source declaration/case evidence: Static case counts: 50 → 50 expanded cases, declarations 21 → 18. Consolidated repeated fixtures, rejection assertions, ownership rows, and session-naming setup. No distinct cases or production code removed. The three unchanged files retain tightly coupled authority/lifecycle proof.
Coverage: not run (source report, CI-only).
Files:
src/gateway/server-methods/agent-session-patch.test.ts,src/gateway/server-methods/agent.abort-execution.test-support.ts,src/gateway/server-methods/agent.deleted-agent.test.ts,src/gateway/server-methods/agent.owner-policy.test-support.ts,src/gateway/server-methods/agent.spawned-child.test-support.ts,src/gateway/server-methods/agent.followup-owner.test.ts,src/gateway/server-methods/agent.restart-recovery.test-support.ts,src/gateway/server-methods/agent.subagent-registry.mocks.test-support.ts.z0355
Rebased test/support delta: +435 / -552; lines 1631 → 1514. Source declaration/case evidence: Consolidated repeated fixture, cleanup, JSON, and assertion scaffolding. All 15 declarations / 19 expanded cases remain, including authority revocation, private artifacts, build isolation, and journal recovery. No production changes or bug fixes.
Coverage: not run (source report, CI-only).
Files:
src/infra/update-failure-report-artifact.test.ts,src/infra/update-failure-report.test-support.ts,src/infra/update-immutable-build.worker.test.ts,src/infra/update-immutable-inspection.test.ts,src/infra/update-immutable-owner.test.ts,src/infra/update-immutable-activation.test-support.ts,src/infra/update-immutable-build.test.ts,src/infra/update-immutable-layout.test-support.ts.z0354
Rebased test/support delta: +974 / -1295; lines 1635 → 1314. Source declaration/case evidence: Consolidated repeated mounting, fixtures, keyboard events, and label extraction. Deleted no cases or assertions: 43 declarations unchanged, with the count helper reporting 67 expanded cases unchanged.
Coverage: not run (source report, CI-only).
Files:
ui/src/components/model-picker.browser.test.tsx,ui/src/components/native-link-menu.test.ts,ui/src/components/panel-refresh-status.test.ts,ui/src/components/menu-surface.test.ts,ui/src/components/modal-dialog.test.tsx,ui/src/components/overlay-anchor.browser.test.ts,ui/src/components/panel-tab-strip-solid.test.tsx,ui/src/components/person-activity-card.test.ts.z0356
Rebased test/support delta: +663 / -912; lines 1035 → 786. Source declaration/case evidence: Declarations remain 43 → 43; expanded cases 51 → 51. Consolidated fixture construction, retained-data assertions, and refresh setup. No cases or distinct assertions removed; cancellation, ownership, auth isolation, expiry, and SQLite retry proof remain.
Coverage: not run (source report, CI-only).
Files:
src/plugin-sdk/persistent-dedupe.test.ts,src/plugin-sdk/plugin-state-runtime.test.ts,src/plugin-sdk/provider-auth-result.test.ts,src/plugin-sdk/provider-catalog-live-projection.test.ts,src/plugin-sdk/provider-catalog-shared.test.ts,src/plugin-sdk/plugin-config-runtime.test.ts,src/plugin-sdk/provider-catalog.test-support.ts.z0358
Rebased test/support delta: +571 / -789; lines 1426 → 1208. Source declaration/case evidence: Consolidated connect options, compaction fixtures, plugin setup, and title request/assertion helpers. No cases deleted or folded: 16 declarations / 21 statically expanded cases unchanged. No production or shared-support files changed.
Coverage: not run (source report, CI-only).
Files:
src/gateway/server.auth.connect-metrics.test.ts,src/gateway/server.sessions.compaction-preemption.test.ts,src/gateway/server.sessions.plugin-ownership.test.ts,src/gateway/server.sessions.title-source.test.ts,src/gateway/server.agent-late-admission.test.ts,src/gateway/server.chat-goal.test-support.ts,src/gateway/server.diagnostics-policy.test.ts.z0359
Rebased test/support delta: +631 / -927; lines 1118 → 822. Source declaration/case evidence: Retained all 34 declarations / 47 expanded cases. Consolidated repeated fixtures, DOM setup, keyboard events, selectors, and assertions. No production changes or case deletions; shared header support remained unchanged.
Coverage: not run (source report, CI-only).
Files:
ui/src/pages/chat/components/chat-pane-header-agent.test.ts,ui/src/pages/chat/components/chat-pane-header-identity.test.ts,ui/src/pages/chat/components/chat-pane-header-workspace.test.ts,ui/src/pages/chat/components/chat-pane-placement.test.ts,ui/src/pages/chat/components/chat-picker-overlay.test.ts.z0361
Rebased test/support delta: +657 / -889; lines 1617 → 1385. Source declaration/case evidence: Retained all 37 declarations / 89 statically counted cases. Consolidated command setup, response assertions, table data, and redundant cleanup. No production or support-file changes; no cases deleted.
Coverage: not run (source report, CI-only).
Files:
extensions/crabbox/src/crabbox-tool.test.ts,extensions/crabbox/src/crabbox-worker-command.test.ts,extensions/crabbox/src/crabbox-worker-coordinator-retry.test.ts,extensions/crabbox/src/crabbox-worker-heartbeat.test.ts,extensions/crabbox/src/crabbox-model-run.test.ts,extensions/crabbox/src/crabbox-warm-scenarios.test-support.ts,extensions/crabbox/src/crabbox-worker-node-enrollment-errors.test.ts,extensions/crabbox/src/crabbox-worker-node-enrollment.test-support.ts.Conflict preservation and ownership
The z0351 protocol-validator tuple consolidation retained main's newly added board-snapshot valid/invalid fixture and schema/checker pairing. No board contract was dropped.
No changed paths match the current CODEOWNERS entries. This is a maintainer-authorized test-only campaign.