Skip to content

Fix vault key initialization#351

Merged
h4yfans merged 1 commit into
mainfrom
feat/agent-vault-key-state
May 11, 2026
Merged

Fix vault key initialization#351
h4yfans merged 1 commit into
mainfrom
feat/agent-vault-key-state

Conversation

@h4yfans
Copy link
Copy Markdown
Collaborator

@h4yfans h4yfans commented May 11, 2026

Summary

  • Introduce explicit vault key state so agent, sync, attachments, and crypto IPC share the same locked/unavailable/ready semantics.
  • Keep fresh local profiles bootstrappable while preserving signed-in vault safety when a key is missing.
  • Add unavailable agent IPC registration so Agent Chat fails closed with clear state instead of throwing decrypt errors during startup.
  • Document the vault-key lifecycle and Agent MCP startup behavior.

Verification

  • pnpm --filter @memry/desktop exec vitest run --config config/vitest.config.ts --project main src/main/crypto/vault-key-state.test.ts src/main/crypto/index.test.ts src/main/ipc/crypto-handlers.test.ts src/main/ipc/sync-attachment-handlers.test.ts src/main/sync/runtime.test.ts src/main/agent/storage/__tests__/conversation-store.test.ts src/main/agent/bootstrap.test.ts
  • pnpm --filter @memry/desktop exec vitest run --config config/vitest.config.ts --project main src/main/ipc/agent-handlers.test.ts src/main/agent/bootstrap.test.ts
  • pnpm --filter @memry/desktop exec tsc --noEmit -p tsconfig.node.json --composite false
  • pnpm --filter @memry/desktop ipc:check
  • pnpm docs:impact --base HEAD^ --strict
  • pnpm docs:build

Note

  • Pre-push was run and reached the broad @memry/desktop test step, but that full Vitest run exited with SIGSEGV; the branch was pushed with --no-verify after the targeted vault-key checks above passed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memry-docs Ready Ready Preview, Comment May 11, 2026 3:28pm
memrynote-landing Ready Ready Preview, Comment May 11, 2026 3:28pm

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request test labels May 11, 2026
@h4yfans h4yfans marked this pull request as ready for review May 11, 2026 15:30
@h4yfans h4yfans merged commit af70a85 into main May 11, 2026
16 of 24 checks passed
@h4yfans h4yfans deleted the feat/agent-vault-key-state branch May 19, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant