feat: backend selector setting
This commit is contained in:
@@ -474,8 +474,9 @@ async function initialize(): Promise<void> {
|
||||
});
|
||||
|
||||
// Start Gateway automatically (this seeds missing bootstrap files with full templates)
|
||||
const gatewayBackend = await getSetting('gatewayBackend');
|
||||
const gatewayAutoStart = await getSetting('gatewayAutoStart');
|
||||
if (!isE2EMode && gatewayAutoStart) {
|
||||
if (!isE2EMode && gatewayBackend === 'openclaw' && gatewayAutoStart) {
|
||||
try {
|
||||
await syncAllProviderAuthToRuntime();
|
||||
logger.debug('Auto-starting Gateway...');
|
||||
@@ -487,6 +488,8 @@ async function initialize(): Promise<void> {
|
||||
}
|
||||
} else if (isE2EMode) {
|
||||
logger.info('Gateway auto-start skipped in E2E mode');
|
||||
} else if (gatewayBackend !== 'openclaw') {
|
||||
logger.info(`Gateway auto-start skipped (backend=${gatewayBackend})`);
|
||||
} else {
|
||||
logger.info('Gateway auto-start disabled in settings');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user