Skip to content

test(ui,security,providers): remove low-value tests (batch d631) - #185043

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d631-1793049763
Oct 26, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d631-1793049763

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Consolidate repeated test fixtures and remove redundant assertions in batch d631. Retained tests continue to cover authorization, lifecycle retirement, cleanup, request policy, routing, and UI interaction boundaries. This changes tests and test support only; no production behavior or public API changes.

All 30 supplied commits were replayed onto pinned main ec34584e091264fc64f1b4a38bc68beb072b637e. Two commits were partially applied: the board-sizing hunk from 5e24cec5dfda and config-unset hunk from 57dfcc2efaba were dropped in favor of main's newer tests and fixtures. Their independent board helper and Doctor process changes remain. No complete commit was skipped. The only baseline change removes the exact obsolete channel-mock entry identified by CI after its isolation rationale was documented.

Evidence

27 files: +1,074 / -1,741 lines, net -667. Production: +0/-0. Test files: +969/-1,600 (net -631). Test support: +105/-140 (net -35). Shrink-only baseline: +0/-1.

Local checks passed: frozen-lockfile installation; node_modules/.bin/oxfmt --write on all 26 changed files; plain node_modules/.bin/oxlint -c .oxlintrc.json on all changed files (exit 0); git diff --check against the pinned main base. Under the operator's CI-only rule, Vitest, check-changed, typechecks, coverage, and Testbox were not run locally. Hosted openclaw/ci-gate is the test gate. No runtime or coverage result is inferred from static checks.

Independent autoreview found six actionable issues, all accepted and repaired in 2776ca8e743f: restored cloud-worker project/worktree replies and timer cleanup; retained exact native-node resume arguments; restored transcript display/type/context-exclusion assertions; retained Azure request URL/method/headers/signal assertions; and tightened model-discovery URL verification. The follow-up review was scoped-clean through P2. The original metadata check rejected nonstandard section headings; these headings were corrected without changing source.

CI on 2776ca8e743f then found a Vitest table tuple-inference error and a moved partial channel mock requiring its isolation rationale. c6c0401a5210 preserves readonly tuple rows and documents synthetic-channel isolation; no cases or assertions changed. Formatting, plain lint, diff-check, and another P2 review passed. Fresh-head CI is required; neither red check is treated as pre-existing.

CI on c6c0401a5210 passed the type checks and then required removal of the now-obsolete exact mock-baseline row. That single-row shrink passed independent P2 review; no exception was added and no assertions were changed.

The source shard reports explicitly say coverage was not run under CI-only instructions; there is no measured coverage totals line to reproduce. Each row below records that gap. Counts are replayed-tree physical lines and static it/test declarations (not expanded table cases), relative to the pinned main. Source reports precede some follow-up consolidation commits, so their earlier counts are not presented as final counts.

No changed path matches the current CODEOWNERS rules.

Shard inventory

