Skip to content

fix: replace bare U+26A0 warning sign with emoji-presentation ⚠️#1660

Open
withsivram wants to merge 1 commit intoeyaltoledano:mainfrom
withsivram:fix/emoji-alignment-issue-1394
Open

fix: replace bare U+26A0 warning sign with emoji-presentation ⚠️#1660
withsivram wants to merge 1 commit intoeyaltoledano:mainfrom
withsivram:fix/emoji-alignment-issue-1394

Conversation

@withsivram
Copy link

@withsivram withsivram commented Mar 20, 2026

Summary

  • Replaces all 11 instances of bare (U+26A0, text presentation) with ⚠️ (U+26A0 + U+FE0F, emoji presentation) across 6 files
  • Text-presentation is measured as 1 column by terminal width calculators (including boxen), causing box borders to misalign when it appears in titles or content
  • Adding U+FE0F forces emoji presentation, which renderers correctly measure as 2 columns

Files changed

  • scripts/modules/prompt-manager.js — 1 instance
  • scripts/modules/error-formatter.js — 1 instance
  • scripts/modules/task-manager/tag-management.js — 2 instances
  • scripts/modules/commands.js — 5 instances (deprecation warnings)
  • scripts/modules/task-manager/migrate.js — 1 instance
  • apps/cli/src/commands/list.command.ts — 1 instance

Test plan

  • Run CLI commands that trigger warning boxes and verify alignment is correct
  • Verify emoji renders consistently across macOS Terminal, iTerm2, and VS Code terminal

Fixes #1394

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Updated warning symbol emoji in CLI console output messages across all commands and utilities for improved visual consistency and clarity in user-facing warnings and notifications.

eyaltoledano#1394)

Text-presentation ⚠ (U+26A0) is treated as a narrow/1-column character by
terminal width calculators (including boxen's), causing box borders to
misalign when it appears in titles or content. Adding the U+FE0F variant
selector forces emoji presentation, which renderers correctly measure as
2 columns, keeping boxen borders properly aligned.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 16:33
@changeset-bot
Copy link

changeset-bot bot commented Mar 20, 2026

⚠️ No Changeset found

Latest commit: c238f9d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 376bb89d-7c87-47dc-9dc6-340fc8fa46fa

📥 Commits

Reviewing files that changed from the base of the PR and between 2d1211b and c238f9d.

📒 Files selected for processing (6)
  • apps/cli/src/commands/list.command.ts
  • scripts/modules/commands.js
  • scripts/modules/error-formatter.js
  • scripts/modules/prompt-manager.js
  • scripts/modules/task-manager/migrate.js
  • scripts/modules/task-manager/tag-management.js

📝 Walkthrough

Walkthrough

Updates warning symbol prefixes across six CLI files from text presentation () to emoji presentation (⚠️) with variant selector to resolve terminal alignment issues in boxen titles and other warning messages.

Changes

Cohort / File(s) Summary
CLI Commands
apps/cli/src/commands/list.command.ts
Updated watch-mode error log warning prefix from to ⚠️ for consistent emoji rendering.
Script Deprecation Warnings
scripts/modules/commands.js
Changed deprecation warning prefixes for five tag-related commands (add-tag, delete-tag, use-tag, rename-tag, copy-tag) from to ⚠️.
Script Warning Display Utilities
scripts/modules/error-formatter.js, scripts/modules/prompt-manager.js
Updated warning header and schema validation warning messages from to ⚠️ in utility functions.
Task Management Warnings
scripts/modules/task-manager/migrate.js, scripts/modules/task-manager/tag-management.js
Changed warning prefixes in CLI log wrapper and tag deletion messages from to ⚠️ for consistent emoji presentation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • Crunchyman-ralph
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing bare U+26A0 warning signs with emoji-presentation ⚠️ across multiple files.
Linked Issues check ✅ Passed All 11 instances of the bare warning sign U+26A0 across 6 files have been replaced with emoji-presentation ⚠️, fully addressing issue #1394's requirements.
Out of Scope Changes check ✅ Passed All changes are directly in scope, limited to updating warning sign characters from text to emoji presentation across CLI files as required by #1394.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates CLI warning glyphs to enforce emoji presentation (⚠️) so terminal width calculators (e.g., boxen/string-width) consistently treat the character as double-width and avoid centered-title/border misalignment.

Changes:

  • Replaced remaining text-presentation warning signs () with emoji-presentation (⚠️) in warning boxes and warning log output.
  • Updated deprecation warnings and watch-mode error output to use ⚠️ for consistent rendering across terminals.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/modules/prompt-manager.js Uses ⚠️ in schema-validation-disabled warning log message.
scripts/modules/error-formatter.js Uses ⚠️ in displayWarning() box title/content to prevent boxen width miscalc.
scripts/modules/task-manager/tag-management.js Uses ⚠️ in tag deletion warning/notification strings shown in boxen output.
scripts/modules/commands.js Uses ⚠️ in deprecated tag-command warnings printed to console.
scripts/modules/task-manager/migrate.js Uses ⚠️ in migration logger’s warn indicator.
apps/cli/src/commands/list.command.ts Uses ⚠️ in watch-mode error output line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Warning emoji in boxen titles causes alignment issues

2 participants