Skip to content

Replace --persist flag with REPLACE_PLAYLIST .env, Remove stale persist toggles#191

Open
dammitjeff wants to merge 5 commits into
LumePart:devfrom
dammitjeff:remove-stale-persist-toggles
Open

Replace --persist flag with REPLACE_PLAYLIST .env, Remove stale persist toggles#191
dammitjeff wants to merge 5 commits into
LumePart:devfrom
dammitjeff:remove-stale-persist-toggles

Conversation

@dammitjeff

@dammitjeff dammitjeff commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

PERSIST was incredibly confusing for users and devs to understand whats going on, and made it difficult to debug features since true meant "don't delete" false meant "delete and replace." The UI already had to double-invert just for it to make sense for end-users. Not good lol.

Swapped out the --persist flag with a new env, and wired it up to the settings.jsx page.

REPLACE_PLAYLIST=true - Delete old playlist, Create new one (this is now default)
REPLACE_PLAYLIST=false - Keep old playlist, Create new one alongside old playlist

Also added a one time migration in server.go to help convert existing "persist" values for anyone that was already using it, on startup. Will delete at a later date once people are migrated over.

Also removed stale --persist toggles in the frontend as they're now redundant with the toggles in settings.

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