Shard Changed files Lines before → after Declarations before → after Coverage totals
o0655 ui/src/components/board/board-view.test-support.ts 110 → 108 (-2) 0 → 0 Not run (CI-only)
o0656 ui/src/components/solid/tabs.test.tsx
ui/src/components/solid/copy-button.test.tsx
211 → 165 (-46) 6 → 4 (-2) Not run (CI-only)
o0657 ui/src/pages/cloud-workers/cloud-worker-snapshots-dom.test-support.ts
ui/src/pages/cloud-workers/cloud-workers.test-support.ts
210 → 177 (-33) 0 → 0 Not run (CI-only)
o0658 src/system-agent/operations.doctor.process.test.ts 102 → 84 (-18) 2 → 2 Not run (CI-only)
o0659 src/skills/security/workspace-audit.test.ts 207 → 165 (-42) 7 → 6 (-1) Not run (CI-only)
o0660 src/channels/config-presence.test.ts
src/channels/thread-bindings-policy.test.ts
230 → 184 (-46) 11 → 10 (-1) Not run (CI-only)
o0661 extensions/codex/src/conversation-binding-node.test.ts
extensions/codex/src/plugin-marketplace-discovery.test.ts
204 → 168 (-36) 5 → 5 Not run (CI-only)
o0662 src/agents/tools/tts-tool.test.ts 101 → 80 (-21) 5 → 5 Not run (CI-only)
o0663 src/gateway/agent-input-recovery.test.ts
src/gateway/server-close.cron.test.ts
202 → 161 (-41) 5 → 5 Not run (CI-only)
o0664 src/sessions/session-controller.diagnostic-state.test.ts
src/sessions/session-run-error.test.ts
202 → 167 (-35) 6 → 5 (-1) Not run (CI-only)
o0665 src/media-generation/provider-assets.test.ts 200 → 160 (-40) 9 → 9 Not run (CI-only)
o0666 ui/src/components/hub-tabs.browser.test.tsx
ui/src/components/sidebar-context-controller.test.ts
200 → 160 (-40) 5 → 4 (-1) Not run (CI-only)
o0667 src/infra/command-analysis/risks.test.ts 198 → 164 (-34) 8 → 7 (-1) Not run (CI-only)
o0668 extensions/byteplus/video-generation-request-policy.test.ts 197 → 157 (-40) 6 → 6 Not run (CI-only)
o0669 extensions/clawrouter/browser/pool.test.ts 271 → 216 (-55) 3 → 3 Not run (CI-only)
o0670 extensions/opencode-go/routing.test.ts 192 → 162 (-30) 2 → 2 Not run (CI-only)
o0671 src/auto-reply/reply/commands-subagents/action-agents.test.ts 189 → 152 (-37) 5 → 5 Not run (CI-only)
o0672 extensions/azure-speech/tts.test.ts 188 → 157 (-31) 7 → 7 Not run (CI-only)
o0673 extensions/oc-path/src/oc-path/tests/yaml/yaml-kind.test.ts 187 → 148 (-39) 17 → 14 (-3) Not run (CI-only)

Share menu sizing setup across preset pinning and both height-mode directions. Preserve operation payload and checkbox assertions for each branch. The retained tall-document case covers the raised auto-height cap; short-card and chrome-height assertions cover card padding. Remove the duplicate menu re-enable check covered by board-view.test.ts: allows only one snapshot-derived board mutation at a time. Consolidate the shared text assertion loop without changing its checks.
Share clipboard retirement setup across resolve, reject, and disposal; retain completed-feedback retirement in the replacement flow.

Keep keyed reorder coverage in the first Tabs test. HubTabs preserves an intentional no-selection state and moves focus without activating routes cover duplicate null-selection and Enter behavior in ui/src/components/hub-tabs.test.ts.
Consolidate workspace fixtures, directory symlinks and warning assertions. Preserve all security cases, including linked-root cycles, dangling roots, malformed-roster fallback, unverifiable realpaths, scan caps and unreadable directories. CI-only validation: plain oxlint, oxfmt and diff checks.
Keep file-symlink escape proof in the malformed-defaults test and use the realpath-failure test's initial audit for in-workspace acceptance. Retain linked-root cycles, dangling roots, both explicit workspaces, scan-cap boundaries and unreadable-directory cases. Reduce the shard from 207 original lines to 165; CI-only validation uses plain oxlint, oxfmt and diff checks.
Share account-binding and persisted-auth fixtures while preserving distinct policy and credential assertions. Cover enabled-only and empty channel configurations through the retained public presence test instead of a separate predicate test.
Reuse the strict directory walker instead of maintaining a second recursive inventory in the hosted Doctor preservation test. Preserve all four cases and every assertion, including file modes, symlink targets, bytes, and modification times. The 20% line target is not safely achievable in these already compact authority and lifecycle tests.
Keep the real config_unset proposal/approval and persistence path, but drop schema inventory and intermediate proposal-shape assertions. The generic handoff is covered by system-agent-tool.test.ts: defers an approved mutation to the host after the full proposal handshake. Use the existing effect guard to expire authority after admission instead of wrapping the CLI. Keep exact unchanged-file and no-audit checks.

