WIP: A simple cli for daily tangled use cases and AI integration. This is for my personal use right now, but happy if others get mileage fro

Move session metadata from keychain to plain file to prevent credential loss

The current-session-metadata keychain entry was getting wiped by transient errors (e.g. network failure on wake) in the resumeSession() catch block, forcing users to re-authenticate unnecessarily. Changes: - Store session metadata in ~/.config/tangled/session.json (not keychain) so it survives sleep/wake cycles and keychain lock events - Don't clear metadata on transient agent.resumeSession() failures — only clear when loadSession() definitively returns null (no stored credentials) - Update session.test.ts to mock node:fs/promises with in-memory storage - Update api-client.test.ts to reflect new non-clearing behavior Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>


Author Mark Bennett Co-author Claude Sonnet 4.5 Committer Tangled Date Commit Parent 265ca911
+57 -19
4 changed files
+57 -19
4 changed files