Codex VS Code extension stopped auto-including IDE context after update

Resolved 💬 17 comments Opened Jul 8, 2026 by ps-bobbykotzev Closed Aug 13, 2026
💡 Likely answer: A maintainer (gpeal, contributor) responded on this thread — see the highlighted reply below.

What version of the IDE extension are you using?

26.623.141536

What subscription do you have?

Pro

Which IDE are you using?

VS Code remote/container (.vscode-server)

What platform is your computer?

Windows 11, Docker

What issue are you seeing?

Date observed: July 8, 2026
Previously working: July 7, 2026

Behavior before: prompts automatically included open file and selected text
Behavior now: open file and highlighted selection are no longer referenced unless manually added

What steps can reproduce the bug?

Select text in an open file in the IDE and prompt agent "What text have I selected?"

What is the expected behavior?

Codex IDE extension should automatically include open files and selected text, per docs

Additional information

  • Explicit commands still exist: Add to Codex Thread / Add File to Codex Thread
  • No documented setting found to disable automatic IDE context
  • Shared config had model pinned to gpt-5.4

View original on GitHub ↗

17 Comments

NoahStahl · 1 month ago

Just noticed this in VS Code extension. I hope this wasn't removed, useful for workflow.

oltolm · 1 month ago

I also have this problem.

lucavenir · 1 month ago

yeah, currently /ide doesn't do anything. an update bugged the extension or something.

NoahStahl · 1 month ago

I just noticed there is a context menu option Add to Codex Thread that creates a reference to open tab content, so that might be helpful as an alternative.

wsxq2 · 1 month ago

I'm facing the same problem. So far I've tried:

  • Logging out and back in → the IDE context icon appears briefly, but when I ask a question, it fails to recognize the selected code, and the icon disappears right after
  • Using /ide → no response
  • Reinstalling the Codex extension → no improvement
  • Switching to the pre-release version → same behavior as logging out and back in
  • Restarting VS Code → no improvement
  • Moving the panel from secondary to primary and back → same behavior as logging out and back in

This seems to be a session or context initialization issue rather than a missing installation.

Environment:

  • VS Code: 1.129.1
  • Codex extension: 26.715.61943
  • OS: WSL2 Ubuntu 22.04 in Windows11 25H2 26200.8875
Cloud-LII · 1 month ago
I'm facing the same problem. So far I've tried: Logging out and back in → the IDE context icon appears briefly, but when I ask a question, it fails to recognize the selected code, and the icon disappears right after Using /ide → no response Reinstalling the Codex extension → no improvement Switching to the pre-release version → same behavior as logging out and back in Restarting VS Code → no improvement Moving the panel from secondary to primary and back → same behavior as logging out and back in This seems to be a session or context initialization issue rather than a missing installation. Environment: VS Code: 1.129.1 Codex extension: 26.5715.61943

I have the same issue, my environment is Ubuntu 20.04 with 1.129.1 vs code and 26.715.61943 codex extension. Besides, do you misinput your extension version? With extra "5" for 26.715.

wsxq2 · 1 month ago
> I'm facing the same problem. So far I've tried: > > Logging out and back in → the IDE context icon appears briefly, but when I ask a question, it fails to recognize the selected code, and the icon disappears right after > Using /ide → no response > Reinstalling the Codex extension → no improvement > Switching to the pre-release version → same behavior as logging out and back in > Restarting VS Code → no improvement > Moving the panel from secondary to primary and back → same behavior as logging out and back in > > This seems to be a session or context initialization issue rather than a missing installation. > Environment: > > VS Code: 1.129.1 > Codex extension: 26.5715.61943 I have the same issue, my environment is Ubuntu 20.04 with 1.129.1 vs code and 26.715.61943 codex extension. Besides, do you misinput your extension version? With extra "5" for 26.715.

You are right, I have fixed the misinput. Thanks for the reminder.

RRRaymond · 1 month ago

Guys, this seems to be a bug in the latest version of codex extension. I manually installed version 26.5707.91948, and that fixed the issue.

lucavenir · 1 month ago

nah.

I'm on version 26.721.41059, which I'm guessing is greater than yours.

/ide makes the IDE context briefly appear, then disappear forever again.

cyhdzh · 29 days ago

Hi @gpeal — sorry to ping you directly about this. You’re one of the most knowledgeable people I know when it comes to the Codex VS Code extension. Your video from October 2025 was actually what introduced me to Codex.

The /ide-context command has stopped working since the launch of GPT-5.6 Sol. I’d really appreciate it if you could take a look, as the issue has persisted for more than two weeks. Losing /ide-context has become a major blocker in many users’ workflows, and several related issues have already been reported. https://github.com/openai/codex/issues/34696 https://github.com/openai/codex/issues/35419 https://github.com/openai/codex/issues/34920 https://github.com/openai/codex/issues/35333 https://github.com/openai/codex/issues/33978 (There used to be a long-running issue thread about this, but it seems to have disappeared for some reason.)

Thanks again for all your work on it!

gpeal contributor · 29 days ago

This will be fixed in the next release. Sorry for the regression here.

pdeva · 26 days ago

this is happening to us too.

Cloud-LII · 25 days ago
This will be fixed in the next release. Sorry for the regression here.

Still unable for IDE context function. Codex plugin version: 26.727.40816. System version: Ubuntu 20.04.

lucavenir · 22 days ago

@gpeal /ide worked again, briefly... and then on the extension / VS Code update, /ide stopped working, again.

NoahStahl · 20 days ago

This seems to be working again for me on version 26.803.41515

oltolm · 20 days ago

Seems to be fixed.

alexr-oai · 15 days ago

Hi folks, thanks for the reports and your patience. Happy to report that this issue should be resolved in the Codex IDE extension as of:

  • Stable: 26.803.41515, released August 7, 2026.
  • Pre-release: 26.5727.51351, released August 2, 2026.

If the issue persists after updating to one of these versions or a newer version, please comment with your extension version, editor, and operating system and we can investigate further.