diff --git a/docs/cli/settings.md b/docs/cli/settings.md index b5421b581c..b1b7027590 100644 --- a/docs/cli/settings.md +++ b/docs/cli/settings.md @@ -129,8 +129,9 @@ they appear in the UI. ### HooksConfig -| UI Label | Setting | Description | Default | -| ------------------ | --------------------------- | ------------------------------------------------ | ------- | -| Hook Notifications | `hooksConfig.notifications` | Show visual indicators when hooks are executing. | `true` | +| UI Label | Setting | Description | Default | +| ------------------ | --------------------------- | -------------------------------------------------------------------------------- | ------- | +| Enable Hooks | `hooksConfig.enabled` | Canonical toggle for the hooks system. When disabled, no hooks will be executed. | `true` | +| Hook Notifications | `hooksConfig.notifications` | Show visual indicators when hooks are executing. | `true` | diff --git a/docs/get-started/configuration.md b/docs/get-started/configuration.md index 3a1e385cf7..86c8a9954f 100644 --- a/docs/get-started/configuration.md +++ b/docs/get-started/configuration.md @@ -902,6 +902,7 @@ their corresponding top-level category object in your `settings.json` file. - **Description:** Canonical toggle for the hooks system. When disabled, no hooks will be executed. - **Default:** `true` + - **Requires restart:** Yes - **`hooksConfig.disabled`** (array): - **Description:** List of hook names (commands) that should be disabled. diff --git a/packages/cli/src/config/settingsSchema.ts b/packages/cli/src/config/settingsSchema.ts index 6d108602df..5b4a576f94 100644 --- a/packages/cli/src/config/settingsSchema.ts +++ b/packages/cli/src/config/settingsSchema.ts @@ -1602,11 +1602,11 @@ const SETTINGS_SCHEMA = { type: 'boolean', label: 'Enable Hooks', category: 'Advanced', - requiresRestart: false, + requiresRestart: true, default: true, description: 'Canonical toggle for the hooks system. When disabled, no hooks will be executed.', - showInDialog: false, + showInDialog: true, }, disabled: { type: 'array', diff --git a/schemas/settings.schema.json b/schemas/settings.schema.json index e6ef72115a..762876073b 100644 --- a/schemas/settings.schema.json +++ b/schemas/settings.schema.json @@ -1537,7 +1537,7 @@ "enabled": { "title": "Enable Hooks", "description": "Canonical toggle for the hooks system. When disabled, no hooks will be executed.", - "markdownDescription": "Canonical toggle for the hooks system. When disabled, no hooks will be executed.\n\n- Category: `Advanced`\n- Requires restart: `no`\n- Default: `true`", + "markdownDescription": "Canonical toggle for the hooks system. When disabled, no hooks will be executed.\n\n- Category: `Advanced`\n- Requires restart: `yes`\n- Default: `true`", "default": true, "type": "boolean" },