fix(core): ensure subagent tool updates apply configuration overrides immediately (#23161)

This commit is contained in:
Abhi
2026-03-22 20:24:24 -04:00
committed by GitHub
parent 6055c47079
commit c7d44e339b
4 changed files with 272 additions and 123 deletions

View File

@@ -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,