Line-scoped Q&A + Edit Requests with Codex

Resolved 💬 2 comments Opened Aug 30, 2025 by roman-y-wu Closed Nov 28, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Developers should be able to highlight specific lines in a file or PR diff and directly ask Codex questions or request edits, with responses returned as clean, range-limited diffs. This avoids noisy whole-file edits, improves code reviews, and makes AI assistance precise. In VS Code/JetBrains, users could highlight lines → “Ask Codex” / “Request Edit” → get an explanation or patch preview with options to apply, stage, or open as PR. In GitHub’s UI, the same flow should surface as review suggestions on selected lines. The response format must be a unified diff scoped to the selection, auto-formatted, and constrained to within range unless explicitly expanded by the user. This would streamline focused bug fixes, refactors, and review suggestions, cutting review cycles while maintaining code safety.

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 10 months ago

Thanks for the suggestion. I presume that you're using the Codex CLI? In case you weren't aware, this feature exists in the Codex VS Code extension. You can add specific lines of code to your context.

etraut-openai contributor · 9 months ago

This feature request has received only one upvote and no additional posts in three months, so I'm going to close.