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.
Problem
The phase progress bar in
AlgorithmDisplay.tshas misaligned emojis and labels due to variable emoji width in terminal fonts.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:emoji + 1 space(inconsistent width)3 chars + 2 spaces(fixed 5-char width)Solution
Use consistent 5-character columns for both rows, assuming emojis take 2 character cells:
[emoji](3 chars) + 2 spaces = 5emoji(2 chars) + 3 spaces = 5XXX(3 chars) + 2 spaces = 5Offer
Happy to submit a PR with this fix if desired. Already tested in our fork.