Skip to content

Add color formatting to keychain unavailable warning#67

Merged
jancurn merged 5 commits intomainfrom
claude/display-keychain-error-red-6WmxQ
Mar 12, 2026
Merged

Add color formatting to keychain unavailable warning#67
jancurn merged 5 commits intomainfrom
claude/display-keychain-error-red-6WmxQ

Conversation

@jancurn
Copy link
Member

@jancurn jancurn commented Mar 12, 2026

This PR adds visual emphasis to the OS keychain unavailability warning message by wrapping it with red color formatting using the chalk library.

Changes

  • Import chalk library in src/lib/auth/keychain.ts
  • Wrap the keychain unavailable warning message with chalk.red() to display it in red text, making the warning more visually prominent to users
  • Update CLAUDE.md to clarify that minor cosmetic/styling changes (like color adjustments) should not require changelog entries

Implementation Details

The warning message is only colored when the keychain is unavailable and JSON mode is not enabled, preserving the existing conditional logic while improving the visual presentation of this important warning to users.

https://claude.ai/code/session_01G22KezC4Uhfxzse1md3Gi9

claude and others added 5 commits March 12, 2026 22:22
The OS keychain fallback warning was printed without any color styling,
making it easy to miss. Wrap the message in chalk.red() so it stands
out in human mode.

https://claude.ai/code/session_01G22KezC4Uhfxzse1md3Gi9
…log policy

Remove the changelog entry for the red keychain warning (too minor).
Update CLAUDE.md to explicitly exclude minor cosmetic/styling tweaks
from changelog requirements.

https://claude.ai/code/session_01G22KezC4Uhfxzse1md3Gi9
Make it explicit that lint must pass before committing, never be
skipped, and point to lint:fix for auto-fixing.

https://claude.ai/code/session_01G22KezC4Uhfxzse1md3Gi9
Update CLAUDE.md to mandate running npm test and fixing failures
before committing. Add chalk mock to keychain test to fix ESM
subpath import error under Jest.

https://claude.ai/code/session_01G22KezC4Uhfxzse1md3Gi9
@jancurn jancurn merged commit d069eb0 into main Mar 12, 2026
6 checks passed
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.

3 participants