fix(clawdock): scope confirmation response (#103837)

This commit is contained in:
Peter Steinberger
2026-07-10 18:06:06 +01:00
committed by GitHub
parent 5e250aac74
commit 050177c784
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ _clawdock_ensure_dir() {
fi
# Auto-detect from common paths
local candidate found_path=""
local candidate found_path="" response
for candidate in "${CLAWDOCK_COMMON_PATHS[@]}"; do
if [[ -f "${candidate}/docker-compose.yml" ]]; then
found_path="$candidate"
+2
View File
@@ -42,10 +42,12 @@ describe("scripts/clawdock/clawdock-helpers.sh", () => {
[
'path_before="$PATH"',
'candidate="caller-value"',
'response="caller-response"',
"source scripts/clawdock/clawdock-helpers.sh || exit 1",
'_clawdock_ensure_dir < "$CLAWDOCK_CONFIRM_FILE" || exit 1',
'[[ "$PATH" == "$path_before" ]] || exit 1',
'[[ "$candidate" == "caller-value" ]] || exit 1',
'[[ "$response" == "caller-response" ]] || exit 1',
'[[ "$CLAWDOCK_DIR" == "$HOME/openclaw" ]] || exit 1',
].join("\n"),
],