@wendongfly/zihi 1.1.18 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.html +2 -1
- package/dist/index.js +1 -1
- package/dist/index.min.js +96 -96
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -2235,10 +2235,11 @@
|
|
|
2235
2235
|
|
|
2236
2236
|
// ── 清除会话 ──────────────────────────────────
|
|
2237
2237
|
window.doClear = function() {
|
|
2238
|
+
if (!confirm('确定清除当前会话的所有对话和 Claude 上下文?')) return;
|
|
2238
2239
|
chatArea.innerHTML = '';
|
|
2239
2240
|
endStream();
|
|
2240
2241
|
if (!isController && canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID });
|
|
2241
|
-
socket.emit('agent:
|
|
2242
|
+
socket.emit('agent:clear');
|
|
2242
2243
|
clearSessionHistory(SESSION_ID); // 同时清除离线缓存
|
|
2243
2244
|
addStatusMessage('已清除对话和 Claude 上下文');
|
|
2244
2245
|
};
|