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
Removes 203 low-value test registrations, including 18 whole suites, after reviewing 60 renderer test files.
What Changed
Retains 174 registrations covering asynchronous lifecycle, acknowledgment, recovery, host ownership, bounded work, redaction and live localization. Retained callbacks/scopes are unchanged. Removes 18 timing entries and updates five reliability gate notes; all 422 historical evidence commands/results are preserved.
Why
The deleted cases primarily restate supplied owner, route, display, status or dry-run outputs. Their individual regression alarms are accepted losses; no equivalent coverage is claimed.
Linked Issue
N/A — maintainer-requested audit; no pre-existing issue was supplied.
Visual Proof
N/A — test deletions and CI metadata only; no UI or interaction change.
Testing
Manually tested locally
Automated-test changes explained above
External parsing/formatting, inert lint, retained-code/import comparisons, and independent public-tree verification of all 60 source outcomes and 119 dependency snapshots passed. Current-head CI passed: all 12 unit shards, relay integration, static/typecheck, headless server and aggregate. Applicable platform/E2E jobs were skipped by workflow selection.
Risk
Level: Low production-change risk; reduced regression detection is intentional. Specific owner/host predicates, lookup precedence, simulator ordering, activity projection, display and planning alarms are removed. Revert this PR to restore them.
Review
Self-reviewed. CodeRabbit's three retention suggestions were considered and declined under the test-value audit:
Repo slug index: accept loss of host and origin/fork mapping examples; retained retry/cleanup tests do not replace them.
Simulator search: accept loss of empty-query comparator ordering; retained ownership tests do not establish that order.
Workspace activity: accept loss of waiting-to-permission and completed-agent projection examples; retained parity/owner tests do not replace them.
Agent skill upstream boundary
Not applicable; no upstream skill-installer material copied.
Notes
Production code, cross-platform execution, SSH/remote behavior, mobile, persistence formats and compatibility are unchanged. Lost regression checks are intentional and recorded.
Checklist
Focused test-removal batch
What changed and why explained
Risks and revert path recorded
Visual proof N/A with reason
Self-reviewed for correctness, security and performance
Cross-platform and remote impact considered
CI covers project checks; local execution not performed
The change removes or narrows renderer unit-test suites across repository ownership and routing, runtime and session handling, UI utilities, setup flows, and source-control helpers. It updates reliability-gate notes to list removed assertions and coverage gaps, removes the retired runtime workspace file-route test from the restored-editor gate, and deletes timing entries for removed tests. The supplied summaries report no product implementation changes.
Merge Risk: Low · up to 5f76d
Current behavior is unchanged, but future regressions in repository lookup, simulator ordering, and sidebar agent activity could go undetected. The change is mergeable with awareness of those coverage gaps.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely identifies the main change: removing 203 low-value renderer tests.
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.
Description check
The pull request description is complete and aligned with the template. It explains the scope, rationale, retained and removed coverage, testing evidence, risk, visual impact, review decisions, cross-…
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 7 files. (1 skipped: 1 unsupported.)
Full details: Description check
Explanation
The pull request description is complete and aligned with the template. It explains the scope, rationale, retained and removed coverage, testing evidence, risk, visual impact, review decisions, cross-platform impact, and rollback path. The linked issue is marked N/A with a maintainer-requested audit justification, which matches the template's maintainer exception.
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.
The reason will be displayed to describe this comment to others. Learn more.
Nitpick comments: 3
src/renderer/src/lib/repo-slug-index.test.ts: 1
3-3: Trivial · Functional Correctness · Quick win
Keep a focused host-scoped lookup test.
useRepoSlugIndex.lookupSlug has separate host matching and origin-over-fork selection branches. The retained tests cover only retry behavior. The filtering tests use mocked lookup results and do not protect this hook.
Keep one compact hook-level test with the same slug represented by an origin and a fork across two hosts. Assert that the origin match is preferred and that a lookup on the other host does not reuse the match.
Retain an empty-query ordering assertion for simulator search.
The retained ownership test already covers active-group selection and isCurrentTab. The removed simulator test was the only inspected test that checked the resulting empty-query order. Add that focused assertion to the retained active-group fixture:
Restore the waiting-agent and completed-agent assertions.
workspace-activity-shadow.test.ts no longer tests readWindowWorkspaceActivityFacts. The removed case checked that a waiting agent maps to permission and that a completed agent is omitted. The parity suite checks rendered rows and ACTIVE markers. Its hide-sleeping case covers live-terminal liveness, but no retained expectation checks agent state. A regression in the waiting-to-permission mapping or the completed-agent exclusion can pass both suites.
Restore the removed readWindowWorkspaceActivityFacts case from 443140e, or at least its waiting-agent and completed-agent assertions.
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: e52ed553-3d71-473c-bd1b-c6a7b778baf9
Commits
Reviewing files that changed from the base of the PR and between 443140e and 5f76d69.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 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
Removes 203 low-value test registrations, including 18 whole suites, after reviewing 60 renderer test files.
What Changed
Retains 174 registrations covering asynchronous lifecycle, acknowledgment, recovery, host ownership, bounded work, redaction and live localization. Retained callbacks/scopes are unchanged. Removes 18 timing entries and updates five reliability gate notes; all 422 historical evidence commands/results are preserved.
Why
The deleted cases primarily restate supplied owner, route, display, status or dry-run outputs. Their individual regression alarms are accepted losses; no equivalent coverage is claimed.
Linked Issue
N/A — maintainer-requested audit; no pre-existing issue was supplied.
Visual Proof
N/A — test deletions and CI metadata only; no UI or interaction change.
Testing
External parsing/formatting, inert lint, retained-code/import comparisons, and independent public-tree verification of all 60 source outcomes and 119 dependency snapshots passed. Current-head CI passed: all 12 unit shards, relay integration, static/typecheck, headless server and aggregate. Applicable platform/E2E jobs were skipped by workflow selection.
Risk
Level: Low production-change risk; reduced regression detection is intentional. Specific owner/host predicates, lookup precedence, simulator ordering, activity projection, display and planning alarms are removed. Revert this PR to restore them.
Review
Self-reviewed. CodeRabbit's three retention suggestions were considered and declined under the test-value audit:
Agent skill upstream boundary
Notes
Production code, cross-platform execution, SSH/remote behavior, mobile, persistence formats and compatibility are unchanged. Lost regression checks are intentional and recorded.
Checklist