Skip to content

Slash commands in the extension #3007

@honjo-hiroaki-gtt

Description

@honjo-hiroaki-gtt

What version of the VS Code extension are you using?

[Codex VS Code extension v0.4.0]

Which IDE are you using?

Visual Studio Code [1.103.2]

What platform is your computer?

macOS [15.6.1] (arm64) uname -mprs: [Darwin 24.6.0 arm64 arm]

What steps can reproduce the bug?

This is a FEATURE REQUEST (not a bug).

Reproduction of current limitation:

  1. Open the Codex panel in the VS Code extension.
  2. Focus the input field and type “/”.
  3. No command suggestions appear.
  4. Enter “/clear” and press Enter.
  5. The message is treated as plain text; no slash command is executed.

What is the expected behavior?

  • Typing “/” opens a slash-command palette with discoverable options (e.g., /clear, /diff, /init, /approvals, /model).
  • Keyboard navigation (Tab/Enter, Up/Down) to select a command.
  • Basic argument support (e.g., /diff --staged, /model o4-mini).
  • Commands that affect state (e.g., approvals) mirror the extension’s existing UI switcher (Chat / Agent / Agent (Full Access)).
  • Respect approval/sandbox settings; non-applicable commands are disabled with a tooltip.

What do you see instead?

  • The input treats “/” as normal text.
  • No suggestions appear.
  • /clear (and other slash commands that exist in the CLI) do not execute in the extension.
  • I have to use the mouse/UI to switch modes or run equivalent actions.

Additional information

Why this matters:

  • Parity with the Codex CLI/TUI, which already exposes slash commands.
  • Better discoverability for new users; faster workflows for power users.
  • Useful initial set: /clear, /diff, /init, /approvals, /model.

Environment:

  • VS Code extension: [v0.4.0]
  • VS Code: [1.103.2]
  • OS: macOS [15.6.1] (arm64)
  • CLI (if installed): [codex v0.27.0]

Optional ideas:

  • Setting to disable slash commands or require confirmation.
  • Allow custom slash commands mapped to user-defined prompts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestextensionIssues related to the VS Code extension

    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