feat(admin): implement extensions disabled (#16024)

This commit is contained in:
Shreya Keshive
2026-01-07 11:31:17 -05:00
committed by GitHub
parent 97b31c4eef
commit db99beda36
6 changed files with 117 additions and 8 deletions
+2
View File
@@ -637,6 +637,7 @@ export async function loadCliConfig(
const ptyInfo = await getPty();
const mcpEnabled = settings.admin?.mcp?.enabled ?? true;
const extensionsEnabled = settings.admin?.extensions?.enabled ?? true;
return new Config({
sessionId,
@@ -659,6 +660,7 @@ export async function loadCliConfig(
mcpServerCommand: mcpEnabled ? settings.mcp?.serverCommand : undefined,
mcpServers: mcpEnabled ? settings.mcpServers : {},
mcpEnabled,
extensionsEnabled,
allowedMcpServers: mcpEnabled
? (argv.allowedMcpServerNames ?? settings.mcp?.allowed)
: undefined,