mirror of
https://github.com/Cola-Echo/memory-manager-concurrent.git
synced 2026-06-06 05:25:53 +00:00
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],未配置时显示"未配置"状态
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user