Repository navigation
Conversation
📝 WalkthroughWalkthroughUpdates 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d53b17a8-53ba-4646-8231-4c01a047d88a
📒 Files selected for processing (2)
src/main/startup/configure-process.test.tssrc/main/startup/configure-process.ts
| delete process.env.ORCA_E2E_USER_DATA_DIR | ||
| vi.mocked(app.disableHardwareAcceleration).mockClear() | ||
|
|
||
| for (const platform of ['darwin', 'linux', 'win32'] as const) { | ||
| setPlatform(platform) | ||
| vi.mocked(app.commandLine.appendSwitch).mockClear() |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Restore process-global test state.
This test deletes ORCA_E2E_USER_DATA_DIR and leaves process.platform set to win32, so later tests can inherit a fake platform or altered E2E configuration. Capture the original values and restore them in finally/afterEach, including when an assertion fails.
Proposed cleanup
+ const originalPlatform = process.platform
+ const originalUserDataDir = process.env.ORCA_E2E_USER_DATA_DIR
+
+ try {
delete process.env.ORCA_E2E_USER_DATA_DIR
// existing loop and assertions
+ } finally {
+ setPlatform(originalPlatform)
+ if (originalUserDataDir === undefined) {
+ delete process.env.ORCA_E2E_USER_DATA_DIR
+ } else {
+ process.env.ORCA_E2E_USER_DATA_DIR = originalUserDataDir
+ }
+ }Also applies to: 421-422
|
Superseded by #10643 — same one-line fix, rebased onto current Note for anyone looking at the red Leaving this open for @OrcaWin to close (original authorship) — happy to close it myself if preferred. |
|
Superseded by #10643, which merged to I took this over on a Mac, rebased onto current
Worth noting: VS Code shipped this identical switch for this identical bug (microsoft/vscode#288141, merged Jan 2026). Thanks for the original diagnosis and patch — the darwin-only scoping came straight from here. Closing this one out in favour of the merged PR. |
|
Superseded — this exact fix landed on
Verified on The diff here is a subset of what shipped, so there is nothing left to merge. Thanks for the fix and the diagnosis — closing as already-landed, not as rejected. |
Summary
VS Code traced the same rendering corruption to Graphite recording failures and shipped this targeted workaround: microsoft/vscode#284162
Testing
pnpm exec vitest run --config config/vitest.config.ts src/main/startup/configure-process.test.tspnpm exec oxlint src/main/startup/configure-process.ts src/main/startup/configure-process.test.tspnpm run typecheck:nodepnpm run check:max-lines-ratchetgit diff --check