simplify(pr-ready step 3): cut the clears_stale_saves comments to the why

Each of them had grown a paragraph explaining where the broker flag lives
and when to reach for it, which the config example already covers.
This commit is contained in:
Zach Clendenen
2026-09-15 23:33:39 -05:00
parent 9cef7f2f29
commit 4e327fd72e
4 changed files with 7 additions and 13 deletions

View File

@@ -447,8 +447,6 @@ class StreamingContainer(TypedDict):
memory_card_sync: NotRequired[bool]
# Whether this broker empties the save tree before restoring an archive,
# which is what lets the launch screen offer a save other than the newest.
# Defaults to what the emulator is known to do; set it when running a fork
# or a broker newer than this RomM.
clears_stale_saves: NotRequired[bool]
# Broker dialect. Omitted (or "broker") is the per-emulator mod contract;
# "webstation" is the LSIO webstation container's activate/exit contract.

View File

@@ -165,11 +165,9 @@ _DISC_SWAP_PLATFORMS = frozenset({"dc", "saturn", "segacd", "turbografx-cd", "do
# own UI. The frontend shows this as a static hint, not a control.
_MANUAL_DISC_SWAP_PLATFORMS = frozenset({"ps2"})
# Emulators whose broker empties the save tree before restoring an archive (the
# webstation broker's `clears_stale_saves`), so an older pick still lands. That
# flag lives in the broker's repo, so this is the default a container starts
# from, not the authority: `clears_stale_saves` in config.yml overrides it for
# an operator on a fork or a newer broker.
# Emulators whose broker empties the save tree before restoring an archive, so
# an older pick still lands. The flag lives in the broker's repo, so this is
# only the default: `clears_stale_saves` in config.yml overrides it.
_SAVE_PICKER_EMULATORS = frozenset(
{"eden", "retroarch", "rpcs3", "shadps4", "xemu", "xenia"}
)

View File

@@ -153,9 +153,8 @@ class ResolvedContainer:
memory_card_sync: bool
"""Whole-card sync, already checked against the platform having a card."""
clears_stale_saves: bool
"""Whether this container's broker empties the save tree before restoring
an archive, which is what lets a pick older than the container's own files
land. Defaults to what the emulator is known to do."""
"""Whether the broker empties the save tree before restoring, which is what
lets a pick older than the container's own files land."""
broker_secret: str
library_path: str
"""Where the container sees the ROM library, when it differs from RomM's."""

View File

@@ -293,9 +293,8 @@ const showManualDiscHint = computed(
const selectedState = ref<UserStateSchema | null>(null);
// Only an archive carries a layout the broker can restore from. Re-sorted on
// created_at because user_saves arrives on updated_at, which a rehash moves.
// The rows show created_at too, so the tile that reads newest is the one a
// claim restores by default.
// created_at because user_saves arrives on updated_at, which a rehash moves;
// the rows are dated on created_at to match.
const restorableSaves = computed<SaveSchema[]>(() => {
const emulator = container.value?.emulator?.toLowerCase();
if (!rom.value || !emulator) return [];