We were unable to construct the commit group for this pull request: Author does not currently possess a GitClear subscription seat.

JS-9867: prefer TCP connection network setting #2359

Merged
requilence opened 3:26pm on August 29, 2026 wanted to merge 3 commits into anyproto/anytype-ts develop from
feature/JS-9867-preferyamux-network-setting

Pull Request Overview

  • Opened on August 29, 2026
  • Status Merged
  • Commit count 3 with first commit August 29, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 15 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

JS-9867: prefer TCP connection network setting

Summary


  • Adds a "Prefer TCP connection" network setting, default off, passed as preferYamuxTransport in AccountCreate/AccountSelect RPC requests.

  • Available in two places:


    • The pre-auth Preferences popup (next to the Network dropdown)

    • Settings > Preferences > Advanced (in the authorized app)



  • An info icon next to the toggle shows a hover hint explaining the setting (UDP being blocked can cause connection problems; this switches to prefer TCP).

  • Changing the in-app Advanced toggle requires reconnecting the account to take effect, so it confirms with the user ("Restart Required") before applying: it persists the new setting, calls AccountStop, then reloads the app (which re-authenticates and calls AccountSelect again with the updated config).

  • Also fixes a pre-existing bug in the shared Preview.tooltipShow utility: "big" tooltips positioned below their anchor could run past the bottom of the window with no clamp/flip (unlike Menu's positioning, which already handles this). Now mirrors Menu's flip-then-clamp behavior on the y-axis.

Linear

JS-9867

Test plan



  • bun run typecheck and bun run lint pass

  • Manually verified: toggle in the pre-auth popup persists via networkConfigSet; toggle in Settings > Advanced shows the restart-required confirm, then reconnects

  • Manually verified the tooltip clipping fix by triggering the hint near the bottom of the Settings > Advanced window

πŸ€– Generated with Claude Code

PR was closed without comments.