Skip to content

Line-scoped Q&A + Edit Requests with Codex #2953

@roman-y-wu

Description

@roman-y-wu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions