Skip to content

Upgrade fly to charm v2 - #9553

Merged
taylorsilva merged 2 commits into
masterfrom
upgrade-charm
Apr 27, 2026
Merged

taylorsilva merged 2 commits into
masterfrom
upgrade-charm

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Followed https://github.com/charmbracelet/bubbletea/blob/main/UPGRADE_GUIDE_V2.md

Functionally nothing changes. I had to update our stdin stuff again. On Unix-based systems, raw os.stdin works best. For Windows, we need to wrap os.stdin to get tests to pass, but in real-world scenarios we don't want to use the wrapped stdin. I've manually verified that fly on windows works, no funky terminal stuff happens. See the comment in fly/commands/internal/interaction/stdin_windows.go for more details.

tests broke again and figured out we need to set the initial window size
so the bubbletea render actually prints stuff out. We also don't need to
do the wrapper stuff on stdin anymore.

Signed-off-by: Taylor Silva <[email protected]>
lots of fun hacky stdin stuff. I manually verified that raw os.stdin on
windows works with fly hijack and other basic prompts, thus the FLY_TEST
env check. Tests get the wrapped os.stdin to work around all the
smartness in bubbletea, and outside tests we pass raw os.stdin so all
the smartness can SHINE!

So much work just to get these tests passing on Unix and Windows
systems!!

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team April 25, 2026 04:22
@taylorsilva taylorsilva added this to the v8.2.0 milestone Apr 25, 2026
@taylorsilva
taylorsilva merged commit abaff28 into master Apr 27, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the upgrade-charm branch April 27, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant