diff --git a/.gitignore b/.gitignore index 608d899..826475b 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,5 @@ opencode-onboard-redesign.txt .redteam/ .omc/ .gitworktrees/ +.worktrees/ .localdevtest/ diff --git a/tui/src/components/Layout.ts b/tui/src/components/Layout.ts index 900b53f..64b8ed4 100644 --- a/tui/src/components/Layout.ts +++ b/tui/src/components/Layout.ts @@ -169,9 +169,11 @@ export function renderGlobalFooter() { } const intervalLabel = S.autoRefreshSec === 0 ? "off" - : S.autoRefreshSec === 10 ? "10s" : S.autoRefreshSec === 30 ? "30s" - : "1m"; + : S.autoRefreshSec === 60 ? "1m" + : S.autoRefreshSec === 300 ? "5m" + : S.autoRefreshSec === 600 ? "10m" + : "30m"; const refreshWidget = Box( { diff --git a/tui/src/lifecycle/intervals.ts b/tui/src/lifecycle/intervals.ts index 1b4d99c..4040cd7 100644 --- a/tui/src/lifecycle/intervals.ts +++ b/tui/src/lifecycle/intervals.ts @@ -38,7 +38,7 @@ export function restartRefreshInterval(): void { } export function cycleAutoRefresh(): void { - const cycle: Array<0 | 10 | 30 | 60> = [10, 30, 60, 0]; + const cycle: Array<0 | 30 | 60 | 300 | 600 | 1800> = [30, 60, 300, 600, 1800, 0]; const next = cycle[(cycle.indexOf(S.autoRefreshSec) + 1) % cycle.length]!; S.autoRefreshSec = next; restartRefreshInterval(); diff --git a/tui/src/state/global.ts b/tui/src/state/global.ts index 762202d..7aced31 100644 --- a/tui/src/state/global.ts +++ b/tui/src/state/global.ts @@ -60,7 +60,7 @@ export const S = { pollError: "", isPolling: false, isRefreshing: false, - autoRefreshSec: 30 as 0 | 10 | 30 | 60, + autoRefreshSec: 30 as 0 | 30 | 60 | 300 | 600 | 1800, bootLoading: true, // Navigation