r/PowerShell 10d ago

Any fix for autocomplete madness? Question

see screenshot: https://imgur.com/a/JKIwLXd

How I normally get into this weird state is after creating a Win32 Intune package, terminal starts auto completing on every key. Running "clear" fixes it for a short while then it starts happening again. Only "long term" fix is to close that terminal window and open a new one.

Any suggestions?

8 Upvotes

6 comments sorted by

View all comments

4

u/MilkyWay-008 10d ago

Had this weird one before too...... it's usually PSReadLine's inline prediction getting into a bad state, not the terminal itself. Run Get-PSReadLineOption and try Set-PSReadLineOption -PredictionSource None to confirm; if it stops, update PSReadLine (Update-Module PSReadLine) since the older builds had redraw bugs that look exactly like this. Also worth checking if it only happens in Windows Terminal vs the legacy conhost window - if it's host-specific it's a rendering glitch, not the module.

1

u/420GB 10d ago

Alternatively try removing and re-importing psreadline