Skip to content

feat: add --accessible flag for screen-reader-friendly output#47

Merged
scottlovegrove merged 1 commit intomainfrom
scottl/accessibility
Feb 21, 2026
Merged

feat: add --accessible flag for screen-reader-friendly output#47
scottlovegrove merged 1 commit intomainfrom
scottl/accessibility

Conversation

@scottlovegrove
Copy link
Collaborator

@scottlovegrove scottlovegrove commented Feb 21, 2026

Summary

  • Add --accessible global flag (and TW_ACCESSIBLE=1 env var) that annotates color-only indicators with text labels for screen readers: unread badges in inbox and conversation lists show (unread) instead of *, and thread separators use ASCII - instead of box-drawing
  • Fix bug where conversation unread status was fetched but never displayed (_unreadInfo discarded)
  • Replace box-drawing separators with ASCII - in accessible mode for better screen reader compatibility

Test plan

  • npm run type-check — clean
  • npm test — 217 tests pass
  • npm run format:check — clean
  • tw inbox --accessible — verify (unread) text labels appear
  • tw conversation unread --accessible — verify unread indicator shows
  • TW_ACCESSIBLE=1 tw inbox — verify env var mode works

Inspired by Doist/todoist-cli#95.

🤖 Generated with Claude Code

Adds an accessibility mode (--accessible flag or TW_ACCESSIBLE=1 env var)
that annotates color-only indicators with text labels. Also fixes a bug
where conversation unread status was fetched but never displayed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@doistbot doistbot requested a review from Bloomca February 21, 2026 18:32
@scottlovegrove scottlovegrove self-assigned this Feb 21, 2026
@scottlovegrove scottlovegrove added the 👀 Show PR PR must be reviewed before or after merging label Feb 21, 2026
Copy link

@doist-bot doist-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR introduces an --accessible flag and environment variable to improve screen reader compatibility by adding text labels to color-only indicators, while also fixing a bug with unread conversation statuses. This is a wonderful addition that makes the CLI more inclusive and ensures information is properly conveyed to all users. No issues were flagged during the review.

Share FeedbackReview Logs

@scottlovegrove scottlovegrove merged commit 5317cdf into main Feb 21, 2026
3 checks passed
@scottlovegrove scottlovegrove deleted the scottl/accessibility branch February 21, 2026 18:44
github-actions bot pushed a commit that referenced this pull request Feb 21, 2026
# [2.5.0](v2.4.0...v2.5.0) (2026-02-21)

### Features

* add --accessible flag for screen-reader-friendly output ([#47](#47)) ([5317cdf](5317cdf))
* add Gemini CLI skill ([#48](#48)) ([7992c26](7992c26))
@github-actions
Copy link

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released 👀 Show PR PR must be reviewed before or after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant