Commit 755b4ac
committed
fix(ccswitch): 去掉 data_source='proxy' 过滤,修复 CC Switch 采集读到 0 的 bug
上游 SQL 的 where coalesce(data_source,'proxy')='proxy' 假设 data_source 列值为
'proxy',但实际 CC Switch 数据库里该列值是 codex_session/opencode_session/session_log,
一行都不匹配 'proxy',导致 CC Switch 源静默报告 0 token。
去掉该过滤条件(status_code 成功 + token>0 已足够过滤),CC Switch 采集现在能
正确读取真实代理活动数据。
这是上游 macOS 版的同款 bug(移植时严格照抄了上游 SQL),本修复同时适用于两端。
对齐上游 8d387aa:仅 macOS 公证脚本(script/package_release.sh),Windows 版跳过,
TokenStepSwift 源码无变化。1 parent c05fc99 commit 755b4ac
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
530 | 534 | | |
531 | 535 | | |
532 | 536 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 537 | + | |
| 538 | + | |
536 | 539 | | |
537 | 540 | | |
538 | 541 | | |
| |||
0 commit comments