opencode-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-tandem",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Shared agent system prompt and skills for OpenCode, from the tandem-skills repo",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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" "opencode --agent tandem --model $model --prompt '$prompt'"
58
+ tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "opencode --agent tandem --model $model --prompt '$prompt'"
52
59
  else
53
- tmux new-window -c "$PWD" -n "$name" "opencode --agent tandem --prompt '$prompt'"
60
+ tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "opencode --agent tandem --prompt '$prompt'"
54
61
  fi
55
62
  tmux set-option -w -t "$name" automatic-rename off
56
63