You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Account - Avatar doesn't load when login from public room as existing user #79449
Version Number: 9.3.0-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://github.com/Expensify/Expensify/issues/581598 Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: Windows Windows 11 - Chrome
Please re-state the problem that we are trying to solve in this issue.
When a user opens a public room while signed out, then signs in with an existing account and navigates to Account settings, the avatar and user name don’t load on the account page
What is the root cause of that problem?
In the public-room flow, the app can create an ANONYMOUS session and mount AuthScreens. If the user then signs in, the session transitions from ANONYMOUS → authenticated without remounting AuthScreens, so the normal post-login bootstrapping (OpenApp) isn’t re-triggered. As a result, the authenticated user’s personalDetails (used for displayName/avatar) are never populated/refreshed in Onyx for that session, causing Settings/Profile to render loading placeholders.
What changes do you think we should make in order to solve the problem?
Add a guard in AuthScreens to detect when the session upgrades from ANONYMOUS → non-anonymous and:
Force the new authToken into NetworkStore immediately (avoid timing issues)
Call App.confirmReadyToOpenApp()
Call App.openApp(true) to re-bootstrap while preserving public rooms
const wasAnonymousUserRef = useRef(Session.isAnonymousUser(session));
useEffect(() => {
const wasAnonymous = wasAnonymousUserRef.current;
const isAnonymous = Session.isAnonymousUser(session);
wasAnonymousUserRef.current = isAnonymous;
// When opening a public room, the user can be "authenticated" as an anonymous user (AuthScreens is already mounted).
// If they then sign in with an existing account, we need to re-run OpenApp to hydrate full account data such as personal details (avatar/display name).
if (!wasAnonymous || isAnonymous) {
return;
}
if (!session?.authToken) {
return;
}
// Ensure subsequent requests use the new token immediately (don't rely on async Onyx subscriber timing).
NetworkStore.setAuthToken(session.authToken);
App.confirmReadyToOpenApp();
App.openApp(true);
}, [session]);
What alternative solutions did you explore? (Optional)
changed the title [-]Account - Avatar doesn't load when login from public room as existing user[/-][+][$250] Account - Avatar doesn't load when login from public room as existing user[/+]on Jan 21, 2026
Ah ok, I just paid the offer as is was created which was only for $250. Let me see if I can re-open it to change the amount or if I need to create a new one
changed the title [-][$250] Account - Avatar doesn't load when login from public room as existing user[/-][+][$500] Account - Avatar doesn't load when login from public room as existing user[/+]on Mar 31, 2026
Activity
melvin-bot commentedon Jan 13, 2026
Triggered auto assignment to @heyjennahay (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.annaweber830 commentedon Jan 13, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a user opens a public room while signed out, then signs in with an existing account and navigates to Account settings, the avatar and user name don’t load on the account page
What is the root cause of that problem?
In the public-room flow, the app can create an ANONYMOUS session and mount AuthScreens. If the user then signs in, the session transitions from ANONYMOUS → authenticated without remounting AuthScreens, so the normal post-login bootstrapping (OpenApp) isn’t re-triggered. As a result, the authenticated user’s personalDetails (used for displayName/avatar) are never populated/refreshed in Onyx for that session, causing Settings/Profile to render loading placeholders.
What changes do you think we should make in order to solve the problem?
Add a guard in AuthScreens to detect when the session upgrades from ANONYMOUS → non-anonymous and:
What alternative solutions did you explore? (Optional)
App/src/pages/signin/SignInModal.tsx
Lines 45 to 47 in e54cfd4
melvin-bot commentedon Jan 17, 2026
@heyjennahay Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jan 21, 2026
@heyjennahay 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Jan 21, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022014062121683669823
[-]Account - Avatar doesn't load when login from public room as existing user[/-][+][$250] Account - Avatar doesn't load when login from public room as existing user[/+]melvin-bot commentedon Jan 21, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)44 remaining items
situchan commentedon Mar 30, 2026
Automation failed here.
I reviewed 2 PRs linked to this issue:
@heyjennahay can you please sort payment? I accepted this offer.
melvin-bot commentedon Mar 30, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)heyjennahay commentedon Mar 30, 2026
Thanks for the bump @situchan it seems the automation never updated the state of this GH.
Payment summary
@situchan paid $250 via Upwork. Contract closed.
Thanks everyone for your work here :)
situchan commentedon Mar 30, 2026
Thanks @heyjennahay It should be 500 since 2 PRs which are different.
heyjennahay commentedon Mar 31, 2026
Ah ok, I just paid the offer as is was created which was only for $250. Let me see if I can re-open it to change the amount or if I need to create a new one
heyjennahay commentedon Mar 31, 2026
Thanks @situchan for pointing out that I can just add a bonus to the original contract.
Payment summary
@situchan paid $500 (in total) via Upwork
[-][$250] Account - Avatar doesn't load when login from public room as existing user[/-][+][$500] Account - Avatar doesn't load when login from public room as existing user[/+]melvin-bot commentedon Mar 31, 2026
Upwork job price has been updated to $500