Fix TUI fast mode toggle regression (#16833)

Addresses #16832

Problem: After `/fast on`, the TUI omitted an explicit service-tier
clear on later turns, so `/fast off` left app-server sessions stuck on
`priority` until restart.

Solution: Always submit the current service tier with user turns,
including an explicit clear when Fast mode is off, and add a regression
test for the `/fast on` -> `/fast off` flow.
This commit is contained in:
Eric Traut authored and GitHub committed 2026-04-06 08:43:35 -07:00
1 parent 82b061afb2
commit ab58141e22
2 files changed
+27 -1

No files matched your search

+1 -1
View File
@@ -5767,7 +5767,7 @@ impl ChatWidget {
.personality
.filter(|_| self.config.features.enabled(Feature::Personality))
.filter(|_| self.current_model_supports_personality());
let service_tier = self.config.service_tier.map(Some);
let service_tier = Some(self.config.service_tier);
let op = AppCommand::user_turn(
items,
self.config.cwd.to_path_buf(),