Skip to content

feat: single-instance guard with socket IPC to reopen existing window - #21

Merged
bosiakov merged 2 commits into
mainfrom
feat/single-instance
Mar 23, 2026
Merged

feat: single-instance guard with socket IPC to reopen existing window#21
bosiakov merged 2 commits into
mainfrom
feat/single-instance

Conversation

@bosiakov

Copy link
Copy Markdown
Contributor
  • Implement infra/instance/ package that uses a Unix domain socket to enforce single-instance behavior
  • On second launch, the new process sends a "show" command to the existing instance and exits
  • Handles stale sockets from crashed instances and race conditions between simultaneous launches
  • Works on macOS, Linux, and Windows (AF_UNIX support in Go)

@bosiakov
bosiakov merged commit e827dce into main Mar 23, 2026
1 check passed
@bosiakov
bosiakov deleted the feat/single-instance branch March 23, 2026 00:41
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