You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove 220 low-value agent status and browser tests - #37586
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.
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: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: removing 220 low-value agent-status and browser tests.
Description check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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