Skip to content

CLI /setup displays cursors in both the Name and Slug fields #4732

Description

@hey-mira

What happened

When creating a provider connection through /setup, the identity step displays a cursor in both the Name and Slug fields at the same time.

Keyboard input is initially routed to Name. After pressing Enter, input correctly moves to Slug, but the visual cursor remains visible in Name while another cursor is displayed in Slug.

Exactly one field should display a cursor:

  • Initially, only Name should display the cursor.
  • After pressing Enter, the cursor should disappear from Name and appear in Slug.

How to reproduce

  1. Start the Maka TUI.
  2. Enter /setup.
  3. Select a provider that creates a new connection, such as OpenAI.
  4. Observe the identity step:
Name OpenAI▉
Slug openai▉
  1. Press Enter to move from Name to Slug, then type -work. Input is added to Slug, but both cursors remain visible:
Name OpenAI▉
Slug openai-work▉

Expected rendering before pressing Enter:

Name OpenAI▉
Slug openai

Expected rendering after pressing Enter and typing -work:

Name OpenAI
Slug openai-work▉

represents the visible reverse-video cursor.

Environment

  • Maka version or commit: c59f11db9 (main)
  • OS and version: Arch Linux, x86_64
  • Surface: TUI / CLI
  • Node.js version: v25.9.0

Logs, screenshots, or additional context

The problem appears to be visual: keyboard input is routed to the correct active field.

Initial investigation indicates that both editor components are rendered on the identity step. The underlying Editor renders its reverse-video fake cursor even when focused is false; focused only controls the hardware-cursor marker used for IME positioning. Consequently, the inactive editor still displays a fake cursor.

Submitted with Codex assistance under the reporter's direction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions