fix: resolve process-cleanup signal delay and hashline_edit tool name mismatch

This commit is contained in:
YeonGyu-Kim
2026-03-31 16:59:04 -07:00
parent 9f2c4500e8
commit 7d6f47bf3d
4 changed files with 193 additions and 115 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ const LOW_PRIORITY_TOOL_ORDER = [
"task_update",
"background_output",
"background_cancel",
"hashline_edit",
"edit",
"ast_grep_replace",
"ast_grep_search",
"glob",
@@ -70,7 +70,7 @@ const LOW_PRIORITY_TOOL_ORDER = [
"lsp_diagnostics",
] as const
function trimToolsToCap(filteredTools: ToolsRecord, maxTools: number): void {
export function trimToolsToCap(filteredTools: ToolsRecord, maxTools: number): void {
const toolNames = Object.keys(filteredTools)
if (toolNames.length <= maxTools) return