Skip to content

Suppress CLI banner for agent-run init errors #889

@sentry-junior

Description

@sentry-junior

when an AI agent runs sentry init without the required org context, the CLI emits the large Sentry ASCII art banner before failing. for agent-driven flows this is noisy token waste and should be suppressed when agent detection is active.

  • Reported by Sergiy Dybskiy.
  • Recent agent detection work should let us distinguish agent-invoked runs without relying only on TTY detection.
  • Observed command: sentry init --features errors,tracing,logs,replay,profiling,sourcemaps -y.
  • Observed result: exit code 61 with Needs the org specified. after printing the banner.
  • Goal: filter or suppress the ASCII art/banner for agent-triggered invocations, especially on early argument/config validation failures.

Action taken on behalf of Miguel Betegon.

Metadata

Metadata

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions