Skip to content

Strange cursor character (Ā) rendered in CLI input #2008

@rossim2i2

Description

@rossim2i2

Bug

When using the Letta CLI in Wezterm (Arch Linux, Wayland), a strange character appears at the cursor position in the text input — it renders as Ā (A with macron) inside a white/inverse box. This is distracting enough to make the CLI unusable.

Environment

  • Arch Linux + Wayland (Niri compositor)
  • Wezterm (MesloLGS Nerd Font Mono, Tokyo Night theme)
  • TERM=xterm-256color
  • Bash with set -o vi (disabling vi mode does not fix it)
  • Letta Code 0.24.6

What I've tried

  • set +o vi before launching — no effect
  • Explicitly resetting cursor shape (printf "\e[0 q") — no effect
  • Changing Wezterm cursor style to SteadyBar — no effect
  • Claude Code CLI does not have this issue in the same terminal

Analysis

The CLI uses Ink's ink-text-input component, which renders its cursor via chalk.inverse() on the character at the cursor position (or chalk.inverse(" ") when at end of input). The Ā glyph appears to be how the inverse space character renders in this terminal/font combination. Other Ink-based CLIs (e.g., Claude Code) don't exhibit this, suggesting it may be specific to how Letta's Ink build or cursor rendering handles the inverse text.

Expected

Cursor should render as a subtle block or bar, not as a visible Unicode character.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions