Environment
- sentry CLI 0.38.0, installed via
curl https://cli.sentry.dev/install | bash
- macOS (Darwin 25.5.0), arm64, zsh
Summary
Every command I tried (org list, project list, issue view, issue resolve, auth status) finishes its work and writes complete output, but the process never exits. Reproduced both with stdout redirected to a file and under a pseudo-TTY (script); one project list was still alive ~40 minutes later. This breaks scripted usage — anything waiting on the exit code stalls.
Repro
sentry org list --json --log-level debug > out.json 2> debug.log
# out.json is complete, valid JSON ~2s in; process still alive 120s later
Debug log shows the work finishing, then nothing:
[http] ⚙ GET /api/0/users/me/regions/ → 200 (371ms)
[http] ⚙ GET /api/0/organizations/ → 200 (1424ms)
The main thread is parked, not spinning — looks like an open handle keeps the event loop referenced after the command completes. Reminiscent of #782/#833, but for ordinary commands rather than the init wizard.
Workaround
Redirect output to a file, poll until complete, then kill the PID.
Environment
curl https://cli.sentry.dev/install | bashSummary
Every command I tried (
org list,project list,issue view,issue resolve,auth status) finishes its work and writes complete output, but the process never exits. Reproduced both with stdout redirected to a file and under a pseudo-TTY (script); oneproject listwas still alive ~40 minutes later. This breaks scripted usage — anything waiting on the exit code stalls.Repro
Debug log shows the work finishing, then nothing:
The main thread is parked, not spinning — looks like an open handle keeps the event loop referenced after the command completes. Reminiscent of #782/#833, but for ordinary commands rather than the init wizard.
Workaround
Redirect output to a file, poll until complete, then kill the PID.