Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
test(host): expect a routine run's session to close on Windows
leepokaie08286e8978a
diff --git a/docs/features/routines.md b/docs/features/routines.mdindex de67350f..d55163cf 100644--- a/docs/features/routines.md+++ b/docs/features/routines.md@@ -73,7 +73,8 @@ are coalesced into one run per routine; only one routine per bot is dispatched atime. Bot actors serialize routine work with ordinary conversation work.Each run gets its own conversation thread and agent session. When the run ends,-the agent stops if nothing else has a session open (it ran just for the run);+the agent stops if nothing else has a session open (it ran just for the run;+not on Windows, see [agent processes](../architecture/conversation-runtime.md));otherwise only the run's session closes (agents that can close sessions). Eitherway a frequent schedule doesn't keep a set of MCP servers alive per run, andopening the run's thread resumes its session (agents that can resume sessions). Final results appeardiff --git a/host/tests/routines_e2e.rs b/host/tests/routines_e2e.rsindex ec328e77..10c88527 100644--- a/host/tests/routines_e2e.rs+++ b/host/tests/routines_e2e.rs@@ -297,9 +297,10 @@ async fn an_agent_started_for_a_run_stops_when_the_run_ends() {host.send(&bot, "LATER").await;host.wait_event("only-runs", "finished", "LATER").await;let events = host.agent_events("only-runs");- // The message started the agent again: the run's agent stopped with the run instead of closing its session.- assert_eq!(events.iter().filter(|e| e["event"] == "initialize").count(), 2);- assert!(!events.iter().any(|e| e["event"] == "closed"));+ let count = |event: &str| events.iter().filter(|e| e["event"] == event).count();+ // The message started the agent again: the run's agent stopped with the run. Windows never stops an agent (it+ // can't tell a dev server from an MCP server, see `lifecycle`), so there the run's session closes instead.+ assert_eq!((count("initialize"), count("closed")), if cfg!(windows) { (1, 1) } else { (2, 0) });}#[tokio::test]