A patch release, but it's a good one! Idle Bubble Tea programs now really sit idle, the terminal gets restored after just about anything goes wrong, and a long list of renderer bugs is gone.
Rest light!
The renderer no longer redraws when there's nothing to draw. After about half a second without changes, the frame ticker stops, and it picks right back up the moment something does change. Views that are empty or taller than the screen also skip redraws when they haven't changed.
Restoring in many more cases!
Bubble Tea now cleans up properly when:
A command in Batch or Sequence panics
Run returns early with an error
RestoreTerminal swaps the input reader
Run finishes and the TTY files it opened for input need closing
And when you come back from suspending a program, Unicode mode comes back with it, so wide characters and emoji line up just like before!
Smoother rendering
Resizing the terminal no longer flashes a stale frame.
The view's height is right from the very first frame.
Lines printed above your view keep their exact width, and they're measured the same way as the rest of your program.
Running a subprocess with Exec clears your view first, so it doesn't leave a ghost behind.
Big thanks to everyone who contributed to this release, and especially to the many first-time contributors! 💘
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [charm.land/bubbletea/v2](https://github.com/charmbracelet/bubbletea) | `v2.1.1` → `v2.1.2` |  |  |
---
### Release Notes
<details>
<summary>charmbracelet/bubbletea (charm.land/bubbletea/v2)</summary>
### [`v2.1.2`](https://github.com/charmbracelet/bubbletea/releases/tag/v2.1.2)
[Compare Source](https://github.com/charmbracelet/bubbletea/compare/v2.1.1...v2.1.2)
### Calmer, cooler, sturdier 🧋
A patch release, but it's a good one! Idle Bubble Tea programs now really sit idle, the terminal gets restored after just about anything goes wrong, and a long list of renderer bugs is gone.
#### Rest light!
The renderer no longer redraws when there's nothing to draw. After about half a second without changes, the frame ticker stops, and it picks right back up the moment something does change. Views that are empty or taller than the screen also skip redraws when they haven't changed.
#### Restoring in many more cases!
Bubble Tea now cleans up properly when:
- A command in `Batch` or `Sequence` panics
- `Run` returns early with an error
- `RestoreTerminal` swaps the input reader
- `Run` finishes and the TTY files it opened for input need closing
And when you come back from suspending a program, Unicode mode comes back with it, so wide characters and emoji line up just like before!
#### Smoother rendering
- Resizing the terminal no longer flashes a stale frame.
- The view's height is right from the very first frame.
- Lines printed above your view keep their exact width, and they're measured the same way as the rest of your program.
- Running a subprocess with `Exec` clears your view first, so it doesn't leave a ghost behind.
Big thanks to everyone who contributed to this release, and especially to the many first-time contributors! 💘
Read more below! 👇🏻
Have a nice day,
Charm XX 🌟
#### Changelog
##### Fixed
- [`9806b0c`](https://github.com/charmbracelet/bubbletea/commit/9806b0c763fb391cc2c4ffbb3aa243b901a812ef): fix(exec): clear View before releasing terminal for subprocess ([#​1762](https://github.com/charmbracelet/bubbletea/issues/1762)) ([@​zhaoxinyi02](https://github.com/zhaoxinyi02))
- [`418cada`](https://github.com/charmbracelet/bubbletea/commit/418cada8885b84de11160f103534a5bba0fd2d5d): fix(logging): preserve Unicode prefix spacing ([#​1759](https://github.com/charmbracelet/bubbletea/issues/1759)) ([@​Ricardo-M-L](https://github.com/Ricardo-M-L))
- [`94d45c8`](https://github.com/charmbracelet/bubbletea/commit/94d45c807dde21d7e46d14f3916ff4e3fac437f8): fix(renderer): prevent emitting stale frame on resize ([#​1856](https://github.com/charmbracelet/bubbletea/issues/1856)) ([@​Guurdeep](https://github.com/Guurdeep))
- [`4853fda`](https://github.com/charmbracelet/bubbletea/commit/4853fdaaa066e5d2fe0f93de543020eddd660e18): fix(renderer): skip redraws when empty or tall views haven't changed ([#​1897](https://github.com/charmbracelet/bubbletea/issues/1897)) ([@​janearc](https://github.com/janearc))
- [`6b30ecf`](https://github.com/charmbracelet/bubbletea/commit/6b30ecf3280d88d949dcc916bb91fc5e9d56f667): fix(renderer): use view height before first flush ([#​1766](https://github.com/charmbracelet/bubbletea/issues/1766)) ([@​fzlzjerry](https://github.com/fzlzjerry))
- [`55ba0f6`](https://github.com/charmbracelet/bubbletea/commit/55ba0f6de3ba6348597360690c008f7528d5813f): fix: allow Program.Run to be called again after the program exits ([#​1890](https://github.com/charmbracelet/bubbletea/issues/1890)) ([@​simpleqt](https://github.com/simpleqt))
- [`7a446b7`](https://github.com/charmbracelet/bubbletea/commit/7a446b73f6f1cae03a91160e97e040bce334beba): fix: avoid blocking prints after program exit ([#​1758](https://github.com/charmbracelet/bubbletea/issues/1758)) ([@​Ricardo-M-L](https://github.com/Ricardo-M-L))
- [`1b8005f`](https://github.com/charmbracelet/bubbletea/commit/1b8005fc10b235970f0414788339b18bcb6d6885): fix: avoid terminal wait without input ([#​1829](https://github.com/charmbracelet/bubbletea/issues/1829)) ([@​lowgame](https://github.com/lowgame))
- [`13fb42d`](https://github.com/charmbracelet/bubbletea/commit/13fb42d8ea1ac91e7eec2bd6717922802c1a0f48): fix: close the TTY files opened for input when Run returns ([#​1855](https://github.com/charmbracelet/bubbletea/issues/1855)) ([@​drawmeanelephant](https://github.com/drawmeanelephant))
- [`56a2fe7`](https://github.com/charmbracelet/bubbletea/commit/56a2fe7fed8ae475f315da0491fe4ce0c03b7041): fix: close the replaced cancel reader on RestoreTerminal ([#​1821](https://github.com/charmbracelet/bubbletea/issues/1821)) ([@​drmzperx](https://github.com/drmzperx))
- [`18d6fa3`](https://github.com/charmbracelet/bubbletea/commit/18d6fa3b34c84f3b773cd307a5d7b0a56b12c72a): fix: close trace file after program run ([#​1844](https://github.com/charmbracelet/bubbletea/issues/1844)) ([@​lowgame](https://github.com/lowgame))
- [`5982a61`](https://github.com/charmbracelet/bubbletea/commit/5982a61ef5e5d078255b2a67c45fd182ff54ec3c): fix: data race with Kill() and Run() ([#​1774](https://github.com/charmbracelet/bubbletea/issues/1774)) ([@​andrinoff](https://github.com/andrinoff))
- [`f3d74b7`](https://github.com/charmbracelet/bubbletea/commit/f3d74b724c7d8f2dc5a9d272f12e4942daaa1817): fix: ensure terminal state is restored after panics in Batch/Sequence commands ([#​1818](https://github.com/charmbracelet/bubbletea/issues/1818)) ([@​dajiaohuang](https://github.com/dajiaohuang))
- [`b9e7454`](https://github.com/charmbracelet/bubbletea/commit/b9e7454fd49640ed1eac9c29dc59d2ec86463ae2): fix: make Quit a no-op before Run starts ([#​1840](https://github.com/charmbracelet/bubbletea/issues/1840)) ([@​tianrking](https://github.com/tianrking))
- [`df137de`](https://github.com/charmbracelet/bubbletea/commit/df137dee9a2e6fc009cd2d837d0b0dae68b23c0e): fix: measure insertAbove lines with the active width method ([#​1861](https://github.com/charmbracelet/bubbletea/issues/1861)) ([@​Sanjays2402](https://github.com/Sanjays2402))
- [`bd09ae6`](https://github.com/charmbracelet/bubbletea/commit/bd09ae6834335499ac8422be16ff4215050ca94e): fix: preserve exact-width lines printed above the view ([#​1888](https://github.com/charmbracelet/bubbletea/issues/1888)) ([@​imharjot](https://github.com/imharjot))
- [`12b7b4d`](https://github.com/charmbracelet/bubbletea/commit/12b7b4d0eb0874e0f63d949ac33fd2d9022baa77): fix: restore terminal state on Run error paths ([#​1854](https://github.com/charmbracelet/bubbletea/issues/1854)) ([@​drawmeanelephant](https://github.com/drawmeanelephant))
- [`8675fd8`](https://github.com/charmbracelet/bubbletea/commit/8675fd8a858d4d82766509eb1aaffcd80085881b): fix: restore unicode mode on resume ([#​1896](https://github.com/charmbracelet/bubbletea/issues/1896)) ([@​janearc](https://github.com/janearc))
##### Other stuff
- [`73b79b3`](https://github.com/charmbracelet/bubbletea/commit/73b79b3737b9a68c76f3f2e6c49bf1bae327ee96): Provide the platform input/signal stubs on wasip1/wasip2 ([#​1767](https://github.com/charmbracelet/bubbletea/issues/1767)) ([@​calvinrp](https://github.com/calvinrp))
- [`e4d617e`](https://github.com/charmbracelet/bubbletea/commit/e4d617e7e0c0dd595cc553a856236221c678470f): perf(renderer): stop the frame ticker while nothing changes ([#​1832](https://github.com/charmbracelet/bubbletea/issues/1832)) ([@​viktordanov](https://github.com/viktordanov))
- [`38ddf5f`](https://github.com/charmbracelet/bubbletea/commit/38ddf5f58cfb4d14bfe607bcac5af502ab9ed6d6): v2.1.2 ([@​andrinoff](https://github.com/andrinoff))
***
<a href="https://charm.land/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-banner-next.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [X](https://x.com/charmcli), [Discord](https://charm.land/discord), [Slack](https://charm.land/slack), [The Fediverse](https://mastodon.social/@charmcli), [Bluesky](https://bsky.app/profile/charm.land).
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sebi
changed title from Update module charm.land/bubbletea/v2 to v2.1.2 to fix(deps): update module charm.land/bubbletea/v2 to v2.1.22026-11-18 11:46:30 +00:00
Sebi
merged commit dd427681b6 into main2026-11-18 12:16:21 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v2.1.1→v2.1.2Release Notes
charmbracelet/bubbletea (charm.land/bubbletea/v2)
v2.1.2Compare Source
Calmer, cooler, sturdier 🧋
A patch release, but it's a good one! Idle Bubble Tea programs now really sit idle, the terminal gets restored after just about anything goes wrong, and a long list of renderer bugs is gone.
Rest light!
The renderer no longer redraws when there's nothing to draw. After about half a second without changes, the frame ticker stops, and it picks right back up the moment something does change. Views that are empty or taller than the screen also skip redraws when they haven't changed.
Restoring in many more cases!
Bubble Tea now cleans up properly when:
BatchorSequencepanicsRunreturns early with an errorRestoreTerminalswaps the input readerRunfinishes and the TTY files it opened for input need closingAnd when you come back from suspending a program, Unicode mode comes back with it, so wide characters and emoji line up just like before!
Smoother rendering
Execclears your view first, so it doesn't leave a ghost behind.Big thanks to everyone who contributed to this release, and especially to the many first-time contributors! 💘
Read more below! 👇🏻
Have a nice day,
Charm XX 🌟
Changelog
Fixed
9806b0c: fix(exec): clear View before releasing terminal for subprocess (#1762) (@zhaoxinyi02)418cada: fix(logging): preserve Unicode prefix spacing (#1759) (@Ricardo-M-L)94d45c8: fix(renderer): prevent emitting stale frame on resize (#1856) (@Guurdeep)4853fda: fix(renderer): skip redraws when empty or tall views haven't changed (#1897) (@janearc)6b30ecf: fix(renderer): use view height before first flush (#1766) (@fzlzjerry)55ba0f6: fix: allow Program.Run to be called again after the program exits (#1890) (@simpleqt)7a446b7: fix: avoid blocking prints after program exit (#1758) (@Ricardo-M-L)1b8005f: fix: avoid terminal wait without input (#1829) (@lowgame)13fb42d: fix: close the TTY files opened for input when Run returns (#1855) (@drawmeanelephant)56a2fe7: fix: close the replaced cancel reader on RestoreTerminal (#1821) (@drmzperx)18d6fa3: fix: close trace file after program run (#1844) (@lowgame)5982a61: fix: data race with Kill() and Run() (#1774) (@andrinoff)f3d74b7: fix: ensure terminal state is restored after panics in Batch/Sequence commands (#1818) (@dajiaohuang)b9e7454: fix: make Quit a no-op before Run starts (#1840) (@tianrking)df137de: fix: measure insertAbove lines with the active width method (#1861) (@Sanjays2402)bd09ae6: fix: preserve exact-width lines printed above the view (#1888) (@imharjot)12b7b4d: fix: restore terminal state on Run error paths (#1854) (@drawmeanelephant)8675fd8: fix: restore unicode mode on resume (#1896) (@janearc)Other stuff
73b79b3: Provide the platform input/signal stubs on wasip1/wasip2 (#1767) (@calvinrp)e4d617e: perf(renderer): stop the frame ticker while nothing changes (#1832) (@viktordanov)38ddf5f: v2.1.2 (@andrinoff)Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
Update module charm.land/bubbletea/v2 to v2.1.2to fix(deps): update module charm.land/bubbletea/v2 to v2.1.2