@nathan33/nao-skill 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1000,7 +1000,13 @@ cmd_close() {
|
|
|
1000
1000
|
# 闸门②:在跑 turn(tmux 可判;非 tmux 宿主无法判 → 需 --force)
|
|
1001
1001
|
pane="$(find_pane_for "$name" "$repo")"
|
|
1002
1002
|
if [[ -n "$pane" ]]; then
|
|
1003
|
-
|
|
1003
|
+
# 显式双分支赋值:pane 空闲时 bus 必须落为 ""。
|
|
1004
|
+
# 曾用 `pane_busy "$pane" && bus=…`:pane_busy 为假时 && 短路,bus 在 set -u 下未绑定 → 行 1007 崩溃。
|
|
1005
|
+
if pane_busy "$pane"; then
|
|
1006
|
+
bus="tmux pane $pane 末行显示在跑 turn"
|
|
1007
|
+
else
|
|
1008
|
+
bus=""
|
|
1009
|
+
fi
|
|
1004
1010
|
else
|
|
1005
1011
|
bus="非 tmux 宿主,无法确认是否在跑 turn"
|
|
1006
1012
|
fi
|