Skip to content

refactor(init): use markdown pipeline for spinner messages#686

Merged
betegon merged 3 commits intomainfrom
refactor/spinner-markdown-pipeline
Apr 8, 2026
Merged

refactor(init): use markdown pipeline for spinner messages#686
betegon merged 3 commits intomainfrom
refactor/spinner-markdown-pipeline

Conversation

@betegon
Copy link
Copy Markdown
Member

@betegon betegon commented Apr 8, 2026

Summary

  • Pipe wizard spinner messages through renderInlineMarkdown so file names, commands, and project names render as styled inline code (backticks → ANSI code spans)
  • Update truncateForTerminal to measure visible width via stripAnsi, preserving ANSI sequences during truncation
  • Addresses review feedback from @BYK to use the markdown rendering pipeline for spinner output

Test plan

  • All 44 existing wizard-runner.test.ts tests pass
  • Biome lint clean
  • Manual: run sentry-cli init and verify spinner messages show styled file/command names

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Internal Changes 🔧

  • (eval) Replace OpenAI with Anthropic SDK in init-eval judge by betegon in #683
  • (init) Use markdown pipeline for spinner messages by betegon in #686
  • Regenerate skill files and command docs by github-actions[bot] in 584ec0e0

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/pr-preview/pr-686/

Built to branch gh-pages at 2026-04-08 10:03 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Codecov Results 📊

134 passed | Total: 134 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 1476 uncovered lines.
✅ Project coverage is 95.46%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    95.45%    95.46%    +0.01%
==========================================
  Files          223       223         —
  Lines        32502     32510        +8
  Branches         0         0         —
==========================================
+ Hits         31022     31034       +12
- Misses        1480      1476        -4
- Partials         0         0         —

Generated by Codecov Action

Pipe spinner messages through the markdown rendering pipeline so file
names, commands, and project names display as styled inline code in the
terminal. Truncation happens on the plain markdown source before
rendering, keeping truncateForTerminal simple.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@betegon betegon force-pushed the refactor/spinner-markdown-pipeline branch from 2f55b63 to 6bc04a4 Compare April 8, 2026 09:28
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7c94eb8. Configure here.

Address review feedback:
- Use safeCodeSpan() to safely wrap values in backtick code spans,
  handling values that may contain backticks, pipes, or newlines.
- Strip unmatched trailing backtick after truncation so
  renderInlineMarkdown doesn't produce a literal ` character.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@betegon betegon merged commit 7994bba into main Apr 8, 2026
27 checks passed
@betegon betegon deleted the refactor/spinner-markdown-pipeline branch April 8, 2026 11:19
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.

2 participants