codex icon indicating copy to clipboard operation
codex copied to clipboard

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

Open ps-bobbykotzev opened this issue 4 months ago • 5 comments

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

ps-bobbykotzev avatar Jul 08 '26 09:07 ps-bobbykotzev

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

NoahStahl avatar Jul 18 '26 16:07 NoahStahl

I also have this problem.

oltolm avatar Jul 20 '26 18:07 oltolm

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

lucavenir avatar Jul 21 '26 09:07 lucavenir

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.

NoahStahl avatar Jul 21 '26 21:07 NoahStahl

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

wsxq2 avatar Jul 22 '26 01:07 wsxq2

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.

Cloud-LII avatar Jul 22 '26 08:07 Cloud-LII

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.

wsxq2 avatar Jul 23 '26 23:07 wsxq2

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.

RRRaymond avatar Jul 28 '26 17:07 RRRaymond

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.

lucavenir avatar Jul 28 '26 19:07 lucavenir

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!

cyhdzh avatar Jul 29 '26 13:07 cyhdzh

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

gpeal avatar Jul 29 '26 18:07 gpeal

this is happening to us too.

pdeva avatar Aug 01 '26 19:08 pdeva

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.

Cloud-LII avatar Aug 02 '26 16:08 Cloud-LII

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

lucavenir avatar Aug 05 '26 13:08 lucavenir

This seems to be working again for me on version 26.803.41515

NoahStahl avatar Aug 07 '26 19:08 NoahStahl

Seems to be fixed.

oltolm avatar Aug 07 '26 19:08 oltolm

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.

alexr-oai avatar Aug 12 '26 21:08 alexr-oai

this is still an issue for me. i am always on latest version of vscode and codex

Image

pdeva avatar Aug 31 '26 16:08 pdeva