Fix - Wrong avatar is shown on the template agent after refreshing page - #97449
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@shubham1206agra @gijoe0295 One of you needs to 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 ChromeScreen.Recording.2026-07-30.at.21.11.44.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2026-07-30.at.21.03.08.movMacOS: Chrome / SafariScreen.Recording.2026-07-30.at.20.50.16.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 yuwenmemon has triggered a test Expensify/App build. You can view the workflow run here. |
…te-refresh Fix - Wrong avatar is shown on the template agent after refreshing page (cherry picked from commit c696f1b) (cherry-picked to staging by marcaaron)
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.4.46-8 🚀
|
|
🤖 I reviewed the changes in this PR against the help site files under Why: This is an internal correctness fix. It clears a stale persisted new-agent avatar draft when a template is picked or Build custom agent is pressed on the New agent page, so the correct avatar is shown after a page refresh. It doesn't add, remove, or change any user-facing feature, label, or workflow. The relevant published article — Create and Use Agents — documents creating, chatting with, editing, and deleting agents. None of that content describes avatar-draft persistence or the template-picker avatar behavior this PR corrects, so there's nothing to update. No draft PR was created since no documentation update is needed. |
|
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.4.46-10 🚀
|
|
v9.4.46-10 bandicam.2026-07-31.13-42-37-496.mp4 |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.46-10 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.4.47-0 🚀
|
|
🤖 Re-reviewed — my conclusion is unchanged: no help site changes are required for this PR, so no draft PR was created. This is an internal correctness fix that clears a stale persisted new-agent avatar draft when a template is picked or Build custom agent is pressed on the New agent page, ensuring the correct avatar shows after a page refresh. It doesn't add, remove, or change any user-facing feature, label, or workflow. The published Create and Use Agents article doesn't describe avatar-draft persistence or the template-picker avatar behavior this fix corrects, so there's nothing to update. (See my earlier review for the same finding.) |
Explanation of Change
Clear the persisted new-agent avatar draft when a template is picked (or "Build custom agent" is pressed) on the New agent page, so a stale draft left over from a previous session.
Fixed Issues
$ #97388
PROPOSAL:
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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
MacOS: Chrome / Safari
Screen.Recording.2026-07-30.at.12.49.30.mov