Minimize sibling config fixtures and move Doctor PID/cwd assertions into the child fixture, eliminating the JSON reporting layer. The retained host responsiveness case proves subprocess execution without a duplicate doctorCommand mock. All four cases remain; total shard lines decrease from 181 to 144. Validation: plain oxlint, oxfmt, and diff-check; no tests run under CI-only mode.
Remove unused project/worktree RPC fixtures, inline the sole suite-setup caller, and reuse the canonical source-config snapshot fixture. Keep all consumer cases and assertions, including access revocation, recovery fencing, and async lifecycle coverage. Reduction is 16 of 210 helper lines; remaining helpers serve distinct fixture, mounting, cleanup, and assertion behavior.
Consolidate the cloud-worker mount and fixture helpers behind their existing imports. Replace the custom disposer stack with Vitest onTestFinished; the shared UI dom.setup owns Solid unmounts, and config-test-harness owns timer restoration. Remove unused worker-id and initial-scope overrides without changing consumer cases or assertions. Combined shard size is 210 to 168 lines (20%).
Reuse the catalog fixture and compact typed partial mocks and reply assertions. Retain all marketplace identity/policy and queued node authority cases; these tight suites have no redundant behavior layer to remove safely.
Drop parser success replays covered by preserves authorized workspace catalogs and deduplicates a trusted source with restrictive policy. Keep invalid identifier boundaries and every queued-node authority outcome, while removing argument-shape assertions and irrelevant fixture scaffolding.
Consolidate repeated failure-copy fixtures and session-row tables without deleting cases or weakening assertions. Preserve all diagnostic recovery regressions from 1939549 and permission-error coverage from 2a8b77f. CI-only validation: formatting, diff checks, and plain oxlint pass; test execution deferred to hosted CI. Reduction is below target because the remaining paths protect distinct recovery, persistence, and error-presentation behavior.
Keep diagnostic rekey, retained-cleanup ordering, and both queued-input branches with shared local fixtures. Keep typed storage and permission copy checks plus legacy session-row classification; remove legacy append replays of that classifier.

The ordinary append fallback and common report flags remain covered by session-lifecycle-run-failure.test.ts: records a run-timeout kill delivered as an aborted phase event; retains same-account context after phase outside the CLI stack. Preserve an assertion guard for the append callback.

Shard total: 202 to 161 lines (20.3%). Static formatting, diff, and oxlint gates only; no test execution in CI-only mode.
Reuse createGatewayCloseRace from server-close.race.test-support for the abort handshake, held replies, close tracking and cleanup already used by server-close.lifecycle-read and server-close.placement tests. Preserve both cron commits and persisted rows, initial/deferred recovery failures, and both synthetic request gates. Wrong-target error resolution proves the throwing custody check was not called; the exact-target case retains its rejection assertion.
Share carrier and builtin assertion setup, sudo flag fixtures, and shell/segment argv fixtures. Preserve all existing input variants and exact outcomes for command and approval security boundaries. CI-only validation: oxlint, oxfmt, and diff check; 198 to 164 lines.
Remove the duplicate focus-handoff case: sessions-hub-tabs.test.ts covers retiring-route focus transfer and hub-tabs.test.ts covers keyboard selection. Keep browser geometry checks and all sidebar lifecycle assertions. Reuse mountSolid container ownership instead of a separate root cleanup helper.
Share the crowded HubTabs fixture across layout checks. Keep pending-to-ready router, replacement, scroll and detach behavior while removing repeated identity checks: sidebar-context-state.test.ts covers data forwarding and snapshot equality, and app-sidebar.projection-memo.test.ts covers owner preservation across view recreation. Keep the final detached-navigation assertion rather than repeat it before navigation.
Compact route metadata and scope discovery fixtures to the family under test. Retain all four protocol round trips, saved-route normalization, proxy preservation, and offline fallbacks from the API-migration regression (e6d28fe).
Remove duplicate listing URL bookkeeping: index.test.ts already proves that endpoint in joins account-listed chat models with metadata and excludes retired models. Minimize discovery metadata and retain presence checks with assertions. Preserve all protocol, saved-route, proxy, and offline fallback checks.
Remove duplicate MP3 and lowercase RIFF mapping inputs; ogg-mp3 and uppercase RIFF retain their branches. Sibling speech-provider tests uses native Ogg/Opus for voice-note output, honors voice and language overrides for telephony output, and routes synthesis with configured endpoints retain audio, credential, header, and routing proof. voices-timeout.test.ts retains real abort-signal proof. Preserve SSML escaping, catalog filters, audio caps, empty audio and malformed-response socket cleanup.
Shrink synthetic catalog records and the synthesis request builder while preserving filtering, metadata, SSML, overflow, and socket-cleanup assertions. Remove the Ogg metadata replay covered by speech-provider.test.ts: uses native Ogg/Opus for voice-note output. Flatten the redundant file-level suite wrapper. Shard now totals 150 lines, down from 188; CI-only static checks passed.
@steipete steipete changed the title test: remove low-value tests (batch d631) test(ui,security,providers): remove low-value tests (batch d631) Oct 26, 2026
@steipete
steipete disabled auto-merge October 26, 2026 21:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e1c952f00

