cd2c65c9d45bc774b5a2fd4bfc1858bc885feb21
Applying a CC preset deferred the actual settings update behind an unawaitable event continuation, so /preset resolved before the preset was applied. A connection profile switch runs /api, /preset, /api in sequence, and the preset's stored chat_completion_source would land after the final /api check, reverting the source to the previous provider. Requests then silently went to the wrong endpoint. The preset application chain is now captured in a promise that selectPreset awaits, so /preset resolves only when the preset is fully applied and follow-up commands sequence correctly. The UI dropdown path is unchanged, and callers that do not await selectPreset keep the exact previous behavior. Fixes #5926 Fixes #5147 Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
SillyTavern
LLM Frontend for Power Users
Resources
- GitHub: https://github.com/SillyTavern/SillyTavern
- Docs: https://docs.sillytavern.app/
- Discord: https://discord.gg/sillytavern
- Reddit: https://reddit.com/r/SillyTavernAI
License
AGPL-3.0
Languages
JavaScript
88.7%
HTML
8.1%
CSS
2.8%
Less
0.3%