Skip to content

fix(mobile): serialize channel sections sync - #3165

Open
brow wants to merge 1 commit into
mainfrom
tomb/mobile-sections-sync-single-flight
Open

fix(mobile): serialize channel sections sync#3165
brow wants to merge 1 commit into
mainfrom
tomb/mobile-sections-sync-single-flight

Conversation

@brow

@brow brow commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What changed?

Serializes channel-section relay synchronization so a late relay CLOSED cannot overlap an in-flight retry and install duplicate subscriptions. Pending subscription results are invalidated and immediately closed when the manager is disposed or superseded.

Why?

The startup retry added in #3004 could race with a late CLOSED or manager disposal, leaking an untracked live subscription. This keeps retry recovery single-flight and makes the lifecycle boundary explicit.

How is it tested?

Build and run.

Added tests:

  • ChannelSectionsManager interleaving coverage for in-flight retry serialization and disposal during subscription setup

🤖 This PR was authored with a Buzz agent.

Co-authored-by: npub15w828kxsxu2684ynste0uah2jwkgatd99flt7ds4523hzm8ju6cshdr8hh <a38ea3d8d03715a3d49382f2fe76ea93ac8eada52a7ebf3615a2a3716cf2e6b1@buzz.block.builderlab.xyz>
Signed-off-by: npub15w828kxsxu2684ynste0uah2jwkgatd99flt7ds4523hzm8ju6cshdr8hh <a38ea3d8d03715a3d49382f2fe76ea93ac8eada52a7ebf3615a2a3716cf2e6b1@buzz.block.builderlab.xyz>
@brow

brow commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@brow
brow marked this pull request as ready for review July 27, 2026 18:14
@brow
brow requested a review from a team as a code owner July 27, 2026 18:14
@cameronhotchkies cameronhotchkies added the triage-ready Appropriate for agentic review label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage-ready Appropriate for agentic review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants