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:
parent
d596c31606
commit
79afb09f3d
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue