fix(electron): auto-navigate to home after keygen completion

Previously, after keygen completed, the Session page would just update the
status to 'completed' but not navigate away. Users had to manually click
the "Return Home" button. This could result in a white screen if the button
wasn't visible or clickable.

Now the page auto-navigates to home after 2 seconds, giving users time to
see the completion status and public key before redirecting.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-01 10:22:42 -08:00
parent 549b21f298
commit 7346b3518a
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ export default function Session() {
status: 'completed',
publicKey: event.publicKey,
} : null);
// Auto-navigate to home after a short delay to show completion status
setTimeout(() => {
navigate('/');
}, 2000);
} else if (event.type === 'failed') {
setSession(prev => prev ? {
...prev,