Skip to content

fix(init): simplify LoggingUI output for non-TTY consumers#941

Draft
MathurAditya724 wants to merge 1 commit intomainfrom
issue-940-simplify-non-tty-output
Draft

fix(init): simplify LoggingUI output for non-TTY consumers#941
MathurAditya724 wants to merge 1 commit intomainfrom
issue-940-simplify-non-tty-output

Conversation

@MathurAditya724
Copy link
Copy Markdown
Member

LoggingUI is used in non-TTY / CI contexts (--yes, piped output, npm/Node distribution). Two changes to reduce noise for programmatic consumers:

  • Skip the ASCII banner — the large SENTRY logo wastes vertical space and adds no functional value when output is consumed by agents, scripts, or CI logs. The banner was already suppressed for detected AI agents; this extends the suppression to all LoggingUI contexts.
  • Drop the ... prefix from spinner status lines — Checking prerequisites... reads cleaner than ... Checking prerequisites... in structured logs.

The interactive InkUI path is unaffected.

Testing

bun test test/lib/init/ui/logging-ui.test.ts — all 25 tests pass.

Fixes #940

Skip the ASCII banner entirely in LoggingUI (non-TTY/CI) and drop the
`... ` prefix from spinner status lines. This reduces noise for
programmatic consumers (agents, scripts, piped output) without
affecting the interactive InkUI path.

Fixes #940
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

PR Preview Action v1.8.1

QR code for preview link

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

Built to branch gh-pages at 2026-05-08 18:45 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Codecov Results 📊

6836 passed | Total: 6836 | 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 13932 uncovered lines.
❌ Project coverage is 77.02%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    77.03%    77.02%    -0.01%
==========================================
  Files          317       317         —
  Lines        60609     60615        +6
  Branches         0         0         —
==========================================
+ Hits         46684     46683        -1
- Misses       13925     13932        +7
- Partials         0         0         —

Generated by Codecov Action

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.

Simplify non-TTY output for sentry init

1 participant