Skip to content

feat(prompts): add accessible mode to spinner - #596

Open
dreyfus92 wants to merge 1 commit into
mainfrom
a11y/prompts-01
Open

feat(prompts): add accessible mode to spinner#596
dreyfus92 wants to merge 1 commit into
mainfrom
a11y/prompts-01

Conversation

@dreyfus92

Copy link
Copy Markdown
Member

What does this PR do?

adds accessible mode to spinner (pr 1 of #585).

when enabled (accessible option > global setting > ACCESSIBLE env var), the spinner emits static append-only output instead of animated repaints:

  • start message printed once, plain text
  • still working: <msg> heartbeat every 30s (accessibleInterval, 0 disables)
  • plain final line (Done / cancel / error), no glyphs, no ansi

baseline voiceover recordings showed repaints are completely silent to VO and glyphs get read out as words. cancellation/signal semantics unchanged, accessible takes precedence over CI mode.

Closes #

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@changeset-bot

changeset-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e153fb8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown

commit: e153fb8

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.

1 participant