Skip to content

test: exercise real platform, provider, and spool boundaries - #33010

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​46 $\color{#cf222e}{\Huge{\mathbf{−}}}$​24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22
Prod 0 0 0 0

Several regression tests name behavior their fixtures never exercise: the Electron platform loop changes an ignored option, provider tests miss reset or waiting transitions, and ASCII spool data cannot distinguish byte offsets from character counts.

Exercise consumed platform keys, returned Jcode prompts across turns and panes, Hermes reset boundaries, independent ZCode waiting-to-working transitions, UTF-8 spool offsets, and actual WSL envelope shedding before checking caller immutability. No production code changes.

Validation: 144 tests passed across 17 suites with no skips; Node typecheck, changed-code quality and formatting passed. Isolated regression probes authenticate each repaired gap; retained provider and publication controls remain effective.

@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: c414e092-fc49-487a-9edc-7418a33f5886
Commits

Reviewing files that changed from the base of the PR and between 3b380dd and 5d60fed.

Files selected for processing: 6
  • config/scripts/shared-electron-dist-cache.test.ts
  • src/shared/agent-hook-listener/providers/hermes-events.test.ts
  • src/shared/agent-hook-listener/providers/jcode-turn-prompt.test.ts
  • src/shared/agent-hook-listener/providers/zcode-events.test.ts
  • src/shared/agent-hook-spool-read.test.ts
  • src/wsl-guest/agent-hook-envelope-publication.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 for Electron distribution cache paths and agent-hook behavior. The agent-hook tests cover Hermes event normalization, JCode prompt refresh and pane isolation, ZCode permission event transitions, spool parsing with a Unicode pane key, and envelope shed-field reporting.

Priority: Low

Merge Risk: Minimal · up to 5d60f

The requested byte-offset check is already present. No issue identified here needs to block merging.

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 gaps, the updated coverage, and validation results. It does not follow most required template sections and omits the linked issue, explicit visual-proof statement, te… Add the required template sections. Include an actual linked issue after "Fixes #", write "N/A" with a reason under Visual Proof, document manual and automated testing and tested platforms, complete AI Disclosure when applicable, address Re…
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 2 functions across 6 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 summarizes the main change: adding tests for platform, provider, spool, and boundary behavior.
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 gaps, the updated coverage, and validation results. It does not follow most required template sections and omits the linked issue, explicit visual-proof statement, testing checklist, review details, notes, and final checklist.

Resolution

Add the required template sections. Include an actual linked issue after "Fixes #", write "N/A" with a reason under Visual Proof, document manual and automated testing and tested platforms, complete AI Disclosure when applicable, address Review, Agent skill upstream boundary, Notes, and Checklist items, and expand ELI5, What Changed, and Why as needed.

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 1fd5020 into main Oct 24, 2026
32 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