Commit d49a2c3
committed
fix: total_conversation_tokens now includes DAG summary tokens
Previously only counted tokens from the messages table, missing
DAG summary nodes (level > 0) that also consume context window.
This caused the compaction planner to underestimate total token
pressure when summaries existed without corresponding messages.1 parent 5a68095 commit d49a2c3
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2633 | 2633 | | |
2634 | 2634 | | |
2635 | 2635 | | |
2636 | | - | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
2637 | 2641 | | |
2638 | 2642 | | |
2639 | 2643 | | |
| |||
0 commit comments