Repository navigation
fix: hydration-safe card times, single API pool, keep xenon feed on Futu - #567
Merged
Merged
Conversation
added 2 commits
October 24, 2026 23:08
TickerCard rendered times in the server zone (UTC) and the browser zone, so hydration failed (#418); it now renders UTC until hydrated. get_pool() raced under lru_cache and opened orphan pools whose __del__ failed with 'cannot join current thread'; a lock serializes the first call.
xenon v0.15.0 serves US stocks from Futu during RTH and reports providers.futu in its status frame. The handshake failed over to massive on ib_connected=false alone, so an IB logout also dropped Futu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three small fixes.
suppressHydrationWarningwas one element too high to cover the text.TickerCardnow renders UTC until hydrated (useSyncExternalStore), then local time.get_pool()was a barelru_cache, which runs the factory once per thread that misses at the same time. Each extra pool leaked connections and threads, and its__del__failed with "cannot join current thread". A lock serializes the first call. New testtests/unit/api/test_get_pool_single_flight.pyfails with 8 pools without the lock.?quotes=futu-first, now set on the mini) and reportsproviders.futuin its status frame. The handshake failed over to massive onib_connected: falsealone. It now fails over only when both are down. Indexes still need IB. Known limit: there is no per-symbol failover, so with IB down, pre/after-hours stocks rely on the 120 s quiet watchdog.Checks:
uv run pytest tests/unit/3192 passed; xenon failover/consumer + connection pool integration tests 10 passed; ruff clean; web typecheck, eslint, vitest 1603 passed. Browser check with aTZ=UTCserver: 0 console errors, cards show HKG times.🤖 Generated with Claude Code