Cmd. /copy
Copy the latest completed Codex response as Markdown, including in-progress, rollback, and Ctrl+O behavior.
Key takeaways
/copycopies the latest completed Codex response to the clipboard as Markdown.- During an active turn, it copies the previous completed response rather than partial streaming text.
- It is unavailable before the first completed response and immediately after a rollback.
- Press
Ctrl+Oin the main TUI for the same operation without opening the slash menu.
Original Command Declaration
/copyOfficial Summary
/copy copies the latest completed Codex output to the clipboard.
Usage
/copyGood Examples
- Copy a completed plan or verification summary into an issue, pull request, or team message.
- Preserve a long response as Markdown without selecting terminal text manually.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/copy | Copies the latest completed response | You want to reuse the result elsewhere |
/raw | Simplifies terminal scrollback | You need to select parts of multiple turns or logs |
/diff | Shows working-tree changes | You need code changes rather than response text |
Use Cases
- Moving a completed plan into team documentation.
- Reusing a build and test summary in a pull request.
- Preserving Codex output without terminal formatting damage.
Cautions
- It does not copy partial output from the active turn.
- It is unavailable without a completed response or immediately after rollback.
- Check for secrets before sharing clipboard contents externally.
Release Basis
- Judgment: confirmed addition
- First evidence version:
rust-v0.105.0 - Date (UTC): 2026-02-25
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.105.0
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI 0.105.0: https://github.com/openai/codex/releases/tag/rust-v0.105.0