Skip to content

Prevent duplicate text cursors in the composer #5373

Description

@open-design-crew

Summary

Two text cursors can appear on the canvas/composer area at the same time.

Current behavior

In the design-system extraction flow, the UI can show two visible insertion cursors simultaneously: one near the start of the composer text and another near the end of the visible text. This makes it look like two text fields or editing states are focused at once.

Expected behavior

Only one insertion cursor should be visible for the active text input. The composer/canvas should have a single focused editing target, and stale or duplicated caret rendering should be cleared when focus or text layout changes.

Steps to reproduce

  1. Open a design-system extraction flow.
  2. Focus the composer input with existing prompt text.
  3. Observe the text entry area.
  4. Intermittently, two carets appear in the same input/canvas region.

Notes

A screenshot was provided showing two visible carets in the input area: one at the beginning of the prompt text and one near the right side of the same row.

Why this matters

Duplicate cursors make the editing state ambiguous. Users may not know where typing will be inserted, and it makes the composer feel visually broken.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededuxUser experience and interaction polish

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions