Skip to content

Conversation

psychedelicious
Copy link
Collaborator

Summary

I ran into a race condition where I set a HF token and it was valid, but somehow this error toast still appeared. The conditional feel through to an assertion that we never expected to get to, which crashed the UI.

Handled the unexpected case gracefully now.

Related Issues / Discussions

n/a

QA Instructions

Hard to repro given its a race condition between the HF hub library and our model manager.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

I ran into a race condition where I set a HF token and it was valid, but
somehow this error toast still appeared. The conditional feel through to
an assertion that we never expected to get to, which crashed the UI.

Handled the unexpected case gracefully now.
@github-actions github-actions bot added the frontend PRs that change frontend files label Aug 22, 2025
@psychedelicious psychedelicious merged commit 0e17950 into main Aug 22, 2025
13 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/ui/hf-token-error branch August 22, 2025 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants