Cola-Echo
|
621b6bad30
|
fix: 兼容新版 SillyTavern 的 extensionSettings API 并修复总结世界书渲染崩溃
1. 将 window.extension_settings 替换为 getExtensionSettings()
- 新版 SillyTavern 已废弃 window.extension_settings 全局变量
- 改用 SillyTavern.getContext().extensionSettings(通过已有的 getExtensionSettings helper)
- 影响文件: table-filler.js, mode-manager.js, service-interceptor.js, independent-template-modal.js
2. 修复总结世界书未配置时自动拆分导致的渲染崩溃
- renderSummaryPartsUI 中 getSummaryConfig() 在未配置时会 throw
- 导致整个世界书列表渲染失败,自动拆分开关也无法显示
- 改为安全读取 config?.summaryConfigs?.[book.name],未配置时显示"未配置"状态
|
2026-03-03 23:28:36 +08:00 |
|