Skip to content

test: remove duplicate mobile coverage and strengthen regression assertions - #33106

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​109 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58
Prod 0 0 0 0

Several tests could pass while the claimed behavior was broken: duplicate followup writes, stale hibernation state, skipped mobile paging requests, lost journal frames, and misattributed RPC errors. This change strengthens those assertions, checks Cursor resume arguments end to end, and removes one mobile tool-label test already covered by the shared suite. It also replaces one real event-loop wait with fake timers and removes capability-flag assertions from a terminal-delivery case.

The review covers 36 additional sources (203→202 test declarations). Fifteen original-passing fault probes demonstrate repaired assertion gaps. No production code changes.

Validation: 297 combined checkout cases pass with zero skips; the 32-case shared overlap suite also passes. Node/CLI/web typechecks, mobile test-typecheck ratchet, changed-code quality, formatting and commit hooks pass. Proposal fault checks demonstrate repaired gaps and retained regression coverage; audit evidence and tracker remain local.

@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: ffe17671-8fc3-4c55-824d-bd97ead028ce
Commits

Reviewing files that changed from the base of the PR and between 1275229 and 0b41175.

Files selected for processing: 16
  • mobile/src/session/mobile-native-chat-open-file.test.ts
  • mobile/src/session/mobile-native-chat-page-rejection.test.ts
  • mobile/src/session/mobile-native-chat-terminal-stream.test.ts
  • mobile/src/session/mobile-native-chat-terminal-write-lock.test.ts
  • mobile/src/session/mobile-native-chat-tool-summary.test.ts
  • src/main/runtime/rpc/dispatcher-request-parsing.test.ts
  • src/main/runtime/rpc/runtime-client-capabilities.test.ts
  • src/renderer/src/lib/agent-followup-delivery.test.ts
  • src/renderer/src/lib/agent-hibernation-coordinator.test.ts
  • src/renderer/src/lib/agent-hibernation-planner.test.ts
  • src/shared/agent-session-attachments.test.ts
  • src/shared/agent-session-background-task-state-admission.test.ts
  • src/shared/agent-session-journal-producer.test.ts
  • src/shared/agent-session-journal-schemas.test.ts
  • src/shared/agent-session-provider-context.test.ts
  • src/shared/agent-session-resume-cursor.test.ts

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

Walkthrough

The pull request updates tests across mobile native chat, runtime RPC, renderer agent, and shared session code. Changes include deterministic timer handling, more specific request and state assertions, parser boundary cases, session-state coverage, and tokenized resume-command checks. The changes are confined to tests.

Priority: Low

Merge Risk: Minimal · up to 0b411

The test updates appear ready to merge after normal checks; no specific behavior or coverage regression remains identified.

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 1 functions across 16 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 names the main change: removing duplicate mobile test coverage and strengthening regression assertions. The raw summary confirms both parts. The title is accurate and concise.
Description check Passed The description follows the template sections that matter most: a plain-language overview, a summary of the mechanism, validation results, and a note that no production code changed. It leaves the ELI…
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 follows the template sections that matter most: a plain-language overview, a summary of the mechanism, validation results, and a note that no production code changed. It leaves the ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, and AI Disclosure sections unaddressed or unfilled. It does not state a linked issue (the template requires one for outside contributors), and the Visual Proof section is missing its N/A justification. The description also does not state which platforms were manually tested.

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 abc5737 into main Oct 24, 2026
34 checks passed
@OrcaWin
OrcaWin deleted the OrcaWin/comprehensive-test-audit-74 branch October 24, 2026 09:29
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