feat: reuse shared llm presets for ena planner

This commit is contained in:
Youzini-afk
2026-04-23 15:39:16 +08:00
parent f2d1b56bc1
commit 3f9d8a2aed
3 changed files with 171 additions and 4 deletions

View File

@@ -1356,7 +1356,9 @@ function _switchTab(tabId) {
function _refreshPlannerLauncher() {
try {
refreshPlannerSections();
refreshPlannerSections({
getSettings: _getSettings,
});
} catch (err) {
console.warn("[ST-BME] planner section refresh failed:", err);
}
@@ -1364,7 +1366,9 @@ function _refreshPlannerLauncher() {
function _bindPlannerLauncher() {
try {
initPlannerSections(panelEl || document);
initPlannerSections(panelEl || document, {
getSettings: _getSettings,
});
} catch (err) {
console.warn("[ST-BME] planner section init failed:", err);
}