Repository navigation
kicad: invalidate exited IPC servers and bound BeginCommit / snapguard hangs - #1625
Merged
Merged
Conversation
…d hangs Clear stale server socket/PID and readiness on process exit or connection drop, gate server events by launch generation, bound pipe draining and pre-write snapguard snapshots, and probe/invalidate stalled BeginCommit calls. Fixes #1588
i2cjak
pushed a commit
that referenced
this pull request
Nov 23, 2026
…paths Issue #1630 reported KiCad writes hanging for 300s while reads succeeded on macOS v0.16.4 (primarily caused by GCD worker threads blocking SIGCHLD before #1456/#1607 and unbounded snapguard/kipc waits fixed in #1625). This hardens the remaining write-path edge cases on HEAD: - Remove `fallback: true` from embedded GUI timeout replies (`send_gui_raw` and expired-deadline `Msg::Raw`) and check `BeginCommit` timeouts before `fallback` in `ipc::run_on`, so embedded `BeginCommit` timeouts reach `explain_begin_commit_timeout_gui` (and other GUI timeouts surface real errors instead of bogus file-fallback activity entries). - Bound synchronous `design_record_note` / `commit_design` calls (`30s` timeout) via a detached task that still finishes telemetry/STEP warm-up and posts completion or failure in the thread, while distinguishing task drop from timeout. - Use `git::push` (which sets `GIT_TERMINAL_PROMPT=0`) in `canonical::push_upstream`. - Canonicalize `snapshot::repo_lock` keys via `canonical::same_file` (handling macOS `/var` -> `/private/var` symlinks) and preserve `TurnGuard.person` when recomputing an empty-`top` guard in `snapguard::write_guard_within`. - Guard headless `kicad-cli api-server` socket directories against macOS's 104-byte `SUN_LEN` limit with a per-UID `bp-ks-<uid>` fallback and strict `0o700` / non-symlink / UID ownership checks. Fixes #1630
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.
Clear stale server socket/PID and readiness on process exit or connection drop, gate server events by launch generation, bound pipe draining and pre-write snapguard snapshots, and probe/invalidate stalled BeginCommit calls.
Fixes #1588