Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: restore service references breaking ci #16495

Mergedmaria-rcksmerged 3 commits intomain fromrefs/pull/16495/headmerged by maria-rcks View on GitHub

maria-rckscommented

two 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

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 421f7e9

      Macroscope'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.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. maria-rcks changed the title

    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      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.ts
      • apps/desktop/src/preview/Manager.ts
      • apps/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 layerTest instead of testLayer.

      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.ts
      The 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.ts
      The versioned macOS bundle, macOS bundle-name-boundary, and VS Code Insiders tests now call layerTest instead of testLayer. Assertions are unchanged.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~8 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 421f7

      No 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 421f7

      The 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 nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly identifies the fix for stale service references that broke CI.
      Description check✅ PassedThe 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.
    5. maria-rcks merged this17c0878

    6. maria-rcks closed this

Sign in to join this conversation.