Add Astra sparkle effects to the TUI composer (#42842)

## What changed

- Render sparse, fading stars across the composer when using an Astra model in a true-color terminal.
- Preserve composer content, cursor state, effort effects, and terminal colors, and pause the animation while popups are open.
- Add the default-on `tui.whimsy` setting so decorative effects can be disabled independently. Sparkles also respect `tui.animations`.

## Testing

- Cover model and setting eligibility, terminal color handling, protected composer cells, popup behavior, effort effects, and layout stability.

GitOrigin-RevId: fe0471ebef0bca21c44e1d8f731d46959eba0165
This commit is contained in:
Ian MacLeod authored and copyberry committed 2026-09-04 20:18:13 +00:00
1 parent 60888d0868
commit 147137c1f4
13 files changed
+498

No files matched your search

@@ -309,6 +309,10 @@ impl ChatWidget {
.bottom_pane
.set_token_activity_command_enabled(widget.has_codex_backend_auth);
widget.refresh_status_surfaces();
widget.bottom_pane.set_astra_sparkle(
widget.effective_collaboration_mode().model(),
&widget.local_settings.tui,
);
widget
}
+2
View File
@@ -442,6 +442,8 @@ impl ChatWidget {
pub(super) fn refresh_model_display(&mut self) {
let effective = self.effective_collaboration_mode();
self.session_header.set_model(effective.model());
self.bottom_pane
.set_astra_sparkle(effective.model(), &self.local_settings.tui);
// Keep composer paste affordances aligned with the currently effective model.
self.sync_image_paste_enabled();
self.sync_service_tier_commands();