Describe the bug
After calling /compact, copilot cli drops its amount of tokens from 1081k to 160k(the default without setting COPILOT_PROVIDER_MAX_PROMPT_TOKENS)
Affected version
GitHub Copilot CLI 1.0.43
Steps to reproduce the behavior
● Context Usage
○ ○ ○ ◉ ◉ ◉ ◉ ◉ ◉ ◉ deepseek/deepseek-v4-flash · 133k/1081k tokens (12%)
◉ ◉ ◉ · · · · · · ·
· · · · · · · · · · ○ System/Tools: 30.0k (3%)
· · · · · · · · · · ◉ Messages: 103.3k (10%)
· · · · · · · · · · · Free Space: 862.9k (80%)
· · · · · · · · · · ◎ Buffer: 84.4k (8%)
· · · · · · · · · ·
· · · · · · · · · ·
· · · · · · · · · ·
· · ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
● Compaction completed
│ A new checkpoint has been added to your session.
└ Use /session checkpoints 2 to view the compaction summary.
● Context Usage
○ ○ ○ ○ ○ ○ ○ ○ ○ ○ deepseek/deepseek-v4-flash · 33k/160k tokens (20%)
○ ○ ○ ○ ○ ○ ○ ○ ○ ◉
◉ · · · · · · · · · ○ System/Tools: 30.0k (19%)
· · · · · · · · · · ◉ Messages: 2.7k (2%)
· · · · · · · · · · · Free Space: 88.9k (56%)
· · · · · · · · · · ◎ Buffer: 38.4k (24%)
· · · · · · · · · ·
· · · · · · ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
configured with
COPILOT_PROVIDER_BASE_URL="https://openrouter.ai/api/v1"
COPILOT_MODEL="deepseek/deepseek-v4-flash"
COPILOT_PROVIDER_TYPE="openai"
COPILOT_PROVIDER_MAX_PROMPT_TOKENS="1048576"
COPILOT_PROVIDER_MAX_OUTPUT_TOKENS="384000"
Expected behavior
deepseek/deepseek-v4-flash · nn/1081k tokens after /compact
Additional context
No response
Describe the bug
After calling
/compact, copilot cli drops its amount of tokens from 1081k to 160k(the default without settingCOPILOT_PROVIDER_MAX_PROMPT_TOKENS)Affected version
GitHub Copilot CLI 1.0.43
Steps to reproduce the behavior
configured with
Expected behavior
deepseek/deepseek-v4-flash · nn/1081k tokensafter/compactAdditional context
No response