refactor(deps): migrate Charm TUI ecosystem from v1 to v2#788
Merged
Conversation
0197094 to
6cdd204
Compare
Upgrade bubbletea, bubbles, lipgloss, huh, glamour, and bubblezone to their v2 releases under the charm.land vanity module path. Replace bubbletea-overlay with an inlined compositeOverlay using lipgloss v2 primitives. Scope Go 1.26 (required by huh v2) to the dev shell and build derivation instead of overriding it globally via a nixpkgs overlay. Key API changes: - View() returns tea.View (with AltScreen/MouseMode fields) instead of string - tea.KeyMsg struct replaced by tea.KeyPressMsg (Code/Text/Mod fields) - tea.MouseMsg split into MouseClickMsg/MouseReleaseMsg/MouseWheelMsg - lipgloss.AdaptiveColor removed; replaced by adaptiveColor.resolve(isDark) with isDark obtained from tea.BackgroundColorMsg - Viewport/textinput Width/Height/YOffset become getter/setter methods - progress.WithGradient replaced by progress.WithColors - huh theme uses ThemeFunc returning *huh.Styles with isDark parameter Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
lipgloss v2 does not detect tmux-256color as truecolor-capable, causing degraded color output. Work around by setting TERM in the dev shell until upstream fixes the detection. closes #789 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2270036 to
43c8cbb
Compare
- Bump setup-go from 1.25 to 1.26 in CI and security workflows - Use buildGoModule.override to properly pass Go 1.26 to Nix builds - Update vendorHash for new charm.land v2 dependencies - Remove obsolete stdlib vulnerability ignores from osv-scanner.toml - Disable osv-scanner call analysis (bundled govulncheck is Go 1.25) - Move TERM override to shellHook so it takes effect in interactive shells Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
cpcloud
added a commit
that referenced
this pull request
Mar 19, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
charm.land/*vanity module pathsbubbletea-overlaydependency with an inlinedcompositeOverlayfunction using lipgloss v2 primitivesView() stringtoView() tea.Viewwith AltScreen/MouseMode fields, removingtea.WithAltScreen()/tea.WithMouseCellMotion()program optionstea.KeyMsgstruct withtea.KeyPressMsg(Code/Text/Mod fields) across all key dispatch and teststea.MouseMsginto concreteMouseClickMsg/MouseReleaseMsg/MouseWheelMsgtypeslipgloss.AdaptiveColor(dropped in v2); introduceadaptiveColor.resolve(isDark)pattern withtea.BackgroundColorMsgdetectionprogress.WithGradient→WithColors,viewport.New()takes functional optionsThemeFuncreturning*huh.StyleswithisDarkparameterbuildGoModule.overridecloses #693
🤖 Generated with Claude Code