Terminal auto-reconnect

This commit is contained in:
James Babcock committed 2026-08-09 16:08:19 -07:00
1 parent 74273ce7b9
commit 2562761038
3 files changed
+178 -4

No files matched your search

+9
View File
@@ -525,6 +525,15 @@ export const terminalLaunchPresetsSetting = new ConfigSettingString({
"Comma-separated names of g2mirror launch presets that can be started from the glasses. Presets are defined in the server's config; the wire protocol has no way to list them, so name them here. The default server config defines \"shell\".",
});
export const terminalAutoReconnectSetting = new ConfigSettingBoolean({
id: "terminal-auto-reconnect",
label: "Auto-reconnect",
storageKey: "terminal.autoReconnect",
defaultValue: true,
description:
"While at least one Terminal window is open, automatically reconnect to the g2mirror server when the connection drops, retrying with backoff until it succeeds.",
});
export const terminalWakeOnBellSetting = new ConfigSettingBoolean({
id: "terminal-wake-on-bell",
label: "Wake glasses on terminal bell",
+2
View File
@@ -29,6 +29,7 @@ import {
saveVoiceRecordingsSetting,
suspendEvenHubWhenScreenOffSetting,
terminalAuthTokenSetting,
terminalAutoReconnectSetting,
terminalHostSetting,
terminalLaunchPresetsSetting,
terminalPortSetting,
@@ -113,6 +114,7 @@ function settingsSections(): SettingsSection[] {
textSettingMenuItem(terminalPortSetting),
textSettingMenuItem(terminalAuthTokenSetting),
textSettingMenuItem(terminalLaunchPresetsSetting),
toggleSettingMenuItem(terminalAutoReconnectSetting),
toggleSettingMenuItem(terminalWakeOnBellSetting),
],
},