Skip to content

A plain second launch runs a second instance, and the two clobber each other's settings #489

Description

@erikdarlingdata

From the 2026-09-02 adversarial review (found by the editor-cluster pass, left unfixed as a design decision).

Program.cs only forwards to a running instance when launched WITH an argument; a bare second launch runs fully. Each process holds a whole-file settings snapshot from its own start and Save writes the whole file, so whichever instance exits last overwrites the other's open_tabs and any other settings changed since. AtomicFile prevents torn files, not lost updates. Instance B also restores nothing, since A cleared the list at its own startup.

Options worth weighing: single-instance the bare launch (surface the running window, like the with-argument path), or per-key merge on save. The first matches what the pipe already does and is probably the honest fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions