/compact command does not exist on the VSCode Extension like it does for the regular Codex CLI

Resolved 💬 1 comment Opened Mar 22, 2026 by DhruvParikh1 Closed Mar 22, 2026

What version of the IDE extension are you using?

1.111.0 (user setup)

What subscription do you have?

ChatGPT Pro

Which IDE are you using?

VS Code

What platform is your computer?

Windows_NT x64 10.0.26200

What issue are you seeing?

The /compact command is available in the regular Codex CLI (terminal) but is not present in the VSCode Extension. When using the VSCode Extension, typing /compact does not trigger any compaction action, making it impossible to manually compact the context from within the IDE extension.

What steps can reproduce the bug?

  1. Install the Codex VSCode Extension
  2. 2. Open a Codex chat session in VS Code
  3. 3. Type /compact in the chat input and press Enter
  4. 4. Observe that the command is not recognized and no compaction occurs

Expected: The /compact command should compact the context, as it does in the regular Codex CLI.
Actual: The command is not recognized or does nothing in the VSCode Extension.

What is the expected behavior?

The /compact command should be available in the VSCode Extension, just like it is in the regular Codex CLI. When invoked, it should compact the current conversation context to free up token space.

Additional information

_No response_

View original on GitHub ↗

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