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

Aperta
#53 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
electron, react, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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,只有不支持的候选时继续给出覆盖范围错误。

源码起点

Lingua principale
TypeScript
Stelle
206
Fork
37
Merge medio
7h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ydflow/Trail

Tutte le issue di ydflow/Trail

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.