fix(pi): keep interactive sessions open
lint / lint (push) Successful in 1m29s
test / unit (pull_request) Successful in 30s
test / integration (pull_request) Successful in 17s

This commit is contained in:
2026-06-09 06:00:40 -04:00
parent c8b5ba3812
commit 598a20a3f0
7 changed files with 55 additions and 10 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ def _plan(
supervise_plan=None,
use_runsc=False,
agent_provision=agent_provision or AgentProvisionPlan(
template="pi", command="pi", prompt_mode="print_read_prompt_file",
template="pi", command="pi", prompt_mode="append_system_prompt",
image="bot-bottle-pi:latest", dockerfile="",
guest_home="/home/node",
instance_name="bot-bottle-demo-abc12",
@@ -144,7 +144,7 @@ class TestPiProvisionSkills(unittest.TestCase):
class TestPiProvision(unittest.TestCase):
def test_creates_dir_and_copies_models_config(self):
provision = AgentProvisionPlan(
template="pi", command="pi", prompt_mode="print_read_prompt_file",
template="pi", command="pi", prompt_mode="append_system_prompt",
image="", dockerfile="", guest_home="/home/node",
instance_name="bot-bottle-demo-abc12",
prompt_file=Path("/tmp/prompt.txt"),
@@ -172,7 +172,7 @@ class TestPiProvision(unittest.TestCase):
def test_dies_when_dir_creation_fails(self):
provision = AgentProvisionPlan(
template="pi", command="pi", prompt_mode="print_read_prompt_file",
template="pi", command="pi", prompt_mode="append_system_prompt",
image="", dockerfile="", guest_home="/home/node",
instance_name="bot-bottle-demo-abc12",
prompt_file=Path("/tmp/prompt.txt"),