o: fix /i command — was sending double-slash to prompt

$line still had the leading / from input, so echo "/$line" sent
//i ... to the agent. Use $cmd (which has the / stripped) instead.
This commit is contained in:
Ollie Agent 2026-08-08 23:00:59 +02:00
parent d596c31606
commit 79afb09f3d
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ cmd_prompt() {
cwd*) echo "$cmd" | ollie-9p write "$path/ctl"; echo "[${cmd}]" ;;
quit|q) tmux kill-session -t "o-${s}" 2>/dev/null; exit 0 ;;
agent*) echo "$cmd" | ollie-9p write "$path/ctl"; exit 0 ;;
i*) echo "/$line" | ollie-9p write "$path/prompt"; echo "[injected]" ;;
i*) echo "/$cmd" | ollie-9p write "$path/prompt"; echo "[injected]" ;;
help)
echo " /stop — interrupt running agent"
echo " /compact — compact context"