Repository navigation
Leave out an inbox answer for a Remotes tab you have left - #38
Merged
simonhamp merged 1 commit intoOct 20, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Remotes inbox asks devnull for the tab you're on in the background: Open, Fetched or Stashed. The answer goes into whichever tab is showing when it lands, so a slow answer for one tab can fill another.
For example, open Remotes on a slow connection, swipe to Stashed and back to Open before the inbox loads. Stashed's answer lands on Open, so Open lists your stashed conversations until the next 15-second poll replaces them. Load more on that list then pages Open from a stashed conversation.
The Log, Notifications and profile pagers already drop an answer for a page you've left. Remotes didn't.
Fix
Each refresh in
Remotes(pollInbox(),load()andrevalidate()) passes the tab it asked for totakeFresh(), which ignores the answer when that tab is no longer showing, asNotifications::takeFresh()does. The answer is still kept in the cache for its own tab, so that tab opens on it next time.Tests
A new test in
tests/Feature/Screens/RemotesTest.phpholds the background refreshes, opens Remotes, swipes to Stashed and back to Open, and then lets the answers land.Did not see [Grace Hopper] in the rendered tree.: Open shows the stashed conversation.I didn't run this on a device.