Skip to content

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.

fix(host): use current bot request state for file reminders

Sean Ferguson3d7b7283100f
diff --git a/host/src/agent/bot/files.rs b/host/src/agent/bot/files.rs
index f6521e2a..e40837fc 100644
--- a/host/src/agent/bot/files.rs
+++ b/host/src/agent/bot/files.rs
@@ -81,7 +81,7 @@ impl Actor {
fn can_send_file(&self) -> Result<i64> {
ensure!(!self.stop_requested, "turn is stopping");
ensure!(
- self.active_group.is_none() && self.active_ask.is_none() && self.active_routine.is_none(),
+ self.active_group.is_none() && self.active_request.is_none() && self.active_routine.is_none(),
"send_file is only available in the bot's own chat and threads"
);
self.turn.ok_or_else(|| anyhow!("no turn is running"))
diff --git a/host/src/agent/bot/turn.rs b/host/src/agent/bot/turn.rs
index 74b3d0d2..abd7f189 100644
--- a/host/src/agent/bot/turn.rs
+++ b/host/src/agent/bot/turn.rs
@@ -126,7 +126,7 @@ impl Actor {
prompt = format!("{prompt}\n\n{update}");
self.announce = Some((snapshot, identity));
}
- if remind_files && self.active_group.is_none() && self.active_ask.is_none() && self.active_routine.is_none() {
+ if remind_files && self.active_group.is_none() && self.active_request.is_none() && self.active_routine.is_none() {
prompt.push_str("\n\n[Codync: send_file(path, name?) shares any regular file up to 100 MiB as a downloadable card. Use it instead of sending a local path.]");
}
self.hub.set_runtime(&self.id(), |r| r.activity = "Thinking…".into());