mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
feat(cli): show hooksConfig.enabled in settings dialog (#17810)
This commit is contained in:
@@ -130,8 +130,9 @@ they appear in the UI.
|
|||||||
|
|
||||||
### HooksConfig
|
### HooksConfig
|
||||||
|
|
||||||
| UI Label | Setting | Description | Default |
|
| UI Label | Setting | Description | Default |
|
||||||
| ------------------ | --------------------------- | ------------------------------------------------ | ------- |
|
| ------------------ | --------------------------- | -------------------------------------------------------------------------------- | ------- |
|
||||||
| Hook Notifications | `hooksConfig.notifications` | Show visual indicators when hooks are executing. | `true` |
|
| 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` |
|
||||||
|
|
||||||
<!-- SETTINGS-AUTOGEN:END -->
|
<!-- SETTINGS-AUTOGEN:END -->
|
||||||
|
|||||||
@@ -901,6 +901,7 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
- **Description:** Canonical toggle for the hooks system. When disabled, no
|
- **Description:** Canonical toggle for the hooks system. When disabled, no
|
||||||
hooks will be executed.
|
hooks will be executed.
|
||||||
- **Default:** `true`
|
- **Default:** `true`
|
||||||
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
- **`hooksConfig.disabled`** (array):
|
- **`hooksConfig.disabled`** (array):
|
||||||
- **Description:** List of hook names (commands) that should be disabled.
|
- **Description:** List of hook names (commands) that should be disabled.
|
||||||
|
|||||||
@@ -1601,11 +1601,11 @@ const SETTINGS_SCHEMA = {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
label: 'Enable Hooks',
|
label: 'Enable Hooks',
|
||||||
category: 'Advanced',
|
category: 'Advanced',
|
||||||
requiresRestart: false,
|
requiresRestart: true,
|
||||||
default: true,
|
default: true,
|
||||||
description:
|
description:
|
||||||
'Canonical toggle for the hooks system. When disabled, no hooks will be executed.',
|
'Canonical toggle for the hooks system. When disabled, no hooks will be executed.',
|
||||||
showInDialog: false,
|
showInDialog: true,
|
||||||
},
|
},
|
||||||
disabled: {
|
disabled: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
|
|||||||
@@ -1537,7 +1537,7 @@
|
|||||||
"enabled": {
|
"enabled": {
|
||||||
"title": "Enable Hooks",
|
"title": "Enable Hooks",
|
||||||
"description": "Canonical toggle for the hooks system. When disabled, no hooks will be executed.",
|
"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,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user