Skip to content

Cursor position not correctly reported to macOS Accessibility API (Input Source Pro compatibility) #16154

@ppoppopy

Description

@ppoppopy

What happened?

Details:
Gemini CLI does not seem to update its cursor (caret) position via the macOS Accessibility API.
As a result, input helper utilities like "Input Source Pro" fail to track the cursor, causing the indicator
to appear at the window's default location (bottom-left) instead of near the caret.

What did you expect to happen?

Comparison:
In the same iTerm2/Terminal.app environment, other tools like zsh, tmux, and opencode-cli correctly report their cursor positions, and Input Source Pro works as expected.

Client information

Environment:

  • Gemini CLI version: 0.23.0
  • OS: macOS (Darwin)
  • Terminal: iTerm2
  • Utility used: Input Source Pro
  • CLI Version: 0.23.0
  • Git Commit: 3ff0558
  • Session ID: fdc4fe5c-51f8-43be-bac9-6518fc4cb98d
  • Operating System: darwin v25.2.1
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Memory Usage: 270.2 MB
  • Terminal Name: tmux 3.6a
  • Terminal Background: #18191b
  • Kitty Keyboard Protocol: Unsupported

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions