Skip to content

test: remove 220 low-value agent status and browser tests - #37586

Merged
OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-tests-agent-browser
Nov 2, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-tests-agent-browser

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 36 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5909 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5883
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​24 0

ELI5

Remove low-value agent-status and browser tests to reduce maintenance and CI work.

What Changed

Remove 220 registrations from 40 reviewed sources; retain 155. Delete five whole suites, trim 30, and remove the deleted PR-refresh registrar's import/call. Prune four timing rows and narrow five reliability gates to their remaining evidence.

Removed checks mostly assert supplied fields, exact epochs, RPC/mock ledgers, CRUD projections or repeated permutations. Their standalone regression alarms are intentionally lost; retained tests are not equivalent replacements.

Why

Batch three audited groups into one CI run.

Linked Issue

N/A — maintainer-directed cleanup.

Visual Proof

N/A — test and test-metadata changes only.

Testing

External parsing, unchanged retained registration/callback/setup/scope hashes, exact cleanup replay, external formatting and inert oxlint pass. Runtime import edges are preserved in surviving suites except the intentionally deleted registrar import. No local project tests, builds, typechecks, installs or apps were run. Current-head CI and all 12 full unit shards must pass before merge.

Review

Root read all 40 original sources and made all 375 registration decisions. Selected production/fixture bodies were read; other owner snapshots are pins only. All 114 protected paths reconcile to verified main.

Agent skill upstream boundary

  • Not applicable; no upstream skill content copied.

Risk

Medium: narrower regression coverage, including remote, folder-workspace and cross-platform permutations. Production code is unchanged. Revert the squash commit to restore this batch.

Checklist

  • Explained rationale and lost alarms.
  • Self-reviewed candidates and metadata.
  • Cross-platform, remote and folder-workspace impact considered.
  • Current-head CI before merge.

@OrcaWin
OrcaWin marked this pull request as ready for review November 2, 2026 23:23
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The pull request removes or narrows renderer tests for agent-status and browser behavior, and deletes several test files. It adds a Jcode provider-session test and changes some test imports to load modules for their side effects. Reliability-gate notes and CI timing records are updated. The summaries show no product implementation changes.

Merge Risk: Low · up to 77fb6

These removals leave narrower checks for session recovery, tab-prefix drops, and provider sessions. The change is mergeable if that coverage loss is accepted and current-head CI passes.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: removing 220 low-value agent-status and browser tests.
Description check Passed The description covers the required scope, rationale, testing status, risk, visual-proof status, review details, and rollback plan. It also identifies that CI remains pending. The maintainer-directed …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the required scope, rationale, testing status, risk, visual-proof status, review details, and rollback plan. It also identifies that CI remains pending. The maintainer-directed issue exception is explained, and the missing AI Disclosure and Notes sections are non-critical.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 15 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@coderabbitai coderabbitai 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.

Nitpick comments: 3
src/renderer/src/store/slices/agent-status/agent-status-quit-capture.test.ts: 1

2-2: Trivial · Functional Correctness · Quick win

Add a regression test for quit-capture eligibility, or accept the gap.

The removed tests were the only checks on which agents captureAllSleepingAgentSessions('quit') keeps or skips. The retained tests do not cover completed agents, agents without a resumable provider session, multi-worktree capture, or tab-prefix worktree attribution. No test refers to capturedResumeRecord by name.

A regression in those rules can drop a session on quit or keep a record for a completed agent, and no test would detect it. The PR author has accepted this risk. If the risk is not acceptable, add one table-driven test on captureAllSleepingAgentSessions('quit'). Cover completed, no-provider-session, multi-worktree, and tab-prefix attribution cases.

src/renderer/src/store/slices/agent-status/agent-status-retention-prefix-sweep.test.ts: 1

2-6: Trivial · Functional Correctness · Quick win

Retain the tab-prefix boundary test for dropAgentStatusByTabPrefix.

Add tab-1 and tab-10 entries, invoke dropAgentStatusByTabPrefix('tab-1'), and assert that tab-10 remains. Also assert that window.api.agentStatus.dropByTabPrefix receives tab-1. The current tests do not detect a regression in the drop patch or its IPC fan-out that omits the : boundary.

