Skip to content

install writes Codex agent role TOMLs that Codex rejects as "invalid transport" (0.9.1-rc.1) #1391

Description

@dergachoff

Problem

After install -y on v0.9.1-rc.1, Codex CLI 0.146.0 prints three startup warnings and drops all three generated roles:

Ignoring malformed agent role definition: failed to deserialize agent role file at ~/.codex/agents/codebase-memory[-scout|-auditor].toml: invalid transport

Evidence

Each generated profile's [mcp_servers.codebase-memory-mcp] table carries only enabled_tools — no command or url. Codex deserializes role files standalone, and its McpServerConfig requires a transport before config-layer inheritance applies, so the whole role is discarded. Current main renders the same table (src/cli/agent_profiles.c, since f0db224), and Codex rejects it identically on 0.144.0 through 0.147.0-alpha.4 — the profiles have been invalid since the feature landed, not a Codex regression.

Expected fix

Render command = "<installed cbm binary>" in each Codex role's table, keeping enabled_tools. Dropping the table instead would silence the warning but inherit the full MCP surface, defeating the per-role tool restriction. Sibling of #1387 (install summary vs. what actually lands, on a second client surface). Happy to send a small renderer + test PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions