pi-tandem 0.5.2 → 0.5.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.
- package/package.json +1 -1
- package/runtime/spawn-tmux.sh +9 -2
package/package.json
CHANGED
package/runtime/spawn-tmux.sh
CHANGED
|
@@ -47,10 +47,17 @@ prompt=${prompt//\'/\'\\\'\'}
|
|
|
47
47
|
|
|
48
48
|
# a crashed run may have left a stale result for this name
|
|
49
49
|
rm -f "$result"
|
|
50
|
+
|
|
51
|
+
# tmux gives the new pane the server's env, not the caller's - forward ours
|
|
52
|
+
envargs=()
|
|
53
|
+
while IFS= read -r -d '' kv; do
|
|
54
|
+
envargs+=(-e "$kv")
|
|
55
|
+
done < <(env -0)
|
|
56
|
+
|
|
50
57
|
if [[ -n "$model" ]]; then
|
|
51
|
-
tmux new-window -c "$PWD" -n "$name" "pi --no-session --model $model '$prompt'"
|
|
58
|
+
tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "pi --no-session --model $model '$prompt'"
|
|
52
59
|
else
|
|
53
|
-
tmux new-window -c "$PWD" -n "$name" "pi --no-session '$prompt'"
|
|
60
|
+
tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "pi --no-session '$prompt'"
|
|
54
61
|
fi
|
|
55
62
|
tmux set-option -w -t "$name" automatic-rename off
|
|
56
63
|
|