From 87520750785d6304b50755cdc47ca40afa7e95da Mon Sep 17 00:00:00 2001 From: seilk Date: Mon, 16 Mar 2026 21:29:23 +0900 Subject: [PATCH 1/2] chore: add .worktrees/ to .gitignore Prevent git worktree contents from being tracked. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 1 + 1 file changed, 1 insertion(+) 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/ From 1c9a1bb5c87f5cb121158f13a8e1cd11f8297e0b Mon Sep 17 00:00:00 2001 From: seilk Date: Mon, 16 Mar 2026 21:45:55 +0900 Subject: [PATCH 2/2] feat(tui): update GPU refresh cycle intervals Change auto-refresh options from 10s/30s/1m/off to 30s/1m/5m/10m/30m/off for more practical polling intervals on production clusters. Co-Authored-By: Claude Opus 4.6 (1M context) --- tui/src/components/Layout.ts | 6 ++++-- tui/src/lifecycle/intervals.ts | 2 +- tui/src/state/global.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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