Skip to content

ProxyAI chat steals editor focus on tab switch with keybindings #915

@evrenesat

Description

@evrenesat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions