From 9ec1e4ac34e1e4599a078c983d2bdd6e048a83c9 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Fri, 10 Apr 2026 18:43:57 +0800 Subject: [PATCH 1/6] Tighten rerun range input layout --- ui/panel.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/panel.html b/ui/panel.html index adc3ba3..ccff2aa 100644 --- a/ui/panel.html +++ b/ui/panel.html @@ -364,14 +364,14 @@
重新提取:按总楼层计数(用户+AI,首条 greeting 为 0)。真正 system 不计入,且不受隐藏助手影响。
+
+ + +
-
- - -
Date: Fri, 10 Apr 2026 10:44:27 +0000 Subject: [PATCH 2/6] chore: bump manifest version [skip ci] --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 4b38381..fd263ff 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,6 @@ "js": "index.js", "css": "style.css", "author": "Youzini", - "version": "4.3.6", + "version": "4.3.7", "homePage": "https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology" } From 38237d84746385c7d43a6f5e2cf86398cc43b347 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Fri, 10 Apr 2026 18:48:19 +0800 Subject: [PATCH 3/6] Unify rerun and summary range inputs --- ui/panel.html | 26 +------------------------- ui/panel.js | 4 ++-- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/ui/panel.html b/ui/panel.html index ccff2aa..5151cc1 100644 --- a/ui/panel.html +++ b/ui/panel.html @@ -399,31 +399,7 @@ 重新提取范围:起始/终止都留空 = 当前重提;只填起始 = 从起始到最新。
- 重建总结状态:默认按当前总结相关范围重建;填写楼层后按范围重建。 -
-
-
- - -
-
- - -
+ 重建总结状态:和上面的起始/终止楼层共用同一组范围;留空时按当前总结相关范围重建。
diff --git a/ui/panel.js b/ui/panel.js index 1e982b7..a80b91c 100644 --- a/ui/panel.js +++ b/ui/panel.js @@ -3806,10 +3806,10 @@ function _bindActions() { const btn = document.getElementById("bme-act-summary-rebuild"); if (btn?.disabled) return; const startFloor = _parseOptionalInt( - document.getElementById("bme-summary-rebuild-start-floor")?.value, + document.getElementById("bme-extract-start-floor")?.value, ); const endFloor = _parseOptionalInt( - document.getElementById("bme-summary-rebuild-end-floor")?.value, + document.getElementById("bme-extract-end-floor")?.value, ); const desc = Number.isFinite(startFloor) || Number.isFinite(endFloor) ? `按范围 ${Number.isFinite(startFloor) ? startFloor : "当前"} ~ ${Number.isFinite(endFloor) ? endFloor : "最新"} 重建总结状态` From 98712853b133ce12ba3edcc76ab80061df83549a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:48:52 +0000 Subject: [PATCH 4/6] chore: bump manifest version [skip ci] --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index fd263ff..ee4e6fa 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,6 @@ "js": "index.js", "css": "style.css", "author": "Youzini", - "version": "4.3.7", + "version": "4.3.8", "homePage": "https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology" } From 7b1f125e170beea910f41dc84a41812c3fda303c Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Fri, 10 Apr 2026 18:56:21 +0800 Subject: [PATCH 5/6] Move summary clear into cleanup --- index.js | 1 + ui/panel.html | 25 +++++++++++++++++++++---- ui/panel.js | 6 ------ ui/ui-actions-controller.js | 19 +++++++++++++++++-- 4 files changed, 39 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index ca286c6..864d7da 100644 --- a/index.js +++ b/index.js @@ -12808,6 +12808,7 @@ async function onRebuildSummaryState(options = {}) { async function onClearSummaryState() { return await onClearSummaryStateController({ + confirm: (msg) => (typeof globalThis.confirm === "function" ? globalThis.confirm(msg) : false), ensureGraphMutationReady, getCurrentGraph: () => currentGraph, refreshPanelLiveState, diff --git a/ui/panel.html b/ui/panel.html index 5151cc1..f03b19f 100644 --- a/ui/panel.html +++ b/ui/panel.html @@ -343,10 +343,6 @@ 重建总结状态 - + + +
diff --git a/ui/panel.js b/ui/panel.js index a80b91c..d7a3a85 100644 --- a/ui/panel.js +++ b/ui/panel.js @@ -104,7 +104,6 @@ const GRAPH_WRITE_ACTION_IDS = [ "bme-act-synopsis", "bme-act-summary-rollup", "bme-act-summary-rebuild", - "bme-act-summary-clear", "bme-act-evolve", "bme-act-undo-maintenance", "bme-act-import", @@ -1677,7 +1676,6 @@ function _refreshSummaryWorkspace() { -
@@ -3606,7 +3604,6 @@ function _bindActions() { "bme-act-sleep": "sleep", "bme-act-synopsis": "synopsis", "bme-act-summary-rollup": "summaryRollup", - "bme-act-summary-clear": "clearSummaryState", "bme-act-export": "export", "bme-act-import": "import", "bme-act-rebuild": "rebuild", @@ -3628,7 +3625,6 @@ function _bindActions() { synopsis: "生成小总结", summaryRollup: "执行总结折叠", rebuildSummaryState: "重建总结状态", - clearSummaryState: "清空总结状态", export: "导出图谱", import: "导入图谱", rebuild: "重建图谱", @@ -3996,12 +3992,10 @@ function _bindActions() { const generateBtn = e.target.closest("#bme-summary-generate"); const rollupBtn = e.target.closest("#bme-summary-rollup"); const rebuildBtn = e.target.closest("#bme-summary-rebuild"); - const clearBtn = e.target.closest("#bme-summary-clear"); const actionMap = new Map([ [generateBtn, "synopsis"], [rollupBtn, "summaryRollup"], [rebuildBtn, "rebuildSummaryState"], - [clearBtn, "clearSummaryState"], ]); const matched = [...actionMap.entries()].find(([element]) => Boolean(element)); if (!matched) return; diff --git a/ui/ui-actions-controller.js b/ui/ui-actions-controller.js index 73f0206..7a6006f 100644 --- a/ui/ui-actions-controller.js +++ b/ui/ui-actions-controller.js @@ -844,11 +844,26 @@ export async function onClearSummaryStateController(runtime) { const graph = runtime.getCurrentGraph(); if (!graph) return; if (!runtime.ensureGraphMutationReady("清空总结状态")) return; + if ( + typeof runtime.confirm === "function" && + !runtime.confirm( + "确定要清空当前聊天的总结状态?\n\n这会删除当前聊天的所有层级总结前沿与折叠历史,但不会删除图谱节点或聊天原文。", + ) + ) { + return { + cancelled: true, + }; + } runtime.resetHierarchicalSummaryState?.(graph); runtime.saveGraphToChat?.({ reason: "clear-summary-state" }); runtime.refreshPanelLiveState?.(); - updateManualActionUiState(runtime, "总结状态已清空", "当前聊天的层级总结已重置", "success"); - runtime.toastr.success("总结状态已清空"); + updateManualActionUiState( + runtime, + "总结状态已清空", + "当前聊天的层级总结已重置", + "success", + ); + runtime.toastr.success("当前聊天总结状态已清空"); return { handledToast: true, requestDispatched: false, From c22151ae52cd3b79f6380aaebc6b3eb86baa51ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:56:55 +0000 Subject: [PATCH 6/6] chore: bump manifest version [skip ci] --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ee4e6fa..9e5ee4f 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,6 @@ "js": "index.js", "css": "style.css", "author": "Youzini", - "version": "4.3.8", + "version": "4.3.9", "homePage": "https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology" }