mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-25 21:41:12 -07:00
fix(core): ensure subagent tool updates apply configuration overrides immediately (#23161)
This commit is contained in:
@@ -40,8 +40,8 @@ const agentStrategy: FeatureToggleStrategy = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Enables an agent by ensuring it is enabled in any writable scope (User and Workspace).
|
||||
* It sets `agents.overrides.<agentName>.enabled` to `true`.
|
||||
* Enables an agent by setting `agents.overrides.<agentName>.enabled` to `true`
|
||||
* in available writable scopes (User and Workspace).
|
||||
*/
|
||||
export function enableAgent(
|
||||
settings: LoadedSettings,
|
||||
@@ -59,7 +59,8 @@ export function enableAgent(
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables an agent by setting `agents.overrides.<agentName>.enabled` to `false` in the specified scope.
|
||||
* Disables an agent by setting `agents.overrides.<agentName>.enabled` to `false`
|
||||
* in the specified scope.
|
||||
*/
|
||||
export function disableAgent(
|
||||
settings: LoadedSettings,
|
||||
|
||||
Reference in New Issue
Block a user