generated from nhcarrigan/template
feat: expose disableSkillShellExecution setting in config UI (closes #259)
This commit is contained in:
@@ -316,7 +316,7 @@ impl WslBridge {
|
||||
.map(|m| !m.is_empty())
|
||||
.unwrap_or(false);
|
||||
|
||||
if has_memory_dir || has_overrides {
|
||||
if has_memory_dir || has_overrides || options.disable_skill_shell_execution {
|
||||
let mut settings = serde_json::Map::new();
|
||||
if let Some(ref dir) = options.auto_memory_directory {
|
||||
if !dir.is_empty() {
|
||||
@@ -333,6 +333,12 @@ impl WslBridge {
|
||||
}
|
||||
}
|
||||
}
|
||||
if options.disable_skill_shell_execution {
|
||||
settings.insert(
|
||||
"disableSkillShellExecution".to_string(),
|
||||
serde_json::Value::Bool(true),
|
||||
);
|
||||
}
|
||||
if let Ok(settings_json) = serde_json::to_string(&settings) {
|
||||
cmd.args(["--settings", &settings_json]);
|
||||
}
|
||||
@@ -503,7 +509,7 @@ impl WslBridge {
|
||||
.map(|m| !m.is_empty())
|
||||
.unwrap_or(false);
|
||||
|
||||
if has_memory_dir || has_overrides {
|
||||
if has_memory_dir || has_overrides || options.disable_skill_shell_execution {
|
||||
let mut settings = serde_json::Map::new();
|
||||
if let Some(ref dir) = options.auto_memory_directory {
|
||||
if !dir.is_empty() {
|
||||
@@ -520,6 +526,12 @@ impl WslBridge {
|
||||
}
|
||||
}
|
||||
}
|
||||
if options.disable_skill_shell_execution {
|
||||
settings.insert(
|
||||
"disableSkillShellExecution".to_string(),
|
||||
serde_json::Value::Bool(true),
|
||||
);
|
||||
}
|
||||
if let Ok(settings_json) = serde_json::to_string(&settings) {
|
||||
let escaped = settings_json.replace('\'', "'\\''");
|
||||
claude_cmd.push_str(&format!(" --settings '{}'", escaped));
|
||||
|
||||
Reference in New Issue
Block a user