Skip to content

feat: Show secret counts in encryption key reset warning#87

Merged
eyelock merged 3 commits into
mainfrom
feat/encryption-key-reset-enhanced-warning
Jan 26, 2026
Merged

feat: Show secret counts in encryption key reset warning#87
eyelock merged 3 commits into
mainfrom
feat/encryption-key-reset-enhanced-warning

Conversation

@eyelock
Copy link
Copy Markdown
Owner

@eyelock eyelock commented Jan 26, 2026

Summary

Enhances the encryption key reset confirmation dialog to show exact counts of secrets that will be deleted.

Changes

  • Added secretsCount state to track global and terminal secret counts
  • Added checkSecretsAndShowConfirmation() to count secrets before showing dialog
  • Added resetConfirmMessageWithSecrets() to generate detailed warning messages
  • Proper pluralization ("1 secret" vs "2 secrets")

Behavior

When secrets exist:

This will permanently delete 2 global secrets and 3 terminal secrets (5 total). These secrets will be unrecoverable after the encryption key is reset...

When no secrets exist:

Standard confirmation message

Integration

Testing

  • ✅ 539 tests passed
  • ✅ Build successful
  • ✅ Lint clean (zero errors)

🤖 Generated with Claude Code

David Collie and others added 3 commits January 25, 2026 18:20
Creates termqclid and termqmcpd binaries that default to using the
debug bundle ID (net.eyelock.termq.app.debug) and debug data directory
(TermQ-Debug). This enables proper testing of TermQDebug.app via CLI
without needing to manually specify --debug flags or having commands
sent to the production app.

Changes:
- Add TERMQ_DEBUG_BUILD compile flag support to CLI and MCP server
- Create termqBundleIdentifier() helper to return appropriate bundle ID
- Build debug binaries with separate build directory to avoid contamination
- Install debug binaries to TermQDebug.app/Contents/Resources/
- Update shouldUseDebugMode() to force debug mode when flag is set

Resolves CLI delete command not working with TermQDebug.app during
Phase 4 testing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Enhances the encryption key reset confirmation dialog to show
exact counts of secrets that will be deleted (global and terminal).

When secrets exist:
- "This will permanently delete 2 global secrets and 3 terminal
  secrets (5 total)..."

When no secrets exist:
- Shows standard confirmation message

Integrates with PR #86's cleanup architecture while adding
improved UX from PR #77.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@eyelock eyelock merged commit 86bdd76 into main Jan 26, 2026
8 checks passed
@eyelock eyelock deleted the feat/encryption-key-reset-enhanced-warning branch January 26, 2026 08:11
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.

1 participant