Skip to content

Codex CLI streams unexpected characters when ran via ssh in PowerShell #23474

Closed

Description

@sgiardl

What version of Codex CLI is running?

codex --version 0.131.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

PowerShell 7.6.1

Codex doctor report

What issue are you seeing?

I am running Codex CLI via ssh in PowerShell, after installing 0.131.0, I am seeing this stream of unexpected characters in PowerShell, it used to work perfectly in 0.130.0. Note that when I do "codex resume" the output is fine, but when I start a conversation or load up an existing conversation, this is what I'm seeing:

Image

Note that running this on the local machine works with no problem, but when accessing via ssh I am seeing this issue.

What steps can reproduce the bug?

  1. Connect via ssh in PowerShell 7.6.1 to a remote machine
  2. cd to the directory I want to work in
  3. run "codex resume"
  4. select the conversation
  5. hit enter
  6. I am seeing this stream of unexpected characters

What is the expected behavior?

Codex conversation launches as usual, just like in 0.130.0

Additional information

No response

Activity

  1. added
    bug
    on May 19, 2026
  2. added
    CLI
    windows-os
    TUI
    on May 19, 2026
  3. github-actions commented on May 19, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. sgiardl commented on May 19, 2026

    @sgiardl
    Author

    It does seem to be a duplicate of #23374 but mine has more detailed steps.

    Key facts are:

    1. This only occurs when running it via ssh on another Windows machine
    2. This only occurs after starting a new session or restarting an existing session, does not occur when inside the "codex resume" part where you see previous sessions
  5. kevod1997 commented on May 19, 2026

    @kevod1997

    I'm experiencing the exact same issue using PowerShell. As a temporary workaround, downgrading to 0.131.0-alpha.9 fixes the TUI rendering problem for now.

    Has anyone found a way or a specific flag to make it work on the latest 0.131.0 without having to downgrade?"

  6. hookland1-hub commented on May 20, 2026

    @hookland1-hub

    I'm experiencing the exact same issue using PowerShell. As a temporary workaround, downgrading to 0.131.0-alpha.9 fixes the TUI rendering problem for now.

    Has anyone found a way or a specific flag to make it work on the latest 0.131.0 without having to downgrade?"

    I can confirm same situation here on the last official update. Had to downgrade to the 0.131.0-alpha.9 as suggested from @kevod1997 as current workaround

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

    CLITUIbugremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions