Skip to content

fix: preserve capital letters in group names and dismiss stale version banner#593

Open
Myasir92 wants to merge 1 commit intoasheshgoplani:mainfrom
Myasir92:fix/capital-letters-and-stale-version-banner
Open

fix: preserve capital letters in group names and dismiss stale version banner#593
Myasir92 wants to merge 1 commit intoasheshgoplani:mainfrom
Myasir92:fix/capital-letters-and-stale-version-banner

Conversation

@Myasir92
Copy link
Copy Markdown

@Myasir92 Myasir92 commented Apr 14, 2026

Summary

Fixes #594

  • Bug 1 — Capital letters in group/session names: Removed strings.ToLower() from path generation in CreateGroup, CreateSubgroup, and RenameGroup so that group paths preserve the original casing (e.g., "MyProject" → path "MyProject" instead of "myproject").
  • Bug 2 — Stale version update banner: Added InvalidateCache() that deletes the update cache after a successful agent-deck update, and added a periodic re-check (every 5 minutes) in the TUI so the yellow banner auto-dismisses when the binary has been updated externally (e.g., via terminal or brew upgrade).

Files Changed

  • internal/session/groups.go — removed strings.ToLower() from 3 path-generation sites
  • internal/update/update.go — added InvalidateCache() + called it after successful update
  • internal/ui/home.go — added lastUpdateCheck field, periodic re-check tick, and banner dismissal logic
  • internal/session/groups_test.go — updated path expectations to match case-preserving behavior
  • cmd/agent-deck/group_cmd_test.go — updated path expectations to match case-preserving behavior

Test plan

  • Create a group with mixed-case name (e.g., "MyProject") — verify it displays with original casing
  • Create a subgroup with capitals — verify same
  • Rename a group to include capitals — verify same
  • Run go test ./internal/session/... — all group tests pass
  • Run go test ./cmd/agent-deck/... — all group reorder tests pass
  • Start TUI → trigger version banner → update via terminal → wait ~5 min → verify banner dismisses
  • Run go test ./internal/update/... — update tests pass

🤖 Generated with Claude Code

…n banner

Group/session names with capital letters were being forced to lowercase
in their paths via strings.ToLower(), causing display issues. Removed
the forced lowercasing so paths now preserve the original casing.

Also fixed the stale version update banner that persisted after updating
agent-deck via terminal while the TUI was running. Added cache
invalidation after successful updates and periodic re-checks (every 5
minutes) in the TUI to auto-dismiss the banner.

Committed by Muhammad Yasr
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.

Bug: Capital letters not preserved in group/session names & stale version banner after update

1 participant