Copying text adds leading spaces
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Copying assistant command snippets adds two leading spaces to every line.
This breaks top-level Python with IndentationError and prevents Bash heredoc
terminators from being recognized, leaving the shell at the > prompt. The
assistant repeatedly supplied affected snippets and initially blamed my
pasting. Please investigate code-copy whitespace preservation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported copy behavior with a top-level Python snippet and a Bash heredoc in the terminal. Trace how assistant command snippets are rendered and copied, then verify that copied lines preserve their original leading whitespace and that both examples execute without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100