Keep Ori interactive when launched with a prompt (#8455)

This commit is contained in:
Luke Parke
2026-08-27 09:21:07 +02:00
committed by GitHub
parent 0ae1694830
commit eb7ecd13f3
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -92,8 +92,10 @@ omp)
;;
ori)
# Ori is a harness launcher, and `ori code` is the agent it runs itself.
# A prompt alone means one headless turn there, printed after the turn ends,
# so --interactive is what seeds the session with it and keeps the window.
command=(ori code)
[[ -n ${prompt:-} ]] && command+=(--prompt "$prompt")
[[ -n ${prompt:-} ]] && command+=(--interactive --prompt "$prompt")
;;
pi)
command=(pi)