Skip to content

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

Merged
MathurAditya724 merged 2 commits intomainfrom
issue-940-simplify-non-tty-output
May 9, 2026
Merged

fix(init): simplify LoggingUI output for non-TTY consumers#941
MathurAditya724 merged 2 commits 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

@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-09 15:28 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 📉 -1
Passed Tests 📉 -1
Failed Tests
Skipped Tests

All tests are passing successfully.

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    77.06%    77.06%        —%
==========================================
  Files          317       317         —
  Lines        60594     60593        -1
  Branches         0         0         —
==========================================
+ Hits         46690     46692        +2
- Misses       13904     13901        -3
- Partials         0         0         —

Generated by Codecov Action

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
@MathurAditya724 MathurAditya724 force-pushed the issue-940-simplify-non-tty-output branch from 639efc3 to 88fea71 Compare May 9, 2026 15:24
@MathurAditya724
Copy link
Copy Markdown
Member Author

fix-ci: attempt 1 — extra blank line in test/lib/init/ui/logging-ui.test.ts tripping the formatter, removing it

@MathurAditya724
Copy link
Copy Markdown
Member Author

fix-ci: attempt 1 — removed extra blank line at line 250 in test/lib/init/ui/logging-ui.test.ts that the Biome formatter flagged. pushed 9b99cbd.

@MathurAditya724 MathurAditya724 marked this pull request as ready for review May 9, 2026 15:29
@MathurAditya724 MathurAditya724 enabled auto-merge (squash) May 9, 2026 15:29
@MathurAditya724 MathurAditya724 merged commit e21315c into main May 9, 2026
28 checks passed
@MathurAditya724 MathurAditya724 deleted the issue-940-simplify-non-tty-output branch May 9, 2026 15:33
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