aca0684c0b421eec2a389601e69d19534f4dc738
* Update TTS model from Gemini 2.5 to 3.1 in TTS Extension (#5778) * Update TTS model from Gemini 2.5 to 3.1 in TTS Extension Added New versions and new Default model * Add glm-5.2 option to model selection dropdown * Fix crash when a chat file is deleted mid-scan getChatInfo() stats a chat file without handling ENOENT. If the file is deleted (e.g. from the UI) while a search or the recent-chats list is scanning the same directory, the stat throws, and since it's inside new Promise(async (res) => {...}) with no reject wired up, it becomes an unhandled rejection that kills the whole server process. This catches ENOENT and resolves with { match: false } instead, same as the fallback already used elsewhere in this function/its callers for corrupted or unmatched entries. * fix: handle all mid-scan chat deletion races in getChatInfo The stat guard alone left the function unsound: it lived inside an async promise executor, so a non-ENOENT error became an unhandled rejection and the promise never settled. A file deleted between the stat and the stream opening still crashed via an unhandled stream error, which readline re-emits, and a file truncated to empty mid-scan hung the request because the close handler never resolved. getChatInfo now uses plain async/await up to the streaming part, resolves a no-match sentinel when the file vanishes at either point, resolves an empty object on truncation, and properly rejects everything else. Comes with deterministic regression tests for each race window. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com> Co-authored-by: Samueras <Samueras@jackoedv.de> Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com> 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%