Skip to content

fix(desktop-gpui): ignore stale profile responses after sign-in - #3057

Merged
richiemcilroy merged 1 commit into
CapSoftware:mainfrom
yashranaway:fix/gpui-settings
Oct 24, 2026
Merged

richiemcilroy merged 1 commit into
CapSoftware:mainfrom
yashranaway:fix/gpui-settings

Conversation

@yashranaway

@yashranaway yashranaway commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

the settings window refreshes your profile and avatar in the background, and if one of those requests comes back with a 401 it signs you out. it only checked that the user id was still the same, so if you signed out and back in as the same account, or switched servers, while a request was in flight, the old 401 landed after and cleared the new session.

the callbacks now compare the token and server as well as the user, so a response only applies to the session that started it. test covers the same user signing in again and a server change.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

The settings window now checks the user, token, and server before applying profile or avatar responses.

  • Profile refreshes now stay tied to the sign-in and server that started them.

Reviews (1) · Last reviewed commit: "fix(desktop-gpui): ignore stale profile ..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

@yashranaway is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@richiemcilroy
richiemcilroy merged commit 13c01b7 into CapSoftware:main Oct 24, 2026
39 of 41 checks passed
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.

2 participants