This fixes session persistence issues on macOS where login credentials were not being saved to the keychain. Also standardizes the config directory location across all platforms.
Changes#
Keyring Platform Support
- Fixed macOS keychain integration by using
apple-nativefeature instead of Linux-onlysync-secret-service - Added platform-specific keyring features:
- macOS:
apple-native(uses macOS Keychain) - Linux:
sync-secret-service,vendored(uses GNOME Keyring/KWallet) - Windows:
windows-native(uses Windows Credential Manager)
- macOS:
Config Path Standardization
- Moved config directory to
~/.config/tangledon all platforms for consistency - Previously used platform-specific paths (e.g.,
~/Library/Application Support/tangledon macOS)
Error Messages
- Improved keychain error messages to be more descriptive
I tested this (since my macOS auth was broken without it), and it now works! However, I get a keychain prompt up for every CLI invocation to type in my password. Would be nice if it cached that, but I'm not sure what's going on with the Keychain -> Passwords app migration on macOS in recent versions.