Skip to content

NSIS installer kills running opencode CLI processes during update #35331

Closed as not planned

Description

@edisonzerolam

Description

When updating via the Desktop app's auto-updater, the NSIS installer kills all opencode.exe processes including the CLI session, causing data loss.

Steps to reproduce

  1. Have opencode CLI running
  2. Desktop app downloads and installs an update
  3. NSIS installer terminates all opencode.exe processes

OpenCode version

1.17.11

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. edisonzerolam commented on Jul 4, 2026

    @edisonzerolam
    Author

    Fix: Before \quitAndInstall, enumerate all \opencode.exe\ processes via \wmic, exclude self, and \ askkill\ gracefully before the NSIS installer kills them.

    Branch: \edisonzerolam/opencode:fix/win32-desktop-nsis-kill
    Cherry-pick:
    \
    git fetch https://github.com/edisonzerolam/opencode fix/win32-desktop-nsis-kill
    git cherry-pick FETCH_HEAD
    \\

    Files:

    • \packages/desktop/src/main/updater.ts\ — \gracefulShutdownCliProcesses()\
    • \packages/desktop/src/main/updater-controller.ts\ — return type update
  3. github-actions commented on Sep 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions