Skip to content

feat(plan-execution): add token consumption tracking for plan steps#495

Merged
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
derek201759:feature/add-token-consume-in-plan
Jul 9, 2026
Merged

feat(plan-execution): add token consumption tracking for plan steps#495
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
derek201759:feature/add-token-consume-in-plan

Conversation

@derek201759

@derek201759 derek201759 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
  • add total_input_tokens, total_output_tokens, total_tokens, total_duration_ms columns to plan_executions table
  • extend PlanStepOutput with token fields and serialization
  • update PlanExecutionListener and PlanExecutor to populate token data
  • expose plan-level token totals in PlansViewModel
  • update UI to display token summary and duration
  • maintain backward compatibility by treating missing values as null

BREAKING CHANGE: PlanStepOutput now includes token fields; legacy rows will have null values.

Screenshot 2026-07-09 at 12 14 11 PM

- add total_input_tokens, total_output_tokens, total_tokens, total_duration_ms columns to plan_executions table
- extend PlanStepOutput with token fields and serialization
- update PlanExecutionListener and PlanExecutor to populate token data
- expose plan-level token totals in PlansViewModel
- update UI to display token summary and duration
- maintain backward compatibility by treating missing values as null

BREAKING CHANGE: PlanStepOutput now includes token fields; legacy rows will have null values.

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @derek201759 for another contribution!

@haiphucnguyen haiphucnguyen merged commit c8ed37f into askimo-ai:main Jul 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants