Line-scoped Q&A + Edit Requests with Codex

Resolved 💬 2 comments Opened Aug 30, 2025 by roman-y-wu Closed Nov 28, 2025

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 ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