Skip to content

Support click-to-copy and shift-click quote for structured reply sections #14384

Closed as not planned

Description

@oxysoft

Summary

Codex should let users copy or quote structured parts of assistant replies by clicking them directly.

For example, each numbered item or bullet in a reply should be individually targetable for fast reuse:

  1. mine for existing tickets specifically about commands being blocked during inference
  2. mine for existing tickets specifically about model/reasoning indicators in the footer/UI
  3. move to the next idea in the pile

The main interaction I want is:

  • click a reply section or list item to copy it
  • Shift+Click to append it into the composer as a quoted block, leaving the caret ready to continue typing two newlines below

Problem

Codex often produces structured responses that are clearly meant to be acted on or reused:

  • numbered next steps
  • bullet lists
  • option lists
  • short plans
  • quoted shell commands

Right now, reusing one of those units is more awkward than it should be. Users have to manually mouse-select terminal text, fight wrapping, or retype pieces that are already clearly structured.

That is especially wasteful when the reply is already segmented into obvious units with semantic boundaries.

Requested behavior

  • each bullet item / numbered item / compact reply section should be individually targetable
  • clicking one should copy that unit to the clipboard
  • Shift+Click should insert it into the composer as a quote, with the caret ready to continue below
  • quoting should preserve useful formatting instead of flattening everything into plain text

Example quote result:

> mine for existing tickets specifically about commands being blocked during inference

Interaction details

  • hover affordance should make it obvious which unit would be copied
  • copied units should be structurally scoped, not accidental line fragments
  • this should work especially well for numbered/bulleted lists because the boundaries are clear

If terminal mouse modifier detection is unreliable on some platforms, a good fallback would be:

  • plain click selects/highlights the unit
  • explicit inline affordances appear for Copy and Quote
  • or a configurable alternate gesture provides the same behavior

Why this matters

This would make Codex replies much more mechanically useful.

It turns structured output into a direct control surface:

  • click to reuse
  • shift-click to continue from it
  • no manual selection dance

That is especially valuable for planning, iterative prompting, and any workflow where the assistant offers multiple branches/options and the user wants to pick one instantly.

Additional ideas

Related affordances that would fit the same model:

  • click a code block gutter/icon to copy the raw block
  • click a heading or paragraph block to copy that section
  • keyboard parity for the same actions after focusing a reply unit
  • optional “append as plain text” vs “append as quote” behavior

Success criteria

  • structured reply units can be copied with one click
  • users can quote a unit into the composer without manual selection
  • the interaction is visually discoverable
  • the behavior is robust even in terminals with inconsistent modifier-click support

Activity

  1. added
    enhancement
    CLI
    TUI
    on Mar 11, 2026
  2. oxysoft commented on Mar 11, 2026

    @oxysoft
    Author

    Linking the keyboard-native companion here: #14386.

    That issue proposes a modal reply-selection mode with semantic unit navigation, multi-select, and configurable actions like append/quote/send/pipe.

    Together these feel like one system: reply structure becoming directly operable by either mouse or keyboard.

  3. removed
    CLI
    on Mar 11, 2026
  4. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions