mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-24 04:52:43 -07:00
feat(workspaces): sync local theme and UI settings to remote worker
This commit is contained in:
@@ -306,6 +306,21 @@ and full builds) to a dedicated, high-performance GCP worker.
|
||||
|
||||
// 2. Initialize Remote Gemini Config with Auth
|
||||
console.log('⚙️ Initializing remote Gemini configuration...');
|
||||
|
||||
// NEW: Sync local theme and UI preferences
|
||||
let localTheme = 'Shades Of Purple';
|
||||
let useAlternateBuffer = true;
|
||||
let useBackgroundColor = true;
|
||||
|
||||
if (fs.existsSync(localSettingsPath)) {
|
||||
try {
|
||||
const localSettings = JSON.parse(fs.readFileSync(localSettingsPath, 'utf8'));
|
||||
localTheme = localSettings.ui?.theme || localTheme;
|
||||
useAlternateBuffer = localSettings.ui?.useAlternateBuffer ?? useAlternateBuffer;
|
||||
useBackgroundColor = localSettings.ui?.useBackgroundColor ?? useBackgroundColor;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
const remoteSettings: any = {
|
||||
security: {
|
||||
auth: {
|
||||
@@ -315,6 +330,11 @@ and full builds) to a dedicated, high-performance GCP worker.
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
ui: {
|
||||
theme: localTheme,
|
||||
useAlternateBuffer,
|
||||
useBackgroundColor,
|
||||
},
|
||||
general: {
|
||||
enableAutoUpdate: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user