Skip to content

branches list -o json emits spinner ANSI to stdout since v2.102.0, breaking JSON parsing #5397

Closed

Description

@camwest

supabase branches list -o json writes a progress-spinner escape sequence to
stdout ahead of the JSON. Parsing the captured output fails.

Works: v2.101.0
Breaks: v2.102.0

Environment: GitHub Actions (Ubuntu), stdout is not a TTY, CI=true.

Reproduce:

branches_json="$(supabase branches list --project-ref "$REF" -o json)"
node -e 'JSON.parse(process.argv[1])' "$branches_json"

Expected: stdout holds only the JSON array.

Actual: stdout starts with 1b 5b 3f 32 35 6c (ESC [ ? 2 5 l, hide-cursor)
followed by a gray │ spinner frame, so the parse throws:

SyntaxError: Unexpected token '', "[?25l[90"... is not valid JSON

Likely cause: v2.102.0 ported branches to TypeScript (#5374). The new
renderer writes the spinner to stdout even when stdout is not a TTY. The Go
build wrote clean JSON. Other commands ported in that release probably share
the bug.

Workaround: pin version: 2.101.0.

Activity

  1. camwest commented on May 29, 2026

    @camwest
    Author

    Let me know if you have any questions on above! See screenshot for additional context.

    Image
  2. zlotnika commented on May 30, 2026

    @zlotnika

    Opened #5400 — fixes this at the textOutputLayer.task boundary by skipping the spinner when stdoutIsTty is false, so all the v2.102.0-ported commands (branches/secrets/orgs/sso/etc.) stop polluting stdout in CI in one shot. Could you give it a try and confirm it unblocks your pipeline?

  3. added a commit that references this issue on Jun 1, 2026
    856339a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions