Skip to content

Desktop direct thread resume fails with invalid transport in mcp_servers.codex_app unless Web UI resumes it first #2

Description

@hitsmaxft

Environment: macOS 27 arm64, codex-bridge v0.2.4 (37b9962), bundled Codex app-server 0.153.4.

After installing with ./scripts/install-macos.sh --web-ui and relaunching Desktop, opening an existing thread directly in Desktop fails:

thread/read succeeds, but thread/resume returns -32600:
failed to load configuration: invalid transport in mcp_servers.codex_app

~/.codex/config.toml contains no mcp_servers.codex_app entry and passes normal CLI loading. The MCP configuration is injected dynamically by Desktop.

If the same thread is opened in the Web UI first, codex-bridge sends thread/resume without the Desktop MCP override. After that, Desktop can access the already-loaded thread. This is only a preload workaround.

Expected: a thread should resume directly from Desktop when interposition is enabled, without requiring Web UI preloading.

Suggested fixes:

  1. Add a Desktop-direct thread/resume compatibility test.
  2. Determine which Desktop request field becomes the invalid codex_app transport.
  3. Preserve or reconstruct Desktop’s dynamically injected MCP launch configuration for the managed app-server.
  4. Until compatible, detect the affected Desktop/app-server version and disable desktop_interposition by default instead of leaving Desktop threads unusable.

Supported workaround: set desktop_interposition = false, restart the bridge, and unset both launchd environment variables.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions