Skip to content

test: remove narrow composer and workspace suites - #40654

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3232-restore-sidebar-scope-composer-cuts
Nov 10, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3232-restore-sidebar-scope-composer-cuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove four small test suites and one low-value case from the ongoing test audit.

Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​192 $\color{#cf222e}{\Huge{\mathbf{−}}}$​191
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5

What Changed

Remove six tests and 191 test-code lines: the restore-source-pane, sidebar-visibility, quick-submit setup-choice and mobile missing-start timing suites, plus the dormant automation-scope unrelated-error case. Preserve the other reviewed tests, including launch-recipe compatibility. Update coverage notes without changing timing weights or prior evidence.

Why

These tests maintain fixtures around narrow mapping, presentation, callback and fallback assertions. Their detection value does not justify keeping them under the requested deletion threshold. They have real assertions; the retained tests are not equivalent replacements.

Linked Issue

Maintainer-requested comprehensive test audit; maintainer exception applies.

Visual Proof

N/A — test removals and coverage metadata only.

Testing

Linux: all 30 changed checks passed, plus 17 root suites (24 tests) and three mobile suites (four tests). Applicable CI must pass before merge.

Risk

Deliberately lose direct alarms for supported-host source-pane mapping, creation-sidebar visibility, Run/Skip revelation and no-dispatch behavior, unrelated-error rejection by the dormant scope helper, and older-host missing-start timing fallback. The mobile test does not exercise host/client clock conversion. No production change; reverting restores these tests.

AI Disclosure

Internal maintainer work; template says to leave disclosure unfilled.

Review

Independent source-value reviews cover all three components. Independent technical review accepted the exact patch, metadata and keeper preservation. The reviewer authored the scope-case proposal; its separate value approval came from another reviewer. The launch-recipe suite remains after independent review challenged its proposed deletion.

Agent skill upstream boundary

  • N/A: no upstream skill-installer material copied.

Notes

Platform, remote, mobile and folder-workspace implications considered. No device/native UI execution or measured CI saving claimed.

Checklist

  • Focused test-removal batch.
  • Coverage losses and rollback explained.
  • Visual proof N/A with reason.
  • Local validation completed.
  • Final technical review completed.
  • Applicable CI completed.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The changes delete four test files and remove selected tests from a fifth. The removed tests covered mobile agent-turn timing, external automation scope errors, quick-submit setup choice, floating right-sidebar visibility, and restore source-pane key mapping.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the removal of composer and workspace test suites. It does not mention the mobile timing suite or the automation-scope test case, but it still captures the main change.
Description check Passed The description covers the change, rationale, coverage losses, testing, risk, rollback, and why visual proof is not applicable. It also notes that applicable CI remains outstanding.
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: 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 1 files.

Finishing Touches

Generate docstrings

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

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

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

Recent 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: 5bde30f2-6342-4e71-8174-d382576b44a1
Commits

Reviewing files that changed from the base of the PR and between 351b13f and 17afd1e.

Files selected for processing: 6

  • config/reliability-gates.jsonc
  • mobile/src/session/native-chat/transcript/use-mobile-structured-agent-turn-timing.test.tsx
  • src/renderer/src/components/automations/external/external-automation-scope-gating.test.ts
  • src/renderer/src/hooks/composer-state/quick-submit-action.test.tsx
  • src/renderer/src/lib/right-sidebar-visibility.test.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-session-restore-source-pane.test.ts
Files with no reviewable changes: 4

  • src/renderer/src/lib/right-sidebar-visibility.test.ts
  • mobile/src/session/native-chat/transcript/use-mobile-structured-agent-turn-timing.test.tsx
  • src/renderer/src/hooks/composer-state/quick-submit-action.test.tsx
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-session-restore-source-pane.test.ts
Files not fully reviewed because their changes were unavailable: 1

  • config/reliability-gates.jsonc

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

@OrcaWin
OrcaWin merged commit 86ee16d into main Nov 10, 2026
44 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