src/renderer/src/store/slices/agent-status/agent-status-provider-session.test.ts: 1

4-10: Trivial · Functional Correctness · Quick win

Retain direct claim-key and heartbeat assertions.

getProviderSessionClaimKey uses transcriptPath for Pi and Prime Agent. The retained direct key test covers only OMP, where transcriptPath must not change the key. Add Pi and Prime Agent cases with the same providerSession.id and different transcriptPath values.

The retained completed-record test checks providerSession, state, and origin, but not the updatedAt written by the post-completion heartbeat. Assert that timestamp while preserving the existing state and origin checks.

Source: Learnings


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 184563bb-6b7f-4097-8e1a-dec2eb0d36af
Commits

Reviewing files that changed from the base of the PR and between c0380f6 and 77fb6bb.

Files selected for processing: 38
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/agent-pane-authority.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-ack-cleanup.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-batch.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-drop-ipc.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-entry-contracts.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-freshness-cache.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-freshness-scheduler.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-live-map-leak.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-main-agent-fact.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-manual-sleep-capture.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-pane-keyed-records.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-pr-refresh-handoff.spec.ts
  • src/renderer/src/store/slices/agent-status/agent-status-program-status.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-provider-session.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-quit-capture.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-retention-prefix-sweep.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-row-order-origin.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-runtime-orchestration.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-ssh-connection-clear.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-tool-assistant-fields.spec.ts
  • src/renderer/src/store/slices/agent-status/agent-status-verdict-copies.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-worktree-purge-leak.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status.test.ts
  • src/renderer/src/store/slices/all-host-catalog-settlement.test.ts
  • src/renderer/src/store/slices/ambiguous-owner-warning-worktree-removal-leak.test.ts
  • src/renderer/src/store/slices/browser-annotation-retention.test.ts
  • src/renderer/src/store/slices/browser-cleanup-close.test.ts
  • src/renderer/src/store/slices/browser-layout-owner-commands.test.ts
  • src/renderer/src/store/slices/browser-page-close-intent-recording.test.ts
  • src/renderer/src/store/slices/browser-page-conversion.test.ts
  • src/renderer/src/store/slices/browser-remote-page-lifecycle.test.ts
  • src/renderer/src/store/slices/browser-remote-tab-creation.test.ts
  • src/renderer/src/store/slices/browser-session-profiles.test.ts
  • src/renderer/src/store/slices/browser-tab-creation-placement.test.ts
  • src/renderer/src/store/slices/browser-workspace-doc-location.test.ts
  • src/renderer/src/store/slices/browser.test.ts
Files with no reviewable changes: 22
  • src/renderer/src/store/slices/agent-status/agent-status-worktree-purge-leak.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-program-status.test.ts
  • src/renderer/src/store/slices/all-host-catalog-settlement.test.ts
  • src/renderer/src/store/slices/browser-annotation-retention.test.ts
  • src/renderer/src/store/slices/browser-remote-page-lifecycle.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-pr-refresh-handoff.spec.ts
  • src/renderer/src/store/slices/agent-status/agent-status-live-map-leak.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-entry-contracts.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-freshness-scheduler.test.ts
  • src/renderer/src/store/slices/browser-layout-owner-commands.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-row-order-origin.test.ts
  • src/renderer/src/store/slices/browser-page-close-intent-recording.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-pane-keyed-records.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-ack-cleanup.test.ts
  • src/renderer/src/store/slices/browser-cleanup-close.test.ts
  • src/renderer/src/store/slices/agent-pane-authority.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-manual-sleep-capture.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-ssh-connection-clear.test.ts
  • src/renderer/src/store/slices/browser-remote-tab-creation.test.ts
  • src/renderer/src/store/slices/ambiguous-owner-warning-worktree-removal-leak.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status.test.ts
  • config/scripts/ci-shard-timings.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@OrcaWin
OrcaWin merged commit fae90b0 into main Nov 2, 2026
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant