Bug Description
The total cost displayed in the codewhale-tui interface is significantly higher than the actual consumption shown on the DeepSeek Open Platform dashboard.
Steps to Reproduce
- Use the latest Windows version of CodeWhale
- Run
codewhale-tui and check the total cost displayed in the status bar
- Compare this value with the "Monthly Consumption" figure on the DeepSeek Open Platform console
Actual Behavior
- CodeWhale TUI status bar shows: ¥53.90 (as shown in the first screenshot)
- DeepSeek Open Platform actual monthly consumption: ¥15.13 (as shown in the second screenshot)
- There is a discrepancy of over 3.5x between the two values
Expected Behavior
The total cost displayed in the TUI should accurately match the actual consumption billed by DeepSeek.
Additional Context
I noticed that the latest update appears to have added a "saved" indicator in the status bar (partially visible in the first screenshot). I suspect this issue may be related to the calculation of cache hit savings:
- It seems the TUI might be incorrectly calculating the total cost by not properly accounting for the discounted pricing of cached tokens
- Or alternatively, the "saved" amount is being added to the total cost instead of subtracted from it
- The cache hit feature on DeepSeek charges significantly less for repeated tokens, which may not be correctly reflected in CodeWhale's internal cost calculation
Screenshots
- CodeWhale TUI status bar showing incorrect total cost:
- DeepSeek Open Platform dashboard showing actual monthly consumption:
Environment
- OS: Windows
- CodeWhale version: latest (as of June 2, 2026)
- Model: DeepSeek V4
Bug Description
The total cost displayed in the codewhale-tui interface is significantly higher than the actual consumption shown on the DeepSeek Open Platform dashboard.
Steps to Reproduce
codewhale-tuiand check the total cost displayed in the status bar
Actual Behavior
Expected Behavior
The total cost displayed in the TUI should accurately match the actual consumption billed by DeepSeek.
Additional Context
I noticed that the latest update appears to have added a "saved" indicator in the status bar (partially visible in the first screenshot). I suspect this issue may be related to the calculation of cache hit savings:
Screenshots
Environment