fix(ai): correct context budget metric (#44) #52
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-44-context-budget"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #44
The budget metric was a cumulative sum of per-call input_tokens, which double-counts every turn. Fixed to use the latest call input_tokens (the actual context size). Verified empirically: the loop was bailing when real context was at 20k of a 200k window. MAX_CONTEXT bumped to 200k (Sonnet 4 real). #51 filed for the separate message-history-growth issue.
Pull request closed