Copying text from the input box also copies the leading cursor symbol '▌'

Resolved 💬 2 comments Opened Sep 17, 2025 by wildcatDownstairs Closed Nov 26, 2025

What version of Codex is running?

codex-cli 0.36.0

Which model were you using?

gpt-5-codex medium

What platform is your computer?

Windows 11

What steps can reproduce the bug?

  1. Input a long text prompt into the input box.
  2. Select and copy the text from the input box.
  3. Paste the copied content into any text editor (e.g., Notepad, VS Code).
  4. Observe that the leading cursor symbol ▌ is copied along with the text on each line.

<img width="2572" height="1247" alt="Image" src="https://github.com/user-attachments/assets/fd3c801d-8ce2-4d97-ab05-0e4d3f9a4beb" />

What is the expected behavior?

When I copy the text, only the text content itself should be copied, without any extra characters like the leading cursor symbol '▌'.

What do you see instead?

The copied text includes the leading cursor symbol '▌' at the beginning of each line.

Additional information

▌ After analyzing the module from a front-end architect's perspective, I recommend the following architectural optimizations without over-engineering:

▌ 1. Modularization and Code Splitting
▌ Separate Concerns: Isolate business logic from UI components, ensuring each component has a single responsibility.

▌ Extract Reusable Code: Move reusable utility functions and business logic into separate, independent modules.

▌ Organize by Feature: Structure the code directory by feature domain.

▌ 2. State Management Optimization
▌ Evaluate Scope: Assess the scope of the current state and make an informed decision on whether to use local or global state management.

▌ Encapsulate Logic: Encapsulate complex state logic to provide clear API interfaces.

View original on GitHub ↗

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