gemini-cli
gemini-cli copied to clipboard
Errors about tokens but rejected to compress
What happened?
A bit frustrating. Errors about tokens but rejected compress attempts.
✕ [API Error: [{
"error": {
"code": 400,
"message": "The input token count (1058724) exceeds the maximum number of tokens allowed (1048576).",
"errors": [
{
"message": "The input token count (1058724) exceeds the maximum number of tokens allowed (1048576).",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
> /compress
✦ Compression was not beneficial for this history size.
> continue
✕ [API Error: [{
"error": {
"code": 400,
"message": "The input token count (1058725) exceeds the maximum number of tokens allowed (1048576).",
"errors": [
{
"message": "The input token count (1058725) exceeds the maximum number of tokens allowed (1048576).",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
What did you expect to happen?
Either to see autocompress, or the command to be successful.
Client information
Client Information
Run gemini to enter the interactive CLI, then run the /about command.
> /about
0.19.4
Login information
Google account
Anything else we need to know?
No response
Found possible duplicate issues:
- #13005
- #13006
- #6678
- #12098
- #11248
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
@javydreamercsw thanks for reporting this! Do you know/remember how much of the context window was used at the time that this happened?