feat(desktop): capture server exit reason for bug reports (#2699)#660
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.