Skip to content

fix(desktop): prevent renderer crash on windows during app exit (#2908) - #3352

Closed
VisheshDDev wants to merge 1 commit into
different-ai:devfrom
VisheshDDev:fix/windows-renderer-crash
Closed

VisheshDDev wants to merge 1 commit into
different-ai:devfrom
VisheshDDev:fix/windows-renderer-crash

Conversation

@VisheshDDev

Copy link
Copy Markdown

Summary
Fixes #2908

On Windows, closing or quitting the desktop app could trigger a native access violation crash when showShutdownScreen() attempted to interact with a destroyed renderer window or when active pty terminal sessions emitted IPC messages into destroyed web contents.

Changes

  • Added win.webContents?.isDestroyed() guard inside showShutdownScreen().
  • Ensured active terminal processes are explicitly killed during disposeRuntimeBeforeQuit().

Testing

  • Verified typecheck with pnpm --filter @openwork/desktop typecheck:electron.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, v0 Jul 30, 2026 1:17pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 30, 2026 1:17pm

@VisheshDDev

Copy link
Copy Markdown
Author

@benjaminr-bi Submitted the fix for #2908! Prevents the Windows renderer access violation on app exit by guarding destroyed webContents and terminating lingering terminal processes during shutdown.

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics July 30, 2026 13:16 Inactive
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@VisheshDDev is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Contributor screen: passed

Commit 60c7934823 · run

No hidden characters, dependency, database or obfuscation concerns.

Nothing else runs yet. A maintainer reviews the changes then comments /test to start the AI screen, the tests and the Warden security review.

@OmarMcAdam

Copy link
Copy Markdown
Member

closed due to age, please reopen and tag me if still valid

@OmarMcAdam OmarMcAdam closed this Oct 28, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – openwork-landing — 60c79348 Deployed Jul 30, 2026 by vercel[bot]
Preview – openwork-diagnostics — 60c79348 Deployed Jul 30, 2026 by vercel[bot]
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.

[Bug]: Windows: hard throw in getComputerUseMcpCommand() crashes desktop renderer (blank screen) on 0.17.30 and 0.17.32

2 participants