mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user