Copying text from the input box also copies the leading cursor symbol '▌'
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?
- Input a long text prompt into the input box.
- Select and copy the text from the input box.
- Paste the copied content into any text editor (e.g., Notepad, VS Code).
- 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.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