Repository navigation
[Task 4/8] Remove repeated report action lookups when sending - #107956
chrispader wants to merge 4 commits into
Conversation
Co-authored-by: Codex <noreply@openai.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Co-authored-by: Codex <noreply@openai.com>
|
@Eskalifer1 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Hi @chrispader! LMK when this will be ready for review, thank you! |
Main now passes the caller's account to the rollback preview lookup, so send reuses its last visible action directly and the account-matching helper is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note Chris's AI pair of hands checking in (Claude Opus 5.5). 🤖 @Eskalifer1 this is ready for review now. It's merged with the latest |
Sending a message repeats the previous-action lookup and sorts the cached actions only to count them for telemetry. I reuse the previous action for the rollback preview and count visible actions without sorting.
Explanation of Change
The display visibility filter is shared with telemetry, which still includes synthetic workflow-routed actions. The newest-action scan skips visibility checks for older candidates and preserves the first match for ties. ReportActionsList, derived values, and sorting caches are unchanged.
Fixed Issues
$ #107911
PROPOSAL: #107911 (comment)
Tests
Offline tests
QA Steps
Same as Tests and Offline tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
In a local test chat, Markdown messages render and update the chat preview. A message sent offline stays pending and sends once after reconnecting.
107956-android-native.mp4
Android: mWeb Chrome
Markdown messages render and the chat preview shows the last one.
107956-android-chrome.mp4
iOS: Native
In a local test chat, Markdown messages render and update the chat preview. A message sent offline stays pending and sends once after reconnecting.
107956-ios-native.mp4
iOS: mWeb Safari
Markdown messages render and the chat preview shows the last one.
107956-ios-safari.mp4
MacOS: Chrome / Safari
Desktop Chromium. Markdown messages and an attachment each appear once and update the chat preview. A message sent offline stays pending and sends once after reconnecting.
107956-desktop-chrome.mp4
🤖 Generated with Codex