mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
feat: add skipSandboxWarning to settings and sync function
- Introduced skipSandboxWarning property in GlobalSettings interface to manage user preference for sandbox risk warnings. - Updated syncSettingsToServer function to include skipSandboxWarning in the settings synchronization process. - Set default value for skipSandboxWarning to false in DEFAULT_GLOBAL_SETTINGS.
This commit is contained in:
@@ -226,6 +226,7 @@ export async function syncSettingsToServer(): Promise<boolean> {
|
|||||||
validationModel: state.validationModel,
|
validationModel: state.validationModel,
|
||||||
autoLoadClaudeMd: state.autoLoadClaudeMd,
|
autoLoadClaudeMd: state.autoLoadClaudeMd,
|
||||||
enableSandboxMode: state.enableSandboxMode,
|
enableSandboxMode: state.enableSandboxMode,
|
||||||
|
skipSandboxWarning: state.skipSandboxWarning,
|
||||||
keyboardShortcuts: state.keyboardShortcuts,
|
keyboardShortcuts: state.keyboardShortcuts,
|
||||||
aiProfiles: state.aiProfiles,
|
aiProfiles: state.aiProfiles,
|
||||||
mcpServers: state.mcpServers,
|
mcpServers: state.mcpServers,
|
||||||
|
|||||||
@@ -353,6 +353,8 @@ export interface GlobalSettings {
|
|||||||
autoLoadClaudeMd?: boolean;
|
autoLoadClaudeMd?: boolean;
|
||||||
/** Enable sandbox mode for bash commands (default: false, enable for additional security) */
|
/** Enable sandbox mode for bash commands (default: false, enable for additional security) */
|
||||||
enableSandboxMode?: boolean;
|
enableSandboxMode?: boolean;
|
||||||
|
/** Skip showing the sandbox risk warning dialog */
|
||||||
|
skipSandboxWarning?: boolean;
|
||||||
|
|
||||||
// MCP Server Configuration
|
// MCP Server Configuration
|
||||||
/** List of configured MCP servers for agent use */
|
/** List of configured MCP servers for agent use */
|
||||||
@@ -531,6 +533,7 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
|
|||||||
lastSelectedSessionByProject: {},
|
lastSelectedSessionByProject: {},
|
||||||
autoLoadClaudeMd: false,
|
autoLoadClaudeMd: false,
|
||||||
enableSandboxMode: false,
|
enableSandboxMode: false,
|
||||||
|
skipSandboxWarning: false,
|
||||||
mcpServers: [],
|
mcpServers: [],
|
||||||
// Default to true for autonomous workflow. Security is enforced when adding servers
|
// Default to true for autonomous workflow. Security is enforced when adding servers
|
||||||
// via the security warning dialog that explains the risks.
|
// via the security warning dialog that explains the risks.
|
||||||
|
|||||||
Reference in New Issue
Block a user