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): keep Cursor bots on Auto working with model settings

leepokai770a5910a162
diff --git a/docs/features/marketplace.md b/docs/features/marketplace.md
index 99d6da2f..9487c9ff 100644
--- a/docs/features/marketplace.md
+++ b/docs/features/marketplace.md
@@ -54,7 +54,7 @@ The shared bot editor requests `agentModels {backend}` from the selected compute
Discovery prefers ACP `configOptions` with category `model` (including grouped options), with conventional `model`/`models` IDs as a compatibility fallback. Older agents may expose `models.availableModels`. Model names and IDs come from the agent; Codync does not bundle a provider catalog. See the [ACP config option contract](https://agentclientprotocol.com/protocol/v1/session-config-options).
-A model's `options` are its own settings, such as reasoning effort or fast mode: `[{id, name, values: [{id, name}], default}]`. Every `initialize` sends `clientCapabilities._meta.parameterizedModelPicker: true`; Cursor then lists plain models and, on `cursor/list_available_models` (asked only of the Cursor backend), each model's settings as ACP select config options. Without the flag Cursor offers one fixed variant per model (`grok-4.7[reasoning_effort=high,fast=true]`) and rejects every other. The bot stores the picks as `modelOptions` (option id → value; an absent id means the agent's default). After choosing the model with `session/set_config_option`, the host sets each option the same way, on new sessions and again after `session/load`, because Cursor resumes a session on its last-used model. A bot saved with a variant ID keeps working: when the agent lists the plain model instead, the bracket's `key=value` pairs become options. Changing the model or agent clears the options; the host also clears them when an app that predates them changes the model.
+A model's `options` are its own settings, such as reasoning effort or fast mode: `[{id, name, values: [{id, name}], default}]`. Every `initialize` sends `clientCapabilities._meta.parameterizedModelPicker: true`; Cursor then lists plain models and, on `cursor/list_available_models` (asked only of the Cursor backend), each model's settings as ACP select config options. Without the flag Cursor offers one fixed variant per model (`grok-4.7[reasoning_effort=high,fast=true]`) and rejects every other. The bot stores the picks as `modelOptions` (option id → value; an absent id means the agent's default). After choosing the model with `session/set_config_option`, the host sets each option the same way, on new sessions and again after `session/load`, because Cursor resumes a session on its last-used model. A bot saved with a variant ID keeps working: when the agent lists the plain model instead, the bracket's `key=value` pairs become options (Auto's `default[]` becomes `default`). Some values change Cursor's billing: a larger context (Grok 4.7 at 500K) turns on its Max Mode. Changing the model or agent clears the options; the host also clears them when an app that predates them changes the model.
The editor keeps Default, shows available models in a dropdown, and resets the selected model when changing agents. Under the model it shows one picker per option (iPhone and desktop: a row each, named by the agent, with Default first; terminal UI: an Options row, ←→ to move, space to change). Errors are visible and retryable. Custom commands and agents without model discovery retain manual ID entry; an existing unlisted ID is preserved. The probe uses an isolated directory, so project-specific agent configuration can differ from the real bot session. Changing the model restarts the bot's agent sessions with fresh model context and preserves the stored chat history. The agent remains responsible for validating availability when a session starts.
diff --git a/host/src/agent/bot/session.rs b/host/src/agent/bot/session.rs
index 4e91b6ab..688cf1ae 100644
--- a/host/src/agent/bot/session.rs
+++ b/host/src/agent/bot/session.rs
@@ -372,7 +372,8 @@ fn model_error(model: &str, e: &anyhow::Error) -> anyhow::Error {
fn split_variant<'a>(res: &Value, model: &'a str) -> (&'a str, Vec<(&'a str, &'a str)>) {
let listed = |id: &str| crate::agent::auth::model_ids(res).iter().any(|m| m == id);
if let Some((name, params)) = model.strip_suffix(']').and_then(|m| m.split_once('['))
- && let Some(params) = params.split(',').map(|p| p.split_once('=')).collect::<Option<Vec<_>>>()
+ && let Some(params) =
+ params.split(',').filter(|p| !p.is_empty()).map(|p| p.split_once('=')).collect::<Option<Vec<_>>>()
&& !listed(model)
&& listed(name)
{
@@ -444,5 +445,8 @@ mod tests {
assert_eq!(split_variant(&plain, "other[x=1]"), ("other[x=1]", vec![]));
// Claude's `opus[1m]` is a model id of its own, not a variant.
assert_eq!(split_variant(&json!({"models": {"availableModels": [{"modelId": "opus"}]}}), "opus[1m]").1, vec![]);
+ // Cursor's Auto: `default[]` with variants, `default` without.
+ let auto = json!({"models": {"availableModels": [{"modelId": "default"}]}});
+ assert_eq!(split_variant(&auto, "default[]"), ("default", vec![]));
}
}