Skip to content

/copy fails after successful output in SSH session (regression in 0.116.0) #15452

@Pein2017

Description

@Pein2017

What version of Codex CLI is running?

0.116.0

What subscription do you have?

ChatGPT Pro

Which model were you using?

All models

What platform is your computer?

Linux x86_64 Ubuntu

What terminal emulator and version are you using (if applicable)?

SSH remote session (from local machine) → Ubuntu server Terminal: bash

What issue are you seeing?

Issue: /copy fails even after successful model output

Environment:

  • Codex CLI version: 0.116.0
  • OS: Ubuntu (remote)
  • Access method: SSH into remote machine
  • Terminal: (fill in if known, e.g. bash / zsh / tmux)

Reproduction steps:

  1. Start a fresh Codex CLI session
  2. Enter a simple prompt: hi
  3. Wait until the model output fully completes and CLI is idle
  4. Run /copy

Expected behavior:

  • /copy should copy the latest completed model output

Actual behavior:

  • Error message:
    /copy is unavailable before the first Codex output or right after a rollback

Notes:

  • The model output is clearly visible and completed before running /copy
  • No rollback or undo actions were performed
  • This worked correctly in earlier Codex CLI versions (regression)
  • Issue is reproducible consistently

Additional context:

  • Running entirely in a remote SSH session (no local GUI clipboard)
  • Unsure if related to TUI state sync or SSH environment handling

What steps can reproduce the bug?

Uploaded thread: 019d15a0-162b-78b1-8610-7ea7469cfd26

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingremote

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions