opencode: only load tracker plugin when ran as op

This commit is contained in:
David Chen 2026-02-05 16:13:56 -08:00
parent 3e14a478a6
commit e0122ed654
2 changed files with 7 additions and 1 deletions

View file

@ -47,7 +47,6 @@ _op_run() {
fi
local -a to_link=(
plugin
history
sessions
logs
@ -66,6 +65,13 @@ _op_run() {
fi
done
mkdir -p "$tmp_home/plugins"
local f
for f in "$base_home/plugins"/* "$base_home/tui-plugins"/*; do
[ -e "$f" ] || continue
ln -s "$f" "$tmp_home/plugins/" 2>/dev/null
done
if ! mkdir -p "$tmp_home/command"; then
trap - EXIT INT TERM
eval "$cleanup_cmd"