Show the IDE Context payload attached to each message and make selected-text auto-context visible
What variant of Codex are you using?
IDE Extension
What feature would you like to see?
Please make IDE Context transparent at the user-message level.
When IDE Context is enabled, Codex automatically attaches VS Code context such as the active file, some open tabs, diagnostics, and selected text. Today, after a message is sent, the chat UI does not show whether IDE Context was attached to that specific message or what was included.
This is especially easy to miss when selected text is present. A user can accidentally keep sending a large unrelated selection repeatedly because the IDE Context indicator is subtle gray text on a dark background. Previously it was blue, which made the enabled state much easier to notice. The sent context is also not visible in the conversation.
Overall, there is no way to check what context was added except by manually inspecting raw JSONL rollout files.
Requested behavior:
- Add a small icon or text hint near each user message bubble when IDE Context was attached to that message. One option is to use a UI similar to the current treatment for explicitly quoted chat selections via "Add to chat":
<img width="453" height="202" alt="Image" src="https://github.com/user-attachments/assets/9aa67102-838f-4123-86f8-d9761539ce44" />
Though the label could be more compact for IDE Context, since it is automatic (when enabled) and often attached to every message.
- Clicking or hovering over that hint should reveal exactly what context was passed: selected editor text first, then list of tabs or other context details below it.
Additionally:
- Consider showing a warning or preview when a large editor selection is about to be sent as part of IDE context.
or
- Consider showing a warning or confirmation when the user has already sent an IDE selection as context, but sends the next message while the same text is still selected in the IDE and IDE Context toggle still enabled. That is almost always accidental, and the same selected text should not be sent automatically again without user acknowledgement.
- Consider making the enabled
IDE Contexttoggle more noticeable again, for example with blue or another accent color. This matters because it may include sensitive information or degrade the prompt by automatically appending an unrelated selection.
Additional information
Related issues:
- #26289
- #14748
- #12454