You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyREPL corrupts attribute completion input on WSL/Windows Terminal #158955
Therefore changing the completer or disabling colors does not resolve the problem. Disabling PyREPL entirely does.
Expected behavior
After selecting a.swapcase from the completion list, the input should be:
a.swapcase()
Actual behavior
The input line is corrupted, for example:
a.sapcase()
The resulting expression nevertheless executes the swapcase() method, suggesting that the completion/input state and the displayed/reconstructed input line may be getting out of sync.
Additional information
This is reproducible with the standard Python 3.15.0rc3 REPL and does not require third-party Python packages.
Hello, I would love to work on this. Out of curiosity, does it also happen in Windows or just WSL?
It's just in WSL. No problem if you start Python 3.15rc3 from cmd or PowerShell.
Python is installed with pymanager in Windows.
I use Ubuntu 24.04 .5 LTS in WSL and Python is installed with uv.
Activity
edvilme commentedon Oct 7, 2026
Hello, I would love to work on this. Out of curiosity, does it also happen in Windows or just WSL?
edvilme commentedon Oct 7, 2026
https://github.com/user-attachments/assets/0eed208d-4ee0-4965-afef-fdf39dcad8a1
Video repro. I think the issue is that when typing the first character follwoing the completion menu, the terminal caret remains one column behind and the next character then visually overwrites the previous one
svankan commentedon Oct 8, 2026
It's just in WSL. No problem if you start Python 3.15rc3 from cmd or PowerShell.
Python is installed with pymanager in Windows.
I use Ubuntu 24.04 .5 LTS in WSL and Python is installed with uv.
edvilme commentedon Oct 8, 2026
Thanks. Was able to repro and submitted a PR that fixed it for me. Will test more during the week :)