From 74dedcad37833d8d4b07aee0edee22b72545f1d0 Mon Sep 17 00:00:00 2001 From: LittleLlama <72672345+LittleLlama9@users.noreply.github.com> Date: Mon, 1 Jun 2026 07:07:42 -0700 Subject: [PATCH] Remove duplicate tool index startup warmup get_tool_index() calls index_builtin_tools() on first init (src/tool_index.py:469-470), and _warmup_tool_index then calls it explicitly right after. Every cold boot embeds all 58 built-in tools twice and double-upserts them into the ChromaDB collection. The remaining get_tools_for_query call still pre-warms the query path. Co-authored-by: Claude Opus 4.7 --- app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app.py b/app.py index d45161e..7fa69b1 100644 --- a/app.py +++ b/app.py @@ -818,7 +818,6 @@ async def startup_event(): from src.tool_index import get_tool_index idx = await asyncio.to_thread(get_tool_index) if idx: - await asyncio.to_thread(idx.index_builtin_tools) await asyncio.to_thread(idx.get_tools_for_query, "warmup", 8) logger.info("[startup] Tool index pre-warmed") except Exception as e: