An agent that changes a screen behind your app's login has to sign in to look at it. In 1904 it does that in the task's preview, with the app's test accounts, and that works until one of those accounts changes: you tidy up the admin password inside the app, or the seeded user gets a new email address. From then on the agent's check stops at the sign-in form. The most you'd hear was a line in its reply saying it couldn't verify the page.
The task tells you which account failed
When the app refuses the agent's sign-in, or 1904 has no usable password for that account, a warning appears in the task's conversation. It names the account and the username it tried, along the lines of The agent could not sign in to the preview as Owner, and carries an Update App login button. The agent doesn't go looking for other credentials. It tells you sign-in failed, checks what it can reach without an account, and says what it couldn't verify.
Saving the login 1904 should use
Update App login opens the app's page at the App login card, with that account's form already open. You can get there on your own too: each account on the card has Update preview login. Enter the Preview username, the Preview password twice, and your own 1904 password, which you leave blank if you sign in without one. Choose Save preview login and the account gets a Preview override badge. The agent uses the saved login the next time it signs in to a preview, and the key above a task's preview, which lists the same accounts for you, shows it too.
The form is there for the workspace owner, on a development app. Once a login is saved, the link reads Edit preview login, and Reset to app default removes what you saved and goes back to the account the app was built with.
What it changes
Saving the form changes one thing: what 1904 types into your app's sign-in page in a development preview. Your app's database and your live app are left alone, and 1904 keeps the password encrypted. So it fits the case where the account already changed inside the app and 1904 needs to catch up. If you want to change the app's real password instead, Change password sits beside it on the same card.
If the app is hosted somewhere else
Previews also work for a repository you imported and run on your own hosting, once Preview apps hosted outside 1904 is on in Settings, Tasks. Those previews look after themselves more than they did. 1904 brings its copy of the app up to main before a preview, reinstalls packages when they've drifted from the lockfile, and starts getting the preview ready when you open the task. If an install fails, the preview shows a warning with Try again.