From 466a1e1cdb1e04efd4bf08ad92a0b05b55848b51 Mon Sep 17 00:00:00 2001 From: zerone0x Date: Thu, 19 Feb 2026 19:40:47 +0800 Subject: [PATCH] fix(clawdock): include docker-compose.extra.yml in helper commands (#17094) _clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes #17083 Co-authored-by: Claude --- scripts/shell-helpers/clawdock-helpers.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/shell-helpers/clawdock-helpers.sh b/scripts/shell-helpers/clawdock-helpers.sh index b076fa93956..8c491374799 100755 --- a/scripts/shell-helpers/clawdock-helpers.sh +++ b/scripts/shell-helpers/clawdock-helpers.sh @@ -136,7 +136,11 @@ _clawdock_ensure_dir() { # Wrapper to run docker compose commands _clawdock_compose() { _clawdock_ensure_dir || return 1 - command docker compose -f "${CLAWDOCK_DIR}/docker-compose.yml" "$@" + local compose_args=(-f "${CLAWDOCK_DIR}/docker-compose.yml") + if [[ -f "${CLAWDOCK_DIR}/docker-compose.extra.yml" ]]; then + compose_args+=(-f "${CLAWDOCK_DIR}/docker-compose.extra.yml") + fi + command docker compose "${compose_args[@]}" "$@" } _clawdock_read_env_token() {