* Remove code comments and add the no-comments rule
Remove the comments from first-party code and configuration files:
TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell,
Docker, systemd, Nix, YAML, TOML, JSONC and GritQL.
Keep only what a tool reads: license headers, shebangs, compiler
and lint directives, JSDoc types in plain .js files, generated file
headers, GritQL scope lines, the install-server.sh help text and the
openbot-boat-pre-stop marker. Vendored code, fixtures and released
schemas keep their comments.
Add the rule to AGENTS.md, and change the docs that asked for
comments. Add two i18n keys that only comments named to
RELEASED_SOURCE_KEYS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep comments that are data in strings
The benchmark task files in opencode-free-models-bench.ts tell the
model what each function must do. The sample file and HTML page in
the two stories are display content. Put their comments back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep released migrations and mobile native inputs unchanged
check:migrations compares each released migration with v0.73.0 byte
for byte, so restore src/backend/migrations. A change to a native
build input of apps/mobile makes a new runtime version, so restore
those files and the extra fingerprint sources.
List these files and the comment markers that a tool reads in
AGENTS.md. Remove the last requests for comments in
src/renderer/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Stop OpenBot's Codex placeholders from turning off other apps' servers
OpenBot saves a disabled placeholder for each of its MCP servers in the
shared Codex user file, so Codex can keep "Always allow" approvals. The
placeholder used the plain server key, such as `t3-code`. Another Codex
app that sends a server with the same key at runtime got it turned off,
because Codex keeps `enabled = false` from the file.
- Each OpenBot server now goes to Codex as `openbot_<key>`. Computer Use
keeps its key. A reserved or user-owned `openbot_<key>` keeps the old
rule.
- Registration moves old plain-key placeholders, with their approvals,
to the new key, and removes the old entry.
- Approval and sign-in cards show the server name without `openbot_`.
- The name clash e2e now checks a second Codex app's thread before and
after the move.
Fixes#11041
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix review findings for the Codex openbot_ server keys
- Move old plain-key placeholders also for an agent with no MCP server.
A failed move does not stop that agent; the next start tries again.
- Count Codex calls to catalog plugins under the `openbot_` key in
analytics again.
- Report a Codex startup failure on the row whose `openbot_` key
matches first.
- Do not show a user's server as Codex's own `codex_apps` in cards.
- The name clash e2e checks the other app before and after the move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Send fewer prompt tokens to Codex, and add openbot.web_search
Codex threads now start with features.tool_suggest off, five unfit
system skills off, and, for toolless threads, agents and sleep off.
A key in the user's config.toml stays as the user set it. This removes
about 1,050 tokens from each Codex request.
Add the deferred openbot.web_search tool. A separate Codex session on
the Codex sign-in of this computer runs the search and returns a short
answer with source URLs. Only agents whose CLI has no web search of its
own get the tool: Pi, Inception, DeepSeek, OpenRouter and custom ACP
agents. Codex, Claude and the other CLIs keep their own search.
Add smoke:codex-agent, bench:codex-prompt-settings and
bench:codex-web-search.
* Stop a web search on Stop, and keep the user's skill entries
- Race openbot.web_search against the request's abort signal, as the
browser tools do. Stop now ends the side Codex process.
- A web search leaves one generation slot for the user's own work, and
checks shutdown and free slots again after Codex starts.
- Log why Codex was not ready for a web search.
- A [[skills.config]] entry by path also names its skill, so OpenBot
does not turn off a skill that the user turned on by path. Keep each
user entry as it is.
* Use one usage observer for side sessions, and remove an unused type
Memory reviews and web searches now use sideSessionUsageObserver with
a kind. Remove the CodexSkillConfig type, which knip reports as unused.
* Set the expected answer only when the bench question has one
This removes an exactOptionalPropertyTypes error that types:ratchet
reports in codex-web-search-bench.ts.
* Defer Codex MCP tools except Computer Use
Each enabled MCP server was in features.code_mode.direct_only_tool_namespaces
since #2900. Codex then sent the schema of each MCP tool in each request and
did not use tool_search or exec deferral. Now only Computer Use stays direct,
because its results are screenshots. The developer instructions name the
deferred servers, so the model knows what to search for.
Fixes#4468
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Point Codex agents from OpenBot's tool search to their MCP tools
Since the previous commit, Codex defers each MCP server except Computer Use.
A model can still look for such a tool in OpenBot's own catalog first. Then
openbot.tool_search and a failed openbot.tool_call now tell it where the tool
is: Codex's tool_search, or ALL_TOOLS in exec. Pi keeps its own note.
Refs #4468
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the Codex deferred-server rule in one helper
The developer instructions and the tool router now use
codexDeferredMcpServers. Move the JSDoc of #deferredMcpNote off
#askUi. Correct the comment about resume: a session started before
keeps its MCP namespaces direct until its next new session.
Refs #4468
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Record that Codex drops MCP images beside structuredContent
Issue #3265. A direct Codex MCP call gives the model the result's
structuredContent alone and drops each content block, images included.
The E2E now records both cases on the real codex app-server, so a Codex
update that keeps the images fails the step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove an unused field from the fake model request type
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Codex 0.164 does not add `features.code_mode.direct_only_tool_namespaces`
on `thread/resume` to a thread that started without it. A Codex thread that
started before #2900 (OpenBot 0.50.0) on a code-mode-only model, such as
GPT-6, thus resumes with its MCP tools deferred and does not find them.
Codex 0.162 and 0.163 applied the list on resume.
Bump `CODEX_MCP_ADAPTER_VERSION` to 8. The tool fingerprint changes, so each
Codex agent starts one replacement session with the list.
`scripts/codex-code-mode-mcp-e2e.ts` now checks the behavior that OpenBot
uses: a thread that starts with the list keeps it on resume. It passes on
Codex 0.162.1, 0.163.0 and 0.164.0.
Refs #3149
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let GPT-6 models in Codex call MCP server tools
A code-mode-only model, such as GPT-6, gets its MCP tools deferred into
the Codex `exec` cell. The request does not name them, so the model does
not find them, and it asks for another message.
Send the `mcp__<key>` namespace of each enabled MCP server in
`features.code_mode.direct_only_tool_namespaces`, beside `openbot`. The
keys are the final Codex keys, renamed keys included. Codex applies the
list on `thread/resume`, so the adapter version stays the same and
existing sessions keep their history.
Add `scripts/codex-code-mode-mcp-e2e.ts`. It runs the real Codex
app-server with GPT-6 model metadata, a fake Responses model and a local
MCP server.
Closes#2897
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Name Codex MCP namespaces with underscores for hyphens
Codex changes each character other than a letter, a digit or `_` in an
MCP server name to `_`. OpenBot keeps `-` in its keys, so the direct-only
entry for a server such as `google-calendar` did not match its
`mcp__google_calendar` namespace. Apply the same change.
In the E2E, stop the app-server when `initialize` fails, and add a step
for a hyphenated name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>