Preserve statusline provider selections across thread startup (#61986)

## What changed

- Pass the provider advertised by the picker into statusline resolution, preserving it when selection precedes the thread ID and avoiding a redundant global catalog lookup.
- Cancel failed readers and stop requesting provider-specific usage and workspace headline data until the provider is reselected.

## Testing

Extend reader tests to cover reselection before thread startup, resolution using only the thread catalog, and snapshot suppression after invalid provider content.

GitOrigin-RevId: 9531204cb6ef93c721dc7fafdc0a8fea8c20cb99
This commit is contained in:
Joe Savona
2026-11-17 07:27:10 +00:00
committed by copyberry
parent 47d9cde20e
commit 7fb4014d52
8 changed files with 133 additions and 31 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ impl ChatWidget {
}
fn selected_thread_usage(&self) -> SelectedThreadUsage {
if self.selected_statusline_provider().is_some() {
if self.provider_needs_snapshot() {
return SelectedThreadUsage {
credits: self.plan_type != Some(PlanType::Ent26),
estimated_cost: true,