fix: restore service references breaking ci #16495
main fromrefs/pull/16495/head·merged by maria-rcks View on GitHubtwo merged changes left stale service references: screenshot capture lost its effect crypto service lookup, and four editor-launch tests still called a helper renamed to layerTest. these broke main's typecheck and desktop/server tests.
restore the crypto lookup, provide node crypto to the existing preview manager tests, and use the existing editor test helper.
verified on blacksmith at 421f7e925f: desktop and server typechecks; both affected suites (132 passed, one existing windows-only test skipped on linux); targeted lint and formatting. all eight required github checks passed, including the full ci aggregate. both independent reviewers approved the final head, and coderabbit completed with no actionable findings. the desktop runtime supplies crypto through NodeServices.layer.
model: gpt-6.1-sol; harness: codex.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
421f7e9Macroscope's review found this PR approvable — This narrowly scoped fix restores a missing Crypto service dependency for existing screenshot artifact naming and resolves the associated CI/type-check issue. The required service is already supplied by the desktop runtime and tests, with no broader behavior or configuration changes.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
maria-rcks changed the title
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
88e91c4f-9e1a-4c00-98d6-da8589674d2e
📥 Commits
Reviewing files that changed from the base of the PR and between ac8e9453ca0948469ccf5651b765086d8d9ecd64 and 421f7e925f6fd575c5052fc13db0cfad250f408e.
📒 Files selected for processing (3)
apps/desktop/src/preview/Manager.test.tsapps/desktop/src/preview/Manager.tsapps/server/src/process/externalLauncher.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The preview manager now retrieves Effect’s Crypto service for screenshot artifact IDs, and its tests provide Node platform crypto. Three external launcher tests now use
layerTestinstead oftestLayer.Changes#
Preview screenshot crypto
Layer / File(s) Summary Crypto service and test environment
apps/desktop/src/preview/Manager.ts,apps/desktop/src/preview/Manager.test.tsThe preview manager retrieves the Crypto service for screenshot artifact UUID generation. The shared test layer provides Node platform crypto. External launcher test layers
Layer / File(s) Summary Bundle test layer calls
apps/server/src/process/externalLauncher.test.tsThe versioned macOS bundle, macOS bundle-name-boundary, and VS Code Insiders tests now call layerTestinstead oftestLayer. Assertions are unchanged.Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
421f7No actionable issue is established in these changes. Confirm the desktop production layer provides Crypto and complete the pending focused checks before merging.
Security Architecture Review#
Security architecture risk: 🔵 Low · up to
421f7The change restores screenshot ID generation and repairs test setup without adding an external interface or broader privileges. Risk is low, with one remaining uncertainty: whether the production runtime supplies the required crypto service.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
- inferred — The inspected production change affects the existing desktop preview service and local screenshot artifacts. It does not add a caller, expand the screenshot interface, or alter the server launcher implementation.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation 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. Title check ✅ Passed The title clearly identifies the fix for stale service references that broke CI. Description check ✅ Passed The description explains the problem, the changes, and focused verification. It does not include the required scope and approval details or explain why this small fix qualifies for an exemption, but t… ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.maria-rcks merged this17c0878
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed