From 131c9d380e088f49df26d086f51ff08331e70d8a Mon Sep 17 00:00:00 2001 From: xilesun <2013xile@gmail.com> Date: Tue, 10 Feb 2026 12:03:00 +0800 Subject: [PATCH] fix(app-supervisor): deep clone app options --- packages/core/server/src/app-supervisor/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/server/src/app-supervisor/index.ts b/packages/core/server/src/app-supervisor/index.ts index 58a4bd706c4..5190178d3b2 100644 --- a/packages/core/server/src/app-supervisor/index.ts +++ b/packages/core/server/src/app-supervisor/index.ts @@ -389,7 +389,7 @@ export class AppSupervisor extends EventEmitter implements AsyncEmitter { registerApp({ appModel, mainApp, hook }: { appModel: AppModel; mainApp?: Application; hook?: boolean }) { const appName = appModel.name; - const appOptions = appModel.options || {}; + const appOptions = lodash.cloneDeep(appModel.options || {}); if (this.aesEncryptor && appOptions?.encryptedDbPassword) { try { _.set(appOptions, 'database.password', this.aesEncryptor.decryptSync(appOptions.database.password));