Skip to content

dev: close the shared Maka Dev profile launch race (atomic reservation / ownership handshake) #3539

Description

@Astro-Han

Follow-up to #3359 (shared 'Maka Dev' profile owner gate).

The owner gate reads a process snapshot via pgrep/ps; the single-instance lock is taken by Electron at spawn time, AFTER the gate. Two worktrees launching nearly simultaneously can both pass the gate; the loser is focused onto the winner's window or lands on never-started.

Closing the window needs one of:

  • a profile-level atomic reservation (reserve the userData lock before spawn, release on handoff/failure), or
  • a post-spawn ownership handshake (after spawn, verify the running instance is the one we started; if not, surface the actual owner).

Documented in apps/desktop/README.md (owner gate section).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions