Skip to content

feat(desktop): capture server exit reason for bug reports (#2699)#660

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 17, 2026
Merged

feat(desktop): capture server exit reason for bug reports (#2699)#660
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

Record why the server process last exited (exit code + Electron process-gone reason) to state/last-server-exit.json in the report bundle, so a crash or OS OOM-kill can be told apart from a clean shutdown. Until now a bundle only showed the port as unreachable, identical for a crash and a managed stop.

A pure recorder joins the two Electron signals that describe the same death and can arrive in either order: the utilityProcess exit code (per-window, knows the lockDir) and the child-process-gone reason (killed/crashed/oom/clean-exit, no lockDir). Fail-soft, and the record holds only code, reason, pid, and a timestamp.

Covers the dev utilityProcess server; the packaged detached server is not observed by the parent and stays a follow-up.

GitOrigin-RevId: 95380ab9c5a625ea5112099fd3c5d805d2bbe5c6
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit 647a3f6 into main Jul 17, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 17, 2026 00:48
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.

1 participant