Skip to content

feat: add deck auto-refresh polling#54

Merged
bdougie merged 3 commits intomainfrom
feat/deck-auto-refresh
Feb 6, 2026
Merged

feat: add deck auto-refresh polling#54
bdougie merged 3 commits intomainfrom
feat/deck-auto-refresh

Conversation

@bdougie
Copy link
Contributor

@bdougie bdougie commented Feb 5, 2026

Summary

  • add configurable auto-refresh polling for deck TUI using Bubble Tea ticks
  • refresh overview or session detail without resetting cursor or sort
  • validate refresh interval and allow disabling with --refresh 0

Testing

  • make format

@jpmcb jpmcb self-requested a review February 5, 2026 15:08
Comment on lines 105 to 107
if c.refresh < 0 {
return errors.New("refresh must be zero or greater")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could use a uint here and just check that c.refresh != 0 but could make an argument for a uint not being as intuitive to the end user. I believe in Cobra, this just gets surfaced as cmd.Flags().UintVar(...)

@bdougie bdougie merged commit fd58742 into main Feb 6, 2026
9 checks passed
@bdougie bdougie deleted the feat/deck-auto-refresh branch February 6, 2026 14:25
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.

2 participants