Skip to content

[codex] Restore KeePass foreground after WinHello auth#141

Open
SirAndrosBot wants to merge 1 commit into
masterfrom
codex/bot-fix-keepass-foreground-after-winhello
Open

[codex] Restore KeePass foreground after WinHello auth#141
SirAndrosBot wants to merge 1 commit into
masterfrom
codex/bot-fix-keepass-foreground-after-winhello

Conversation

@SirAndrosBot

Copy link
Copy Markdown
Collaborator

Summary

Fixes #107 by restoring the stable KeePass main window after successful Windows Hello authentication instead of restoring the transient key prompt context.

The 3.3 UI context work correctly lets the Windows Hello prompt use the nearest active dialog as its parent, but the foreground decorator also used that same current context after decrypting. During unlock, that context is the KeyPromptForm, so the post-auth foreground helper could focus/minimize the wrong window and leave KeePass minimized to tray.

This keeps prompt parenting and context messages unchanged, while adding a main-window reference to UIContextManager for post-auth foreground restoration.

Validation

  • Subagent review found no blocking correctness issues.
  • git diff --check passed except for existing CRLF conversion warnings.
  • dotnet build src\KeePassWinHello.sln could not complete in this local environment because required project prerequisites are missing: .NET Framework v4.0 reference assemblies, src/lib/KeePass.exe, and SDK resource dependencies for the debug project.

@sonarqubecloud

Copy link
Copy Markdown

@SirAndrosBot
SirAndrosBot marked this pull request as ready for review June 11, 2026 18:49
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.

Keepass window will be minimized to task-tray after auth

2 participants