Copilot-User is logged out after remove copilot then kill app and open again#93965
Copilot-User is logged out after remove copilot then kill app and open again#93965lorretheboy wants to merge 3 commits into
Conversation
|
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
|
Please fully populate the Screenshots/Videos section, even for platforms where the original bug wasn't reproducible. Screen.Recording.2026-06-23.at.16.21.32.movI am checking this with the latest main though, not sure if something might have changed. Could you pull and double-check this on your end, please? |
|
@eVoloshchak Thanks for the review, I'm checking again now |
|
@eVoloshchak I think the behavior you faced is expected. The issue is having 2 bugs:
I believe preserves the device owner's credentials so reauthentication can restore the original account instead of signing out when the restricted token is revoked is all we can do for now since we don't have access to OD. If we want to fix the point 2, I believe next action should be update OD to check and not fallback to OD in this specific case In summary, ND can only fix point 1, point 2 should be done in OD |
|
@lorretheboy, in that case, what issue does this PR fix?
Test steps assume it should be working, but if you follow them, the user is logged out |
|
@eVoloshchak This issue is really two bugs: (1) the logout itself, and (2) the OD fallback on HybridApp. This PR fixes #1 - The logout you're still seeing on iOS/Android is #2 - OD takes over and logs the user out, which we can't control from NewDot and needs a separate OldDot fix |
Explanation of Change
Fixed Issues
$ #93458
PROPOSAL: #93458 (comment)
Tests
Preconditions:
Account A add Account B as a full copilot
Offline tests
QA Steps
Preconditions:
Account A add Account B as a full copilot
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
part.1.mov
part.2.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari