fix(openclaw): restore active runtime state

This commit is contained in:
William Valentin
2026-06-04 13:29:47 -07:00
parent dad13e7648
commit d2f4dd7cef
20 changed files with 10382 additions and 5904 deletions
+37 -12
View File
@@ -6,7 +6,7 @@ _openclaw_completion() {
prev="${COMP_WORDS[COMP_CWORD-1]}"
# Simple top-level completion for now
opts="completion setup onboard configure config backup doctor dashboard reset uninstall message memory agent agents status health sessions browser acp gateway daemon logs system models approvals nodes devices node sandbox tui cron dns docs hooks webhooks qr clawbot pairing plugins channels directory security secrets skills update -V, --dev --profile --log-level --no-color"
opts="completion setup onboard configure config backup doctor dashboard reset uninstall message mcp agent agents status health sessions tasks acp gateway daemon logs system models infer approvals exec-policy nodes devices node sandbox tui cron dns docs proxy hooks webhooks qr clawbot browser memory pairing plugins channels directory security secrets skills update -V, --container --dev --profile --log-level --no-color"
case "${prev}" in
completion)
@@ -20,7 +20,7 @@ _openclaw_completion() {
return 0
;;
onboard)
opts=" --workspace --reset --reset-scope --non-interactive --accept-risk --flow --mode --auth-choice --token-provider --token --token-profile-id --token-expires-in --secret-input-mode --cloudflare-ai-gateway-account-id --cloudflare-ai-gateway-gateway-id --anthropic-api-key --openai-api-key --mistral-api-key --openrouter-api-key --kilocode-api-key --ai-gateway-api-key --cloudflare-ai-gateway-api-key --moonshot-api-key --kimi-code-api-key --gemini-api-key --zai-api-key --xiaomi-api-key --minimax-api-key --synthetic-api-key --venice-api-key --together-api-key --huggingface-api-key --opencode-zen-api-key --opencode-go-api-key --xai-api-key --litellm-api-key --qianfan-api-key --modelstudio-api-key-cn --modelstudio-api-key --volcengine-api-key --byteplus-api-key --custom-base-url --custom-api-key --custom-model-id --custom-provider-id --custom-compatibility --gateway-port --gateway-bind --gateway-auth --gateway-token --gateway-token-ref-env --gateway-password --remote-url --remote-token --tailscale --tailscale-reset-on-exit --install-daemon --no-install-daemon --skip-daemon --daemon-runtime --skip-channels --skip-skills --skip-search --skip-health --skip-ui --node-manager --json"
opts=" --workspace --reset --reset-scope --non-interactive --accept-risk --flow --mode --auth-choice --token-provider --token --token-profile-id --token-expires-in --secret-input-mode --cloudflare-ai-gateway-account-id --cloudflare-ai-gateway-gateway-id --alibaba-model-studio-api-key --anthropic-api-key --arceeai-api-key --openrouter-api-key --byteplus-api-key --chutes-api-key --cloudflare-ai-gateway-api-key --deepseek-api-key --fal-api-key --fireworks-api-key --gemini-api-key --huggingface-api-key --kilocode-api-key --kimi-code-api-key --litellm-api-key --lmstudio-api-key --minimax-api-key --mistral-api-key --moonshot-api-key --openai-api-key --opencode-zen-api-key --opencode-go-api-key --qianfan-api-key --modelstudio-standard-api-key-cn --modelstudio-standard-api-key --modelstudio-api-key-cn --modelstudio-api-key --runway-api-key --stepfun-api-key --synthetic-api-key --together-api-key --venice-api-key --ai-gateway-api-key --volcengine-api-key --vydra-api-key --xai-api-key --xiaomi-api-key --zai-api-key --custom-base-url --custom-api-key --custom-model-id --custom-provider-id --custom-compatibility --gateway-port --gateway-bind --gateway-auth --gateway-token --gateway-token-ref-env --gateway-password --remote-url --remote-token --tailscale --tailscale-reset-on-exit --install-daemon --no-install-daemon --skip-daemon --daemon-runtime --skip-channels --skip-skills --skip-search --skip-health --skip-ui --node-manager --json"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -30,7 +30,7 @@ _openclaw_completion() {
return 0
;;
config)
opts="get set unset file validate --section"
opts="get set unset file schema validate --section"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -64,8 +64,8 @@ _openclaw_completion() {
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
memory)
opts="status index search "
mcp)
opts="serve list show set unset "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -94,8 +94,8 @@ _openclaw_completion() {
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
browser)
opts="status start stop reset-profile tabs tab open focus close profiles create-profile delete-profile extension screenshot snapshot navigate resize click type press hover scrollintoview drag select upload waitfordownload download dialog fill wait evaluate console pdf responsebody highlight errors requests trace cookies storage set --browser-profile --json --url --token --timeout --expect-final"
tasks)
opts="list audit maintenance show notify cancel flow --json --runtime --status"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -105,7 +105,7 @@ _openclaw_completion() {
return 0
;;
gateway)
opts="run status install uninstall start stop restart call usage-cost health probe discover --port --bind --token --auth --password --password-file --tailscale --tailscale-reset-on-exit --allow-unconfigured --dev --reset --force --verbose --claude-cli-logs --ws-log --compact --raw-stream --raw-stream-path"
opts="run status install uninstall start stop restart call usage-cost health probe discover --port --bind --token --auth --password --password-file --tailscale --tailscale-reset-on-exit --allow-unconfigured --dev --reset --force --verbose --cli-backend-logs --claude-cli-logs --ws-log --compact --raw-stream --raw-stream-path"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -129,13 +129,23 @@ _openclaw_completion() {
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
infer)
opts="list inspect model image audio tts video web embedding "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
approvals)
opts="get set allowlist "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
exec-policy)
opts="show preset set "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
nodes)
opts="status describe list pending approve reject rename invoke run notify push canvas camera screen location "
opts="status describe list pending approve reject rename invoke notify push canvas camera screen location "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -160,7 +170,7 @@ _openclaw_completion() {
return 0
;;
cron)
opts="status list add rm enable disable runs run edit "
opts="status list add rm enable disable show runs run edit "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -174,6 +184,11 @@ _openclaw_completion() {
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
proxy)
opts="start run coverage sessions query blob purge "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
hooks)
opts="list info check enable disable install update "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
@@ -194,13 +209,23 @@ _openclaw_completion() {
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
browser)
opts="status start stop reset-profile tabs tab open focus close profiles create-profile delete-profile screenshot snapshot navigate resize click type press hover scrollintoview drag select upload waitfordownload download dialog fill wait evaluate console pdf responsebody highlight errors requests trace cookies storage set --browser-profile --json --url --token --timeout --expect-final"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
memory)
opts="status index search promote promote-explain rem-harness rem-backfill "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
pairing)
opts="list approve "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
plugins)
opts="list info enable disable uninstall install update doctor "
opts="list inspect enable disable uninstall install update doctor marketplace "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -225,7 +250,7 @@ _openclaw_completion() {
return 0
;;
skills)
opts="list info check "
opts="search install update list info check "
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;