mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-20 04:57:01 +08:00
客户端扩展在慢请求(如提交信息生成)开始约 10 秒后会探测 NetworkService/IsConnected,非 200 应答即判定断网并中止进行中的请求。 此前该探测落入通配路由返回 404,导致模型仍在正常返回时界面先报断连。 - host.go: 注册 IsConnected 精确路由,恒定以 200 + 空 IsConnectedResponse 应答 - client.go: newProtoMessage 补齐 aiserver.v1.IsConnectedResponse 类型, 避免 mock 编码失败导致探测返回 502 - state_db.go: 新增强开 statsig gate 机制(cursorStateEnabledStatsigGates), 强制启用 disable_network_change_monitor_local 从源头关闭该探测; disableCursorStatsigGates 泛化为 syncCursorStatsigGateOverrides