Skip to content

Conversation

naps62
Copy link
Member

@naps62 naps62 commented Jul 25, 2025

Fast mode would initially render to false, and would trigger a submission with that value, resulting in the value not persisting across restarts

@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 15:47
@naps62 naps62 added the B-bugfix Something is working again label Jul 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the fast mode toggle was rendering with a false default value before settings were loaded, causing unintended submissions that prevented the setting from persisting across application restarts.

  • Replaces manual form handling with an AutoSubmitSwitch component
  • Adds a loading check to prevent rendering until settings are available
  • Removes unnecessary form validation and watch logic

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
gui/src/store/useSettings.ts Adds debug logging for fastMode reloading
gui/src/components/QuickFastModeToggle.tsx Refactors to use AutoSubmitSwitch and prevents premature rendering

@naps62 naps62 merged commit af0b29c into main Jul 25, 2025
7 checks passed
@naps62 naps62 deleted the fix-fast-mode branch July 25, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bugfix Something is working again
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant