Skip to content

AlgorithmDisplay: Emoji alignment issue in phase progress barΒ #466

Description

@Steffen025

Problem

The phase progress bar in AlgorithmDisplay.ts has misaligned emojis and labels due to variable emoji width in terminal fonts.

β”‚  [πŸ‘] 🧠 πŸ“‹ πŸ”¨ ⚑ βœ… πŸ“š   
β”‚  OBS THI PLA BUI EXE VER LEA  

The emoji icons don't align with their 3-letter labels because emojis have variable display width (1-2 character cells depending on terminal/font).

Root Cause

In Packs/pai-algorithm-skill/src/skills/THEALGORITHM/Tools/AlgorithmDisplay.ts, lines ~257-289:

  • Icons row: emoji + 1 space (inconsistent width)
  • Names row: 3 chars + 2 spaces (fixed 5-char width)

Solution

Use consistent 5-character columns for both rows, assuming emojis take 2 character cells:

  • Active: [emoji] (3 chars) + 2 spaces = 5
  • Complete/Pending: emoji (2 chars) + 3 spaces = 5
  • Labels: XXX (3 chars) + 2 spaces = 5

Offer

Happy to submit a PR with this fix if desired. Already tested in our fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions