Skip to content

[Bug]: 系统始终统计不到tokens #49590

Description

@wanght73

Bug type

Regression (worked before, now fails)

Summary

系统运行有一周多了,但是“使用情况”的统计数据里,tokens的统计都是”0“。

之前安装的v2026.2.*的版本都是正常可以统计到的,升级和重新安装v2026.3.8及以后的版本都是“0”。重新安装、更换模型,也是一样结果。

Steps to reproduce

/status里显示:
agent:main:main [direct] | 2m ago | model qwen3.5:27b | tokens ?/128k | flags: system

Expected behavior

tokens不应该是“?”,应该有具体的数据。

Actual behavior

tokens总是一个“?“,使用情况里也统计不到tokens数量,总是”0“

OpenClaw version

v2026.3.13

Operating system

CentOS 10

Install method

No response

Model

Qwen3.5-27B、Qianfan系列的deepseek v3.2、GLM-5/4.7

Provider / routing chain

openclaw -> gateway -> webui或/status

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions