Skip to content

design(native): coordinate desktop/CLI daemon takeover and independent root mutations #21

Open

Description

@Seagulls

Summary

A per-home daemon-presence lock proposed in upstream #139 blocks legitimate OpenSave desktop startup when opensave-cli daemon is already running in Steam Deck Game Mode. The upstream maintainer requested removal from Liquid-co#139 and a separate approach in which the desktop can request the existing daemon to quit/take over safely.

Minimal contracts to design and verify

  • Existing desktop/Game Mode startup works; a second daemon should not silently corrupt the same home.
  • Takeover must coordinate graceful stop/drain, not terminate while an admitted native writer is active; timeout/failure should remain fail-closed.
  • Root editing by an independent CLI process must not directly mutate SQLite beside an active daemon, including absent, stale or unreachable daemon.addr. The existing default-port probe alone is insufficient.
  • Preserve legitimate offline CLI editing when no daemon owns the home, under a cross-process acquisition boundary.
  • Cover mixed-version limitations honestly.
  • Use two real independently built CLI/daemon processes, with disposable home/SQLite and synthetic save files, for acceptance.

Scope separation

Do not add this lifecycle/ownership work back into Liquid-co#139. Keep independent-CLI acceptance in upstream #136 explicitly outstanding until independently proven.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions