This commit is contained in:
A.K.M. Adib
2026-04-23 09:07:30 -04:00
parent 891e62f6e7
commit 296802c359
3 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -3344,8 +3344,8 @@ export const SETTINGS_SCHEMA_DEFINITIONS: Record<
export function getSettingsSchema(): SettingsSchemaType {
// Force enablePermanentToolApproval to false in Vitest to keep snapshots stable,
// unless explicitly overridden in tests.
if (process.env['VITEST']) {
// unless explicitly overridden in tests or during doc generation.
if (process.env['VITEST'] && !process.env['GENERATE_DOCS']) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const schema = JSON.parse(JSON.stringify(SETTINGS_SCHEMA));
schema.security.properties.enablePermanentToolApproval.default = false;