zsh terminal command competition adds extra characters at start
See original GitHub issueOS/Web Information
- Web Browser: Chrome
- Local OS: Windows 10
- Remote OS: Ubuntu
- Remote Architecture:
code-server --version: 3.11.1 c680aae973d83583e4a73dc0c422f44021f0140e
Steps to Reproduce
- Open a terminal with zsh
- Installed ohmyzsh
- Try any command with autocompletion with tab.
- Extra characters get added at the start.
Expected
Extra characters should not get added at the start. It is possible to edit the command after command completion.
Actual
Extra characters get added at the start.
Screenshot

This issue can be reproduced in VS Code: No
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
zsh terminal command competition adds extra characters at start
Steps to Reproduce. Open a terminal with zsh; Installed ohmyzsh; Try any command with autocompletion with tab. Extra characters get added at the ......
Read more >zsh - First characters of the command repeated in the display ...
The symptoms are that the display looks fine as long as you're adding characters or moving character by character but becomes garbled (with...
Read more >Remnant characters when tab completing with ZSH
It seems I had issues with locale configuration and non UTF8 configuration. In my case the fix was: export LC_ALL="en_US.UTF-8".
Read more >Chapter 5: Substitutions - A User's Guide to the Z-Shell
We'll come to this all in good time. The final use of modifiers is in filename generation, i.e. globbing. Since this usually works...
Read more >Extra characters when pasting into zsh w/ zprezto - Super User
The terminal expects Ctrl-Shift-V for paste. Thanks to muscle memory, ... then Ctrl-Shift-V. This would add those extra characters.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Does this still happen with the latest code-server? Maybe it was a rendering issue. A few other rendering issues seem to have been resolved in 4+.
If the problem persists, it might be worth trying this in your user settings:
Yes, Autocomplete works fine with mobaxterm ssh client with zsh shell and bash shell. Basic autocomplete supported by bash shell also works correctly in code server.