[Bug] 港股报价回退时保留长桥超时原因

オープン
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, react, typescript

調査の方向性

Start with the router failure handling in packages/shared/src/providers/router.ts and the quote error wrapper in packages/shared/src/providers/router-fetchers.ts; trace how unsupported fallback errors are combined with the primary timeout. Then read the error display entry point in packages/ui/src/components/workspace/SecurityHeader.tsx and add offline regression coverage for the Hong Kong and US fallback cases. Done means the quote shows a retryable Longbridge timeout while diagnostics retain both routing results, and unsupported-only candidates still report the coverage error.

索引モデルが issue の本文から書いたものです。

説明

area:desktop bug

环境与最小复现

Windows,main 579395e,Bun 1.4.2。在 Provider Router 注册模拟 Longbridge 和实际的 Massive 适配器,Longbridge 为主源,Massive 为备源。

请求 market.quote 的 00700.HK,让 Longbridge 返回 TIMEOUT。路由轨迹依次记录 longbridge:TIMEOUT 和 massive:UNSUPPORTED_CAPABILITY。普通报价接口最终只拿到 UNSUPPORTED_CAPABILITY 和 Massive only provides US market data,导致用户看不到长桥超时这个可以重试的原因。复现无需行情账号。

验收标准

  • 主源超时、备源不覆盖该市场时,桌面报价提示说明长桥超时并给出可重试的反馈。诊断信息保留两次路由结果。
  • 补离线回归。港股超时保留可处理的失败原因,美股主源超时仍可切换到 Massive,只有不支持的候选时继续给出覆盖范围错误。

源码起点

主要言語
TypeScript
スター
206
フォーク
37
平均マージ
7時間 8分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ydflow/Trail のほかの issue

ydflow/Trail の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。