Skip to content

test: remove redundant cases and strengthen session boundary coverage - #33129

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/comprehensive-test-audit-80
Oct 24, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/comprehensive-test-audit-80

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​161 $\color{#cf222e}{\Huge{\mathbf{−}}}$​141 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20
Prod 0 0 0 0

Remove four duplicate test cases whose behavior remains covered by stronger retained assertions. Replace the test-only session-route simulator with direct inputs to the real gate, and replace a packaged child source-string assertion with success and rejection cases that execute the child.

Strengthen existing checks for mutation fingerprint conflicts, replay and retention, launch cleanup and retry timing, mobile tab selection, document cleanup, reader status, and the native back prompt. Production code is unchanged.

Validation: 30 sources reviewed; 225→221 declarations. Combined focused runs pass all 265 cases with zero skips. Node/CLI/web typechecks, mobile test typecheck, changed-code quality, formatting, and commit hooks pass. Fault probes demonstrate the repaired assertion gaps and retained coverage for removals. Local source-bearing audit evidence stays outside Git.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: c23120a3-331c-457c-b6c4-df118e66eddd
Commits

Reviewing files that changed from the base of the PR and between 59cc469 and cd66471.

Files selected for processing: 17
  • config/scripts/run-linux-packaged-node-pty-floor-smoke.test.mjs
  • mobile/src/session/active-session-tab.test.ts
  • mobile/src/session/initial-session-terminal.test.ts
  • mobile/src/session/mobile-markdown-document-lifetime.test.ts
  • mobile/src/session/mobile-markdown-reader-status.test.ts
  • mobile/src/session/mobile-session-tab-activation.test.ts
  • mobile/src/session/mobile-session-tabs-accepted-effects.test.ts
  • mobile/src/session/opened-mobile-session-tab.test.ts
  • mobile/src/session/pending-session-selection.test.ts
  • mobile/src/session/session-markdown-hardware-back.test.ts
  • mobile/src/session/session-tab-snapshot-gate.test.ts
  • src/renderer/src/lib/agent-launch-pane-verdict-application.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab-host-agents.test.ts
  • src/shared/agent-session-mutation-envelope.test.ts
  • src/shared/agent-session-operation-ledger.test.ts
  • src/shared/agent-session-thread-goal.test.ts
  • src/shared/agent-session-write-failure.test.ts
Files with no reviewable changes: 2
  • mobile/src/session/active-session-tab.test.ts
  • src/shared/agent-session-write-failure.test.ts

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

Walkthrough

The pull request updates tests across the packaged node-pty smoke script, mobile session handling, renderer agent launches, and shared agent-session logic. The changes add subprocess outcome checks, refine session and Markdown assertions, use fake timers for a launch test, and expand mutation-admission and thread-goal assertions. One mobile session test and one shared write-failure test were removed.

Priority: Low

Merge Risk: Minimal · up to cd664

The test updates are mergeable after normal checks; no material behavior or coverage gap remains established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 15 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main changes: removing redundant tests and strengthening session-boundary coverage.
Description check Passed The description clearly explains the changes, rationale, scope, production-code impact, and validation results. It is mostly complete despite not using every template heading explicitly.
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.
Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@OrcaWin
OrcaWin merged commit 3ae885b into main Oct 24, 2026
34 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