Skip to content

Commit

Permalink
fix(settings): update loop threshold defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkcarreno committed Oct 10, 2024
1 parent b04e18d commit 798d1c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/editor/stores/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const _useSettingsStore = create<SettingsState>()(
(set) => ({
auto_run: false,
auto_run_timeout: 1500,
loop_safeguard_threshold: 10,
loop_safeguard_threshold: 1000,
loop_safeguard_timeout: 30000,
persist_logs: false,
layout_direction: 'horizontal',
Expand All @@ -51,6 +51,7 @@ const _useSettingsStore = create<SettingsState>()(
migrate: (persistedState, version) => {
if (version === 0) {
(persistedState as SettingsState).vimMode = false;
(persistedState as SettingsState).loop_safeguard_threshold = 1000;
}

return persistedState;
Expand Down

0 comments on commit 798d1c9

Please sign in to comment.