Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

fix(codex): offer the models and efforts Codex has now, and say what to do when a model is refused

Shahriar768de4c63ce5
diff --git a/docs/guide/agents.md b/docs/guide/agents.md
index 8b80a0b..3fd6ac1 100644
--- a/docs/guide/agents.md
+++ b/docs/guide/agents.md
@@ -40,7 +40,7 @@ agents cannot resume each other's sessions, so the next instruction starts a fre
| Binary | `claude` | `codex` | `agy` |
| Install | `npm i -g @anthropic-ai/claude-code` | `npm i -g @openai/codex` | [antigravity.google/docs/cli/install](https://antigravity.google/docs/cli/install) |
| Default model | `claude-sonnet-5` | the CLI's own | the CLI's own |
-| Effort names | `low`…`max` | `minimal`…`high` | `low`…`high` |
+| Effort names | `low`…`max` | `low`…`xhigh` | `low`…`high` |
| Kept off your machine by | a per-run tool allowlist plus an explicit deny list | a read-only sandbox (`sandbox_mode="read-only"`) | its own permission rules |
All three get the same system prompt, the same `browsentic` MCP server pointed back at the daemon,
diff --git a/src/daemon/agent/runners/codex.ts b/src/daemon/agent/runners/codex.ts
index f1119aa..6272b31 100644
--- a/src/daemon/agent/runners/codex.ts
+++ b/src/daemon/agent/runners/codex.ts
@@ -57,7 +57,7 @@ interface LegacyEvent {
export const codexRunner: Runner = {
kind: 'codex',
versionArgs: ['--version'],
- efforts: ['minimal', 'low', 'medium', 'high'],
+ efforts: ['low', 'medium', 'high', 'xhigh'],
workspace: () => stateDir,
@@ -142,7 +142,7 @@ export const codexRunner: Runner = {
case 'task_complete':
return sink.done('end_turn');
case 'error':
- return sink.fail('AGENT_FAILED', msg.error || msg.message || 'Codex reported an error');
+ return sink.fail('AGENT_FAILED', explain(msg.error || msg.message) || 'Codex reported an error');
default:
return;
}
@@ -178,10 +178,10 @@ export const codexRunner: Runner = {
}
case 'turn.failed':
- return sink.fail('AGENT_FAILED', frame.error?.message || 'Codex could not finish the turn');
+ return sink.fail('AGENT_FAILED', explain(frame.error?.message) || 'Codex could not finish the turn');
case 'error':
- return sink.fail('AGENT_FAILED', frame.message || frame.error?.message || 'Codex reported an error');
+ return sink.fail('AGENT_FAILED', explain(frame.message || frame.error?.message) || 'Codex reported an error');
default:
return;
@@ -242,6 +242,15 @@ export const codexRunner: Runner = {
},
};
+/** The API's error arrives as a JSON document inside the message; say the sentence, and what to do about a refused model. */
+function explain(raw: string | undefined): string | undefined {
+ if (!raw) return raw;
+ const message = parseJsonLine<{ error?: { message?: string } }>(raw)?.error?.message ?? raw;
+ return /model .*(not supported|does not exist|not found)/i.test(message)
+ ? `${message} Pick another model for Codex in the Browsentic popup, then try again.`
+ : message;
+}
+
function kindOf(item: Item | undefined): string | undefined {
return item?.type ?? item?.item_type;
}
diff --git a/src/lib/agents/catalog.ts b/src/lib/agents/catalog.ts
index e61d79a..9b84907 100644
--- a/src/lib/agents/catalog.ts
+++ b/src/lib/agents/catalog.ts
@@ -32,7 +32,7 @@ export const AGENTS: Record<AgentKind, AgentDescriptor> = {
bin: 'codex',
install: 'npm i -g @openai/codex',
docs: 'https://developers.openai.com/codex/cli',
- models: ['gpt-5.6-terra', 'gpt-5.1-codex-max', 'gpt-5.1-codex', 'gpt-5.1-codex-mini'],
+ models: ['gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5'],
},
antigravity: {
kind: 'antigravity',