Skip to content

companion script fails with 'unknown variant thread/name/set' on Codex CLI 0.118.0 #119

Closed

Description

@NicoValentine7

Description

The codex-companion.mjs script fails when used with Codex CLI v0.118.0 (installed via brew install --cask codex).

The companion script sends a thread/name/set JSON-RPC method that is not recognized by the CLI.

Error

[codex] Starting Codex task thread.
Invalid request: unknown variant `thread/name/set`, expected one of `initialize`, `thread/start`, `thread/resume`, ...

Environment

  • Codex CLI: v0.118.0 (brew cask)
  • codex-plugin-cc: v1.0.2 (commit 8e403f9)
  • Node.js: v25.5.0
  • OS: macOS (Apple Silicon)

Steps to Reproduce

  1. Install Codex CLI v0.118.0 via brew install --cask codex
  2. Install codex-plugin-cc via /plugin marketplace add openai/codex-plugin-cc
  3. Run /codex:rescue or any task command
  4. Observe the thread/name/set error

Expected Behavior

The companion script should use the supported API methods for the current Codex CLI version.

Workaround

Using the Codex CLI directly from the terminal works fine. Only the plugin integration is affected.

Activity

  1. tmchow commented on Apr 3, 2026

    @tmchow
    Contributor

    Implemented in #126 - wraps the thread/name/set call in try/catch so it fails silently on older CLI versions.

  2. added a commit that references this issue on Apr 8, 2026
    4bd783b
  3. added a commit that references this issue on Jul 24, 2026
    a40cc61
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions