pgadmin-org / pgadmin-org/pgadmin4

Unlock Saved Passwords promps loses focus to a query tool in the background

Open
#9,784 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

Describe the bug When I open pgAdmin 4, the focus is on the "Unlock Saved Passwords" prompt. After a second or so, the focus switches to the Query Editor in the background, causing me to type the password in clear text.

To Reproduce

Steps to reproduce the behavior:

Have a Query Editor open in a previous session
Close and reopen pgAdmin
If the Query Editor loads in the background, it steals focus once it is loaded completely

Expected behavior The password prompt should either trap the focus or block the background text fields from receiving any key press events.

Desktop (please complete the following information):

OS: Fedora Silverblue
pgAdmin version: 9.12
Mode: Desktop
Package type: Flatpak

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Desktop mode with a previously open Query Editor, then observe focus while the Unlock Saved Passwords prompt appears and the editor finishes loading. Done means the password prompt retains focus or background fields cannot receive keystrokes during loading; the payload does not name a source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.