fix(init): align multiselect hint lines with clack's visual frame#435
Merged
MathurAditya724 merged 1 commit intomainfrom Mar 16, 2026
Merged
fix(init): align multiselect hint lines with clack's visual frame#435MathurAditya724 merged 1 commit intomainfrom
MathurAditya724 merged 1 commit intomainfrom
Conversation
The multiselect hint lines ('Error Monitoring is always included' and
'space=toggle, a=all, enter=confirm') were not prefixed with clack's │
bar character, causing them to be misaligned with the option lines
rendered below. Prefix hints with the gray │ bar to match clack's
visual frame.
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Init
Issue List
Other
Bug Fixes 🐛Dsn
Init
Other
Documentation 📚
Internal Changes 🔧Init
Tests
Other
Other
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ 111 passed | Total: 111 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 1101 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 95.02% 95.02% —%
==========================================
Files 163 163 —
Lines 22103 22104 +1
Branches 0 0 —
==========================================
+ Hits 21002 21003 +1
- Misses 1101 1101 —
- Partials 0 0 —Generated by Codecov Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sentry initfeature multiselect prompt by prefixing them with clack's│bar characterProblem
The multiselect hint lines ("Error Monitoring is always included" and "space=toggle, a=all, enter=confirm") were rendered without clack's
│bar prefix, causing visual misalignment with the option lines below them.Before:
After:
Root Cause
Clack's
multiselectrenderer does not split multi-linemessagestrings and prefix continuation lines with the│bar (unlikelog.message()which does). The hint lines were embedded in the message with only manualpadding, missing the│prefix that clack applies to option lines.Fix
Prefix hint lines with
chalk.gray("│")(U+2502) to match clack's visual frame, keeping the bar gray (matching clack's coloring) and the hint text dim.