README package-manager copy buttons include descriptive comments

Open 💬 0 comments Opened Aug 20, 2026 by ascendho

What is the issue?

The npm and Homebrew installation examples place their descriptive labels inside the shell code fences:

# Install using npm
npm install -g @openai/codex

GitHub's copy button therefore copies both the label and the executable command. Pasting the result does not produce a command-only snippet and may cause an error in environments where # is not treated as an interactive comment, such as a default interactive zsh configuration.

It would be clearer and safer to move the labels outside the fenced code blocks:

````markdown
Using npm:

npm install -g @openai/codex

Using Homebrew:

brew install --cask codex

````

This keeps the rendered documentation equally clear while ensuring each copy button copies only the intended command.

Where did you find it?

https://github.com/openai/codex#installing-and-running-codex-cli

View original on GitHub ↗