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.

Merge pull request #225 from XuQianJin-Stars/fix/workbuddy-sign-in

leepokaieac71dc6fecf
diff --cc host/src/agent/auth/agent.rs
index ea56bdd7,af022cf5..c06d2c6a
--- a/host/src/agent/auth/agent.rs
+++ b/host/src/agent/auth/agent.rs
@@@ -92,8 -92,14 +92,14 @@@ fn stderr_reason(stderr_tail: &str) ->
/// Lets the agent sign itself in (it usually opens a browser on this computer).
pub async fn authenticate(store: &Store, backend: &str, method: &str) -> Result<Value> {
+ // A saved session makes WorkBuddy log out first, and that logout cancels the login.
+ if backend == "workbuddy" {
+ tokio::task::spawn_blocking(|| backends::move_saved_session_aside("workbuddy"))
+ .await
+ .context("couldn't prepare WorkBuddy sign-in")?;
+ }
let (acp, mut inbox, _, _) = start(store, backend).await?;
- let res = tokio::time::timeout(Duration::from_secs(10 * 60), sign_in(&acp, &mut inbox, method)).await;
+ let res = tokio::time::timeout(Duration::from_mins(10), sign_in(&acp, &mut inbox, method)).await;
acp.kill().await;
match res {
Ok(r) => {