Add a one-time composer starfield for new Astra tasks (#46096)

## What changed

Show a brief starfield in the empty composer when a new task starts with Astra or the user selects Astra through `/model` before entering ordinary prompt content.

- Respect `tui.animations`, `tui.whimsy`, and true-color support; protect the placeholder and cursor and fade out by 15 seconds.
- Preserve eligibility through recognized slash commands, but permanently dismiss it after ordinary draft content, attachments, or work. Carry draft eligibility through startup and disconnected editing.
- Exclude resumed and forked tasks, and verify model-picker changes against the originating task and effective model when applied.
- Hide the effect during overlays or focus loss without restarting its deadline or scheduling hidden animation frames.

## Testing

Add regression tests and snapshots for task eligibility, model-picker transitions, draft and paste handling, history search, overlays, submissions, rendering protection, and animation expiry.

GitOrigin-RevId: 832705543e9cae1d561125ece853a16c4eefe627
This commit is contained in:
Ian MacLeod authored and copyberry committed 2026-09-17 03:27:21 +00:00
1 parent 787823cf95
commit f3da3861c5
45 files changed
+3251 -178

No files matched your search

+1
View File
@@ -382,6 +382,7 @@ mod model_popups;
mod notifications;
mod session_model_selection;
use self::notifications::Notification;
pub(crate) use self::session_model_selection::AstraModelPickerAction;
mod permission_discovery;
mod permission_popups;
mod permission_shortcuts;