Skip to content

test: consolidate refusal cases and repair boundary coverage - #33098

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

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

Several tests passed while missing the boundary or delivery behavior named in their titles. Strengthen context-clear and schema limits, hibernation reset/visibility behavior, mobile timing and repeated-message handling, and packaging checks. Consolidate overlapping refusal cases while preserving every unique input, and add a positive daemon-protocol round trip to complement rejection coverage.

Audited 24 test sources: one duplicate declaration removed and one useful protocol declaration added (111 declarations remain). No production changes.

Validation: 177 focused cases pass without skips; 17 faults that passed the original tests are caught by the repaired coverage. Node/CLI/web typechecks, mobile test typecheck ratchet, changed-code quality, formatting, and commit hooks pass. The focused run covers shared models, happy-dom coordination and temporary packaging/IPC fixtures; it does not launch the Orca UI or native device tests.

@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: 231df6db-465e-416c-b39b-83012c6b9de2
Commits

Reviewing files that changed from the base of the PR and between b33ad1b and ce7731b.

Files selected for processing: 14
  • config/scripts/trim-windows-icon-source.test.mjs
  • config/scripts/verify-cli-bin.test.mjs
  • config/scripts/verify-linux-glibc-payloads.test.mjs
  • config/scripts/verify-packaged-daemon-entry.test.mjs
  • mobile/src/session/mobile-native-chat-answer-stepping.test.ts
  • mobile/src/session/mobile-native-chat-noise.test.ts
  • mobile/src/session/mobile-native-chat-pair-window.test.ts
  • mobile/src/session/mobile-native-chat-pending-echo.test.ts
  • src/renderer/src/lib/agent-hibernation-confirmation.test.ts
  • src/renderer/src/lib/agent-hibernation-pane-age.test.ts
  • src/renderer/src/lib/agent-hibernation-visibility.test.ts
  • src/shared/agent-session-context-clear.test.ts
  • src/shared/agent-session-context-usage-schema.test.ts
  • src/shared/agent-session-definitive-refusal.test.ts

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

Walkthrough

The changes update tests across configuration scripts, mobile chat, renderer hibernation, and shared session code. The tests add boundary cases and verify specific outputs, message sequences, cleanup, and state behavior. No production code changes are described.

Priority: Low

Merge Risk: Minimal · up to ce773

The changed tests retain the checked refusal coverage, and no merge-blocking issue is established. Merge after normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the test-scope changes and reports validation results, but it omits most required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing che… Complete the required template sections. Add an actual linked issue under “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document manual and automated testing with platforms, complete the AI Disclosure section as appli…
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 14 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main changes: consolidating refusal cases and repairing boundary coverage across the test suite.
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 explains the test-scope changes and reports validation results, but it omits most required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checkboxes, Review, Notes, and Checklist confirmations.

Resolution

Complete the required template sections. Add an actual linked issue under “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document manual and automated testing with platforms, complete the AI Disclosure section as applicable, address review and compatibility notes, and mark or explain the checklist items.

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 2a20d2d 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