Skip to content

fix: persist enabled scripts#107

Open
nanookclaw wants to merge 1 commit into
RLBot:masterfrom
nanookclaw:fix/persist-enabled-scripts
Open

fix: persist enabled scripts#107
nanookclaw wants to merge 1 commit into
RLBot:masterfrom
nanookclaw:fix/persist-enabled-scripts

Conversation

@nanookclaw
Copy link
Copy Markdown

Summary

Persists script toggle state across GUI restarts by loading enabledScripts from localStorage and writing it back whenever the state changes.

The UI already toggles scripts by script.info.config.settings.agentId, so match start now uses the same key when building StartMatchOptions.scripts. I also removed the stale-key cleanup during script discovery: missing entries are harmless, and keeping them avoids wiping saved selections if script discovery temporarily returns an incomplete list.

Closes #105

Verification

  • git diff --check
  • pnpm install --frozen-lockfile
  • pnpm run build (blocked: generated Wails frontend/bindings are absent in a fresh checkout, so Vite cannot resolve ../bindings/gui)

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.

GUI does not remember which scripts were enabled last session

1 participant