Repository navigation
tui: refresh the VM list every 15s instead of 5s - #1250
Merged
Merged
Conversation
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
cdalar
force-pushed
the
tui-refresh-15s
branch
from
October 26, 2026 12:27
5368a83 to
02f1dbf
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.gothat hardcoded "5s".🤖 Generated with Claude Code
https://claude.ai/code/session_0147zXiAGyYjVd3r1AvEKxsP