fix(dispatch-preflight): prep-sandbox-space.sh 传 "true" 而非 "--force"(§2.5 1 行修复)
影响:dispatch-preflight.sh --force 实际未触发 prep-sandbox-space.sh 重播种,
旧空间残留导致后续派单基于陈旧 main
改动:脚本 line 77 $FORCE 改为 FORCE_FLAG="--force"(仅在 true 时赋值)
参考:dispatch-session-v2 §2.5 + dispatch-preflight.sh 自检流程
Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
1 parent
a20a11bab0
commit
bce08505d2
1 file changed
+4
-1
@@ -74,7 +74,10 @@ echo "[3/4] sandbox space 存在 + 可写"
|
|||||||
SPACE_DIR="/tmp/xstudio-sandbox/$WS_HASH/space"
|
SPACE_DIR="/tmp/xstudio-sandbox/$WS_HASH/space"
|
||||||
if [ ! -d "$SPACE_DIR" ] || [ "$FORCE" = "true" ]; then
|
if [ ! -d "$SPACE_DIR" ] || [ "$FORCE" = "true" ]; then
|
||||||
echo " ⚠️ space 不存在(或 --force),调 prep-sandbox-space.sh"
|
echo " ⚠️ space 不存在(或 --force),调 prep-sandbox-space.sh"
|
||||||
if ! bash "$SELF_DIR/prep-sandbox-space.sh" "$WS_HASH" $FORCE; then
|
# prep-sandbox-space.sh expects literal "--force" arg, not "true"(dispatch-session-v2 §2.5 bug)
|
||||||
|
FORCE_FLAG=""
|
||||||
|
[ "$FORCE" = "true" ] && FORCE_FLAG="--force"
|
||||||
|
if ! bash "$SELF_DIR/prep-sandbox-space.sh" "$WS_HASH" $FORCE_FLAG; then
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user