CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

ProxyAI chat steals editor focus on tab switch with keybindings

Open evrenesat opened this issue 11 months ago • 1 comments

What happened?

Repro: — Focus the ProxyAI(PAI) chat sidebar. — Press Esc to focus on the active editor. — Try navigating to previous or next tab using keyboard shortcuts. Editor switches to another tab once, then PAI steals the focus and the rest of the keyboard shortcuts cause us to toggle between the Chat and Chat History tabs of the sidebar. — If I make a change in the editor after focus, then PAI doesn't interfere, the tab switching works properly.

Another related issue is that using Esc to focus back to the editor from the the chat box does not work consistently. Sometimes it doesn't work at all, sometimes it works after the second press, sometimes it works the first time.

Relevant log output or stack trace


Steps to reproduce

No response

CodeGPT version

3.0.0-241.1

Operating System

macOS

evrenesat avatar Mar 07 '25 16:03 evrenesat

Additional note - It also steals focus when the Proxy AI tool is open and I click-select a different file on the Project Files tree.

After many trial-and-errors I've finally found that makes "F6" (file rename) shortcut stop working sometimes (It's the AI Proxy stealing focus) 😅

HitoriSensei avatar Mar 11 '25 18:03 HitoriSensei