Skip to content

Extra characters inserted when the CLI gains and loses focus #931

@patik

Description

@patik

Describe the bug

When the CLI gains focus or loses focus (e.g. command-tab to another app), it inserts [O and [I, respectively.

CleanShot.2026-01-10.at.21.12.51.mp4

iTerm2 on macOS 26.1 (25B78)

Affected version

0.0.377 Commit: 4a0b36b

Steps to reproduce the behavior

  1. Type copilot
  2. Switch to another app

Expected behavior

It should not print anything

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions