codex extension in vscode can not use slash command

Resolved 💬 12 comments Opened Mar 3, 2026 by MikoyChinese Closed Mar 3, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of the IDE extension are you using?

0.4.79

What subscription do you have?

codex

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Hi,

I’m using the Codex extension in VS Code. I connect to an Ubuntu 20.04 x86 host via the SSH extension in VS Code. However, when I open the Codex chat interface and type / in chat input box, no commands appear. Also, when I select text in the editor, no related text are shown in extension. According to the documentation(https://developers.openai.com/codex/ide/slash-commands), slash commands should be supported in the VS Code extension.

Could you help me understand why this feature is not working in my setup?

What steps can reproduce the bug?

None

What is the expected behavior?

None

Additional information

_No response_

View original on GitHub ↗

12 Comments

etraut-openai contributor · 4 months ago

What do you see when you type / in the text input box? Could you post a screen shot? You should see a popup menu above the text input.

MikoyChinese · 4 months ago

!Image

!Image

After I changed my network environment, the popup menu now appears when I type /. However, not all slash commands are available.
If I want to clear the context, how can I do that?

etraut-openai contributor · 4 months ago
not all slash commands are available

Which slash command is missing?

If I want to clear the context

What do you mean by context? If you want to clear the entire context window, you can just start a new chat by clicking on the button in the upper right of the panel to start a new chat.

<img width="107" height="60" alt="Image" src="https://github.com/user-attachments/assets/2c591327-774d-4123-8992-1a784d8785b6" />

If you want to disable IDE Context, click on the control of that name. If you want to remove images or source files that you've previously added as context, click on the "x" in the corresponding pill.

MikoyChinese · 4 months ago
  1. Some slash commands appear in the popup menu, while others only appear in the Codex UI. I thought that all slash commands would be unified in the popup menu.
  2. Thank you for your guidance on how to clear the context. It would be very convenient if it was available as a slash command.
etraut-openai contributor · 4 months ago

When you say "Codex UI", I presume you mean the TUI (terminal user interface)? The TUI supports additional slash commands, many of which don't make sense in the extension or are presented with other controls in the GUI.

syks0121 · 4 months ago

I have no prompts whatsoever, including pop-ups or commands.

MikoyChinese · 4 months ago
I have no prompts whatsoever, including pop-ups or commands.

Maybe you should check your network connection to the API URL. If you are in China, you can set up a proxy environment in the terminal where Codex is running.

tienanh0903k · 3 months ago

I’m experiencing the same issue.

When I type / in the chat input, nothing shows up — no popup or commands at all.

@MikoyChinese could you share what exactly you changed in your network environment to fix this? I suspect mine might be related as well.

Thanks!

MikoyChinese · 3 months ago

Make sure your network can access https://openai.com/

In my case, I was using this vscode extension in a Docker environment without network access. After fixing the network issue, the popup started working.

tienanh0903k · 3 months ago
Make sure your network can access https://openai.com/ In my case, I was using this vscode extension in a Docker environment without network access. After fixing the network issue, the popup started working.

Thanks for the suggestion! In my case, I’m running everything locally on Windows (no Docker or remote environment), and I can confirm that openai.com is accessible from my machine.However, typing / still doesn’t show any popup or commands.
Any suggestions on what else I could check (e.g., extension logs, settings, or known issues)? Appreciate your help!

MikoyChinese · 3 months ago

Try to restart vscode or reboot your machine.

JANGFREEMAN · 3 months ago
> Make sure your network can access https://openai.com/ > In my case, I was using this vscode extension in a Docker environment without network access. After fixing the network issue, the popup started working. Thanks for the suggestion! In my case, I’m running everything locally on Windows (no Docker or remote environment), and I can confirm that openai.com is accessible from my machine.However, typing / still doesn’t show any popup or commands. Any suggestions on what else I could check (e.g., extension logs, settings, or known issues)? Appreciate your help!

same issue. did you fix it?