mateclaw/mateclaw-server/src/main/java/vip/mate/cron/service
倪程伟 9baef57871
fix(cron): persist token usage to the run row on completion (#263)
finishRunAndPublish updated the run row with status and finished_at but dropped the LLM token usage, so mate_cron_job_run.token_usage stayed NULL and the scheduler history always showed 0. Write the prompt+completion token total (already computed for the assistant message row) to the run row, guarded so non-LLM paths (reminder direct-push with a null ChatResult) leave the column untouched.

Closes #262
2026-06-07 17:51:08 +08:00
..
CronJobLifecycleService.java fix(cron): persist token usage to the run row on completion (#263) 2026-06-07 17:51:08 +08:00
CronJobRunner.java feat(conversation): introduce ChatResult to carry token usage through sync chat paths 2026-05-25 21:15:53 +08:00
CronJobService.java feat(skill): scope skill catalog and runtime by workspace (#135) 2026-05-15 20:01:25 +08:00