Add a slash command to switch between ws and http

Resolved 💬 4 comments Opened Apr 14, 2026 by qxcnm Closed Apr 15, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

cli

What feature would you like to see?

希望 /xxx 能支持ws和http模式切换

Additional information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 4 months ago

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

  • #16367
  • #17003
  • #16432

Powered by Codex Action

etraut-openai contributor · 4 months ago

Please describe the problem this would solve. The code in the Codex harness is designed to always use ws if it can and fall back to http if it cannot. Is this not working for you?

Nnutural · 4 months ago
Please describe the problem this would solve. The code in the Codex harness is designed to always use ws if it can and fall back to http if it cannot. Is this not working for you?

The CLI always show reconnecting 5 times when use WS,it's normal when it fall back to HTTP,only a detailed problem,but really need a reasonable solution

<img width="901" height="289" alt="Image" src="https://github.com/user-attachments/assets/fe8a93d3-6b9d-45de-a00b-52d7b455115e" />

etraut-openai contributor · 4 months ago

If you're not able to connect with ws, that typically means that there's a network configuration issue on your system or network. If you're on a corporate network, talk to your IT team.

While Codex can work with basic http, your experience will be degraded in that mode. There are a bunch of performance benefits that ws provides.