feat(history): add unified MCP execution history
This commit is contained in:
39 files changed
+1261
-87
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user