Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ opencode-onboard-redesign.txt
.redteam/
.omc/
.gitworktrees/
.worktrees/
.localdevtest/
6 changes: 4 additions & 2 deletions tui/src/components/Layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
2 changes: 1 addition & 1 deletion tui/src/lifecycle/intervals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tui/src/state/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading