Exception setting "CursorPosition": "The handle is invalid."

Resolved 💬 1 comment Opened Jan 28, 2026 by rachaelsingleton Closed Jan 28, 2026

What version of Codex is running?

codex-cli 0.92.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

CMD, PowerShell, VSCode

What issue are you seeing?

• Ran powershell -NoProfile -Command "Get-ChildItem -Force -Recurse -Path C:
  │ \Rachael\projects\oem-catalog -Filter AGENTS.md"
  └ SetValueInvocationException:
    Line |
       3 |  $RawUI.CursorPosition = @{X=0;Y=0}
         |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         | Exception setting "CursorPosition": "The handle is invalid."

What steps can reproduce the bug?

``codex init``

What is the expected behavior?

AGENTS.md created

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