ℹ️ 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".

Comment on lines 121 to +127
export function setupSnapshotTests() {
const disposers: Array<() => void> = [];
afterEach(() => {
for (const dispose of disposers.splice(0).toReversed()) {
dispose();
}
beforeEach(async () => {
vi.clearAllMocks();
vi.mocked(showConfirmDialog).mockResolvedValue(true);
await i18n.setLocale("en");
});
dom.setupSnapshotsDomSuite();
return (...args: Parameters<typeof dom.mountPage>) => {
const fixture = dom.mountPage(...args);
disposers.push(fixture.dispose);
return fixture;
};
return mountPage;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore real timers after each snapshot test

The consolidated setup drops the previous afterEach(() => vi.useRealTimers()), but cloud-worker-snapshots.test.ts still enables fake timers in both the machine-save/capacity test and the automatic-preparation polling test. Consequently, subsequent cases inherit the fake clock and pending timers instead of running with their intended timer environment. The shared DOM setup only cleans up Solid roots, and the non-isolated runner restores timers between files, not between these cases. Retain the timer-reset hook in this setup so the snapshot tests remain independent.

Useful? React with 👍 / 👎.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 21:32
@steipete
steipete disabled auto-merge October 26, 2026 21:42
@steipete
steipete enabled auto-merge (squash) October 26, 2026 21:44
@steipete
steipete disabled auto-merge October 26, 2026 21:58
@steipete
steipete enabled auto-merge (squash) October 26, 2026 21:59
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates test fixtures and overlapping assertions while retaining lifecycle, authorization, routing, cleanup, and UI interaction coverage.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cleanup appears correct and useful; validation consists of hosted tests and static checks, with the aggregate gate still pending.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only cleanup changes no shipped behavior; hosted checks support the retained test contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction reduces repeated test scaffolding while retaining meaningful regression boundaries.

Merge readiness

✅ Ready for maintainer review

Keep open: this is useful maintainer-authored test maintenance, with no actionable regression found in the introduced diff.

Priority: P3
Reviewed head: 39eb1c2c568fc0007931af34398d2ff3c90b04eb

Before merge

None.

Findings

None.

Agent review details

How this fits together

The changed test suites feed synthetic filesystem, provider, Gateway, and UI inputs through existing owners and assert their observable results and cleanup.

flowchart LR
  Fixtures[Synthetic fixtures] --> Suites[Test suites]
  Suites --> Owners[Existing production owners]
  Owners --> Results[Results and side effects]
  Results --> Assertions[Behavior assertions]
  CI[Hosted CI] --> Suites
Loading

Technical review

Best possible solution:

Retain the consolidated fixtures and distinct boundary assertions, then land through the existing current-head CI gate.

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

There is no product bug to reproduce; this read-only review compared the introduced test changes with their prior assertions, retained sibling coverage, and current-head CI results.

Is this the best way to solve the issue?

Fixture consolidation within existing suites is appropriate, and the simplification review found no definite unnecessary machinery or lost distinct contract requiring repair.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Copy-button lifetime and tab focus tests keeps the original intent (4018fa4: The earlier migration retained unique completed-feedback reset coverage in the native Solid suite; that behavior remains in the consolidated replacement flow, and sibling suites retain focus handoff and keyboard activation.)
  • Workspace skill security audit keeps the original intent (a9ecba9: The linked-root regression from fix(security): audit symlinked workspace skill roots #182384 protects nested escapes and cycle handling; both remain exercised.)
  • Generated-video download and BytePlus policy tests keeps the original intent (9a97d4c: The security repair in fix(media): guard generated video result downloads #182425 requires strict result-download admission and cleanup without task credential forwarding; these assertions remain.)
  • OpenCode Go routing keeps the original intent (e6d28fe: The API-migration repair in fix: restore OpenCode Go family routing after API migration #176265 protects four protocol families, saved native routes, custom proxies, and offline fallbacks; the compact fixtures retain those outcomes.)
  • ClawRouter pool rendering keeps the original intent (29397d2: The optimization in perf(plugins): reduce settings load and repeated view work #184126 requires provider-and-key traffic matching and updated totals after refresh; independent expected totals remain.)
  • YAML timestamp integrity keeps the original intent (4fca771: The integrity fix in fix(oc-path): prevent duplicate YAML timestamp keys during edits #169266 refuses object-valued timestamp-key edits while allowing selected textual keys; all three ordering scenarios remain.)
  • Session diagnostics and failure notices keeps the original intent (1939549: Existing recovery tests distinguish rekeying, retained cleanup, and queued-input counts; these remain, alongside failure-notice display, custom type, diagnostics, and exclusion from later context.)
  • Hosted Doctor process keeps the original intent (6ae7b96: The process boundary keeps the host responsive during synchronous Doctor work; the child fixture now checks PID and working directory directly, and read-only state snapshots remain exact.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced scope: The pinned introduction changes tests, test support, and one shrink-only mock-baseline entry; it changes no production implementation, dependency, public API, or persisted format. (39eb1c2c568f)
  • Earlier timer finding resolved: The discussion's timer-reset concern is repaired: setupSnapshotTests restores real timers after each case, shared DOM setup disposes Solid roots, and onTestFinished disposes the runtime config capability. (ui/src/pages/cloud-workers/cloud-workers.test-support.ts:135, 39eb1c2c568f)
  • Queued authority coverage retained: Unchanged, detached, replaced, and policy-refused queued bindings remain distinct cases, with rejected execution counts and exact native-node resume arguments retained. (extensions/codex/src/conversation-binding-node.test.ts:35, 39eb1c2c568f)
  • Removed focus test has retained coverage: The existing Sessions hub suite still exercises focus transfer from an unmounted retiring route to its Solid destination, while HubTabs retains manual keyboard activation and intentional no-selection coverage. (ui/src/components/sessions-hub-tabs.test.ts, 39eb1c2c568f)
  • Security regressions preserved: Private result URLs, private redirects, proxy DNS validation, guarded-response release, linked skill roots, cycles, malformed-default workspace enumeration, and scan limits remain covered. (src/media-generation/provider-assets.test.ts, 39eb1c2c568f)
  • Current-head validation: Current-head changed-test lanes, UI unit and selected E2E lanes, types, lint, ratchets, and security checks passed; two PostgreSQL conformance shards and openclaw/ci-gate remained pending at the final read. (39eb1c2c568f)

Likely related people:

  • Peter Steinberger: Raw commit c8b5a6a adds ui/src/pages/cloud-workers/cloud-workers.test-support.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c8b5a6af9cb6; files: ui/src/pages/cloud-workers/cloud-workers.test-support.ts)
  • Gio Della-Libera: Raw commit 0b708a2 adds extensions/oc-path/src/oc-path/tests/yaml/yaml-kind.test.ts:238 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 0b708a257464; files: extensions/oc-path/src/oc-path/tests/yaml/yaml-kind.test.ts)
  • Vincent Koc: Raw commit 8bf9c97 adds extensions/azure-speech/tts.test.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8bf9c9761b6d; files: extensions/azure-speech/tts.test.ts)

PR surface

Tests -666, Other -1. Total -667 across 27 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 26 1077 1743 -666
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 27 1077 1744 -667

Review metrics

Metric Value Why it matters
Production versus test changes Production +0/-0; tests +972/-1603; test support +105/-140. The reduction comes from fixture sharing and consolidation without adding production machinery.

Labels

Label changes:

  • add P3: This is test-maintenance cleanup with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test-maintenance cleanup with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 26, 2026, 6:16 PM ET / 22:16 UTC.

@steipete
steipete merged commit 6ae6997 into main Oct 26, 2026
124 checks passed
@steipete
steipete deleted the tcr/land-d631-1793049763 branch October 26, 2026 22:24
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…nclaw#185043)

* test(ui): consolidate o0655 sizing scenarios

Share menu sizing setup across preset pinning and both height-mode directions. Preserve operation payload and checkbox assertions for each branch. The retained tall-document case covers the raised auto-height cap; short-card and chrome-height assertions cover card padding. Remove the duplicate menu re-enable check covered by board-view.test.ts: allows only one snapshot-derived board mutation at a time. Consolidate the shared text assertion loop without changing its checks.

* test(ui): deslop o0656 tests

* test(ui): consolidate o0656 lifecycle coverage

Share clipboard retirement setup across resolve, reject, and disposal; retain completed-feedback retirement in the replacement flow.

Keep keyed reorder coverage in the first Tabs test. HubTabs preserves an intentional no-selection state and moves focus without activating routes cover duplicate null-selection and Enter behavior in ui/src/components/hub-tabs.test.ts.

* test(security): deslop o0659 tests

Consolidate workspace fixtures, directory symlinks and warning assertions. Preserve all security cases, including linked-root cycles, dangling roots, malformed-roster fallback, unverifiable realpaths, scan caps and unreadable directories. CI-only validation: plain oxlint, oxfmt and diff checks.

* test(security): consolidate o0659 audit fixtures

Keep file-symlink escape proof in the malformed-defaults test and use the realpath-failure test's initial audit for in-workspace acceptance. Retain linked-root cycles, dangling roots, both explicit workspaces, scan-cap boundaries and unreadable-directory cases. Reduce the shard from 207 original lines to 165; CI-only validation uses plain oxlint, oxfmt and diff checks.

* test(channels): deslop o0660 tests

Share account-binding and persisted-auth fixtures while preserving distinct policy and credential assertions. Cover enabled-only and empty channel configurations through the retained public presence test instead of a separate predicate test.

* test(system-agent): deslop o0658 tests

Reuse the strict directory walker instead of maintaining a second recursive inventory in the hosted Doctor preservation test. Preserve all four cases and every assertion, including file modes, symlink targets, bytes, and modification times. The 20% line target is not safely achievable in these already compact authority and lifecycle tests.

* test(system-agent): consolidate o0658 boundary fixtures

Keep the real config_unset proposal/approval and persistence path, but drop schema inventory and intermediate proposal-shape assertions. The generic handoff is covered by system-agent-tool.test.ts: defers an approved mutation to the host after the full proposal handshake. Use the existing effect guard to expire authority after admission instead of wrapping the CLI. Keep exact unchanged-file and no-audit checks.

Minimize sibling config fixtures and move Doctor PID/cwd assertions into the child fixture, eliminating the JSON reporting layer. The retained host responsiveness case proves subprocess execution without a duplicate doctorCommand mock. All four cases remain; total shard lines decrease from 181 to 144. Validation: plain oxlint, oxfmt, and diff-check; no tests run under CI-only mode.

* test(ui): deslop o0657 tests

Remove unused project/worktree RPC fixtures, inline the sole suite-setup caller, and reuse the canonical source-config snapshot fixture. Keep all consumer cases and assertions, including access revocation, recovery fencing, and async lifecycle coverage. Reduction is 16 of 210 helper lines; remaining helpers serve distinct fixture, mounting, cleanup, and assertion behavior.

* test(ui): consolidate o0657 fixture lifecycle

Consolidate the cloud-worker mount and fixture helpers behind their existing imports. Replace the custom disposer stack with Vitest onTestFinished; the shared UI dom.setup owns Solid unmounts, and config-test-harness owns timer restoration. Remove unused worker-id and initial-scope overrides without changing consumer cases or assertions. Combined shard size is 210 to 168 lines (20%).

* test(agents): deslop o0662 tests

* test(codex): deslop o0661 tests

Reuse the catalog fixture and compact typed partial mocks and reply assertions. Retain all marketplace identity/policy and queued node authority cases; these tight suites have no redundant behavior layer to remove safely.

* test(codex): finish structural cuts for o0661

Drop parser success replays covered by preserves authorized workspace catalogs and deduplicates a trusted source with restrictive policy. Keep invalid identifier boundaries and every queued-node authority outcome, while removing argument-shape assertions and irrelevant fixture scaffolding.

* test(media-generation): deslop o0665 tests

* test(sessions): deslop o0664 tests

Consolidate repeated failure-copy fixtures and session-row tables without deleting cases or weakening assertions. Preserve all diagnostic recovery regressions from 7a348ed and permission-error coverage from 1dbe439. CI-only validation: formatting, diff checks, and plain oxlint pass; test execution deferred to hosted CI. Reduction is below target because the remaining paths protect distinct recovery, persistence, and error-presentation behavior.

* test(sessions): consolidate o0664 boundary coverage

Keep diagnostic rekey, retained-cleanup ordering, and both queued-input branches with shared local fixtures. Keep typed storage and permission copy checks plus legacy session-row classification; remove legacy append replays of that classifier.

The ordinary append fallback and common report flags remain covered by session-lifecycle-run-failure.test.ts: records a run-timeout kill delivered as an aborted phase event; retains same-account context after phase outside the CLI stack. Preserve an assertion guard for the append callback.

Shard total: 202 to 161 lines (20.3%). Static formatting, diff, and oxlint gates only; no test execution in CI-only mode.

* test(gateway): deslop o0663 tests

* test(gateway): consolidate o0663 lifecycle fixtures

Reuse createGatewayCloseRace from server-close.race.test-support for the abort handshake, held replies, close tracking and cleanup already used by server-close.lifecycle-read and server-close.placement tests. Preserve both cron commits and persisted rows, initial/deferred recovery failures, and both synthetic request gates. Wrong-target error resolution proves the throwing custody check was not called; the exact-target case retains its rejection assertion.

* test(byteplus): deslop o0668 tests

* test(infra): deslop o0667 tests

Share carrier and builtin assertion setup, sudo flag fixtures, and shell/segment argv fixtures. Preserve all existing input variants and exact outcomes for command and approval security boundaries. CI-only validation: oxlint, oxfmt, and diff check; 198 to 164 lines.

* test(ui): deslop o0666 tests

Remove the duplicate focus-handoff case: sessions-hub-tabs.test.ts covers retiring-route focus transfer and hub-tabs.test.ts covers keyboard selection. Keep browser geometry checks and all sidebar lifecycle assertions. Reuse mountSolid container ownership instead of a separate root cleanup helper.

* test(ui): consolidate o0666 layout fixtures

Share the crowded HubTabs fixture across layout checks. Keep pending-to-ready router, replacement, scroll and detach behavior while removing repeated identity checks: sidebar-context-state.test.ts covers data forwarding and snapshot equality, and app-sidebar.projection-memo.test.ts covers owner preservation across view recreation. Keep the final detached-navigation assertion rather than repeat it before navigation.

* test(auto-reply): deslop o0671 tests

* test(clawrouter): deslop o0669 tests

* test(clawrouter): consolidate o0669 pool fixtures

* test(opencode-go): deslop o0670 tests

Compact route metadata and scope discovery fixtures to the family under test. Retain all four protocol round trips, saved-route normalization, proxy preservation, and offline fallbacks from the API-migration regression (89daa68).

* test(opencode-go): trim redundant routing setup

Remove duplicate listing URL bookkeeping: index.test.ts already proves that endpoint in joins account-listed chat models with metadata and excludes retired models. Minimize discovery metadata and retain presence checks with assertions. Preserve all protocol, saved-route, proxy, and offline fallback checks.

* test(oc-path): deslop o0673 tests

* test(azure-speech): deslop o0672 tests

Remove duplicate MP3 and lowercase RIFF mapping inputs; ogg-mp3 and uppercase RIFF retain their branches. Sibling speech-provider tests uses native Ogg/Opus for voice-note output, honors voice and language overrides for telephony output, and routes synthesis with configured endpoints retain audio, credential, header, and routing proof. voices-timeout.test.ts retains real abort-signal proof. Preserve SSML escaping, catalog filters, audio caps, empty audio and malformed-response socket cleanup.

* test(azure-speech): compact o0672 fixtures

Shrink synthetic catalog records and the synthesis request builder while preserving filtering, metadata, SSML, overflow, and socket-cleanup assertions. Remove the Ogg metadata replay covered by speech-provider.test.ts: uses native Ogg/Opus for voice-note output. Flatten the redundant file-level suite wrapper. Shard now totals 150 lines, down from 188; CI-only static checks passed.

* test: preserve boundary contracts in fixture consolidation

* test: preserve table typing and mock isolation

* test: prune explained channel mock baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui extensions: byteplus extensions: clawrouter Extension: clawrouter extensions: codex extensions: oc-path extensions: opencode-go gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: azure-speech Azure Speech plugin rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant