python / python/cpython

Cannot paste into REPL r-search

Open
#145,375 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib topic-repl type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

When you paste into the REPL r-search, it accepts the current result and then adds [200. This seems like bracketed paste mode not being handled correctly.

I tested this on Ghostty and Terminal.app.

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs
  • gh-145398

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the paste in the REPL r-search on macOS, using the reported Ghostty or Terminal.app setup, and trace the bracketed-paste handling there. Done means pasted input is accepted as a single paste without adding the literal [200 sequence; linked PR gh-145398 indicates work is already underway.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.