Skip to content

tui: refresh the VM list every 15s instead of 5s - #1250

Merged
cdalar merged 1 commit into
mainfrom
tui-refresh-15s
Oct 26, 2026
Merged

cdalar merged 1 commit into
mainfrom
tui-refresh-15s

Conversation

@cdalar

@cdalar cdalar commented Oct 26, 2026

Copy link
Copy Markdown
Owner

The TUI's background poll ran every 5 seconds, and on slow providers the spinner was visible for most of each cycle, so the screen looked like it never settled. This slows the tick to 15 seconds.

Actions don't depend on the tick: every completion path (tuiActionMsg, tuiChildDoneMsg, tuiClaudeDoneMsg, success or failure) already refreshes the VM list immediately. A new test, TestTUIActionRefreshes, pins that down, and fails if any of those paths drops its refresh.

Also fixes a comment in tuirepos.go that hardcoded "5s".

🤖 Generated with Claude Code

https://claude.ai/code/session_0147zXiAGyYjVd3r1AvEKxsP

Five seconds redrew the status line too often on slow providers: the
spinner runs while a list is in flight, which on some clouds is most
of the cycle. Fifteen seconds is plenty for a background poll, since
every action's completion (in-process, child command, claude session)
already lists the VMs at once; a test now pins that down so the slower
tick can't leave a row stale.

Claude-Session: https://claude.ai/code/session_0147zXiAGyYjVd3r1AvEKxsP
@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.58%. Comparing base (1d79ad2) to head (02f1dbf).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1250      +/-   ##
==========================================
+ Coverage   47.57%   47.58%   +0.01%     
==========================================
  Files          81       81              
  Lines        9341     9341              
==========================================
+ Hits         4444     4445       +1     
+ Misses       4897     4896       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cdalar
cdalar merged commit 111affd into main Oct 26, 2026
13 checks passed
@cdalar
cdalar deleted the tui-refresh-15s branch October 26, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ 换网址