Skip to content

fix(desktop): pass credentials when checking default server health on startup#16125

Closed
DaneelOlivaw1 wants to merge 7 commits into
anomalyco:devfrom
DaneelOlivaw1:fix/desktop-default-server-auth
Closed

fix(desktop): pass credentials when checking default server health on startup#16125
DaneelOlivaw1 wants to merge 7 commits into
anomalyco:devfrom
DaneelOlivaw1:fix/desktop-default-server-auth

Conversation

@DaneelOlivaw1

Copy link
Copy Markdown

Issue for this PR

Fixes #16123

Type of change

  • Bug fix

What does this PR do?

When a remote server with authentication is set as default, the desktop app fails to connect on startup. The root cause is that checkHealthOrAskRetry() doesn't pass credentials to checkHealth(), causing authentication to fail.

This PR fixes the issue by:

  1. Changing default server storage from URL string to full connection object (url + username + password)
  2. Updating checkHealthOrAskRetry() to accept and pass credentials
  3. Updating startup logic to use stored credentials
  4. Adding backward compatibility for existing URL-only storage

How did you verify your code works?

The fix ensures that when a default server with authentication is configured:

  1. Credentials are stored along with the URL
  2. On startup, credentials are retrieved and passed to the health check
  3. The server connection succeeds with proper authentication

Backward compatibility is maintained - existing users with URL-only storage will continue to work (credentials will be optional).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

… startup

- Store full server config (url + username + password) instead of just URL
- Pass credentials to checkHealthOrAskRetry during startup
- Update frontend to save complete server config when setting default
- Add backward compatibility for existing URL-only storage

Fixes anomalyco#16123
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 5, 2026
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.

fix(desktop): Desktop app fails to connect to authenticated remote server on startup

1 participant