From fc4d987d205bb2bd86d2cf2698858f052a740cce Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sun, 25 Jan 2026 20:04:04 -0500 Subject: [PATCH] feat(websearch): call removeHookConfig on uninstall - uninstallWebSearchHook() now calls removeHookConfig() - ensures settings.json cleanup when hook file is removed --- src/utils/websearch/hook-installer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/websearch/hook-installer.ts b/src/utils/websearch/hook-installer.ts index 4fc4d66b..a9efbf06 100644 --- a/src/utils/websearch/hook-installer.ts +++ b/src/utils/websearch/hook-installer.ts @@ -11,7 +11,7 @@ import * as path from 'path'; import * as os from 'os'; import { info, warn } from '../ui'; import { getWebSearchConfig } from '../../config/unified-config-loader'; -import { getHookPath, ensureHookConfig } from './hook-config'; +import { getHookPath, ensureHookConfig, removeHookConfig } from './hook-config'; // Re-export from hook-config for backward compatibility export { getHookPath, getWebSearchHookConfig } from './hook-config'; @@ -115,7 +115,8 @@ export function uninstallWebSearchHook(): boolean { } } - // TODO: Optionally remove from settings.json + // Remove from settings.json + removeHookConfig(); return true; } catch (error) {