| … | … | @@ -3154,10 +3172,16 @@ export const layerWsRpc = ( | |
| 3158 | 3182 | usageLimitsCommand, | |
| 3159 | 3183 | workspaceSnapshotsOnDemand, | |
| 3160 | - | deferRemoteOpenTargets: true, | |
| 3184 | + | deferNetworkDiscovery: true, | |
🟡 Medium src/ws.ts:3184
A newly discovered Tailscale HTTPS route is not learned on the first connection, so it is neither persisted nor considered for route switching until reconnect. deferNetworkDiscovery: true allows the initial snapshot to resolve before endpoint discovery finishes, and learnRoutesFrom never consumes the late result; update route learning to consume that result.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
| 1 | In file @apps/server/src/ws.ts around line 3184: |
| 2 | |
| 3 | A newly discovered Tailscale HTTPS route is not learned on the first connection, so it is neither persisted nor considered for route switching until reconnect. `deferNetworkDiscovery: true` allows the initial snapshot to resolve before endpoint discovery finishes, and `learnRoutesFrom` never consumes the late result; update route learning to consume that result. |
Note
Generated by GPT 6.1 Sol
Confirmed. The connection supervisor consumed only initialConfig and missed later endpoints. Route learning now observes snapshot endpoint changes through the session's existing config subscription. It deduplicates unchanged endpoint lists, preserves the connection scope, and does not open another RPC subscription. A regression failed before the fix; the final Deferred-gated case verifies a late validated HTTPS route is learned and selected over T3 Connect. Session replay coverage verifies the default reuses negotiated capabilities and keeps one RPC request.