Skip to content

[bug] ScalePrompt question and value rows truncate by code units #3124

Description

@Tomeshwari-02

Problem

ScalePrompt clips the question and numeric scale row with regular string slicing. This can mis-measure labels when the question contains wide characters or combining marks, causing visible overflow or broken glyphs.

Source

  • packages/ui/src/ScalePrompt.ts
  • Question and scale rows use .slice(0, width)

Expected Behavior

ScalePrompt should truncate display rows by terminal cell width, not string length.

Acceptance Criteria

  • Wide-character questions fit within the prompt width.
  • Scale rows remain within bounds on narrow terminals.
  • Add tests that assert rendered row display width stays within the component width.

Metadata

Metadata

Assignees

Labels

assignedIssue claimed by a contributor.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions