MCPcopy Create free account
hub / github.com/astercloud/aster / clearCompletedTools

Function clearCompletedTools

ui/src/stores/tools.ts:151–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 * 清除已完成的工具记录
150 */
151 const clearCompletedTools = () => {
152 for (const [id, tool] of toolRuns.value) {
153 if (tool.state === "completed" || tool.state === "failed" || tool.state === "cancelled") {
154 toolRuns.value.delete(id);
155 }
156 }
157 };
158
159 // ==================
160 // Return

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected