mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 03:18:26 +00:00
refactor: unify restart gating and update availability sync
This commit is contained in:
@@ -61,3 +61,7 @@ export function isNativeCommandsExplicitlyDisabled(params: {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function isRestartEnabled(config?: { commands?: { restart?: boolean } }): boolean {
|
||||
return config?.commands?.restart !== false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user