Skip to content

fix: reset Electron backend health state after process failures #7

@ubugeeei

Description

@ubugeeei

Finding

Electron caches backendHealthyPromise globally and never clears it when the backend exits or a health check times out. A failed startup can poison later render attempts in the same app session.

Evidence

  • electron/main.ts waitForHealthz returns cached backendHealthyPromise.
  • backendProcess.on('exit') only clears backendProcess, not backendHealthyPromise.
  • The timeout rejection path leaves the rejected promise cached.

Acceptance criteria

  • Clear backendHealthyPromise on backend exit/error and after health timeout/failure.
  • Preserve successful health caching while the backend process remains alive.
  • npm run build:electron passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions