-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
agentIssues related to the core agent loopIssues related to the core agent loopbugSomething isn't workingSomething isn't working
Description
What version of Codex is running?
0.0.0
What subscription do you have?
N/A
Which model were you using?
No response
What platform is your computer?
No response
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
estimate_token_count uses estimate_reasoning_length without converting it to token count via approx_tokens_from_byte_count, causing ~4x overcount.
| } => estimate_reasoning_length(content.len()) as i64, |
What steps can reproduce the bug?
when getting back in history, at 25% context usage, the compaction starts as if 100% context was used
What is the expected behavior?
No response
Additional information
i think your style of naming is error prone and could be better
or you could make use of strong aliasing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agentIssues related to the core agent loopIssues related to the core agent loopbugSomething isn't workingSomething isn't working