Rich token message handler cannot reach spot-only fallback #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The new rich token message flow models
spot-onlyin the renderer and spec, but the command handler cannot currently reach that state end-to-end.Problem
Token2Symbolsonly resolves symbols through the futures pair cache (internal/helper/binancex/symbol.go:31-32).OnTokenInfoByTokenonly fetches spot inside the successful futures branch (internal/services/tele/commands/token.go:86-100).Impact
spot-onlymessage path.Why this matters
The design/spec explicitly documents
spot-onlyas a supported fallback case, but the current data-collection logic only makes that state reachable inside renderer tests, not from the Telegram command flow.Test gap
Current tests cover
RenderRichTokenMessage(...)andbuildRichTokenMessageInput(...), but they do not exercise the handler logic that collects spot/future/alpha data.Suggested direction
spot-onlycan be reached fromOnTokenInfoByToken.spot-onlyandfuture lookup fails but spot exists.Context
This is a follow-up logic issue discovered while reviewing PR #17. It is separate from the display-format review comments on that PR.
[claudecode gpt-5.3-codex]
Summary
Issue này đã được xử lý qua các PR đã merge.
Changes mapped to issue
spot-onlygiờ reachable end-to-end.Verification references
internal/services/tele/commands/token.gointernal/services/tele/commands/token_test.goĐề xuất: close issue #18.