Skip to content

Don't use Bash bind -x for llm chat on Windows - #1642

Open
gyanu2507 wants to merge 1 commit into
simonw:mainfrom
gyanu2507:fix/windows-chat-readline
Open

Don't use Bash bind -x for llm chat on Windows#1642
gyanu2507 wants to merge 1 commit into
simonw:mainfrom
gyanu2507:fix/windows-chat-readline

Conversation

@gyanu2507

Copy link
Copy Markdown

llm chat sets up left/right arrow keys through readline. On Windows that path sent Bash bind -x, which pyreadline3 does not implement, so chat could error before the prompt.

Use the GNU readline bind syntax on every platform, and ignore bind failures from readline stand-ins.

Fixes #1639

pyreadline3 on Windows does not implement that syntax, so chat could fail while setting up left/right cursor movement. GNU readline bind syntax works on both platforms; ignore bind errors from readline stand-ins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix llm chat key-binding error on Windows (pyreadline3)

1 participant