feat(history): add unified MCP execution history

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-26 22:18:38 +08:00
1 parent dd82d948a9
commit 5c0ce7e4dc
39 files changed
+1261 -87

No files matched your search

+4 -2
View File
@@ -175,10 +175,11 @@ export const useHistoryStore = defineStore("history", () => {
void loadConnectionOptions().catch(() => {});
}
async function clear() {
async function clear(source?: string) {
beginDestructiveMutation();
try {
await api.clearHistory();
if (source) await api.clearHistoryBySource(source);
else await api.clearHistory();
} finally {
endDestructiveMutation();
}
@@ -186,6 +187,7 @@ export const useHistoryStore = defineStore("history", () => {
connectionOptions.value = [];
total.value = 0;
nextCursor.value = null;
if (source) void loadConnectionOptions().catch(() => {});
}
return {