* feat: track real ai chat token usage and show context indicator
* fix: keep context anchor full-history accurate after trimmed sends
* nits
* feat: restyle context indicator and disable trim for unknown windows
* feat: hide context indicator below 50% usage when window is known
* fix: gate 1M claude context window to sonnet/opus 4.6+
* refactor: import context window helpers from modelConfig directly
* fix: keep base gpt-5 models at 400k context window
* fix: exclude date-suffixed claude 4 ids from 1M window gate
* refactor: replace context window heuristics with explicit model table
* fix: account for context overhead in trim loop stop condition
* fix: re-base context anchor when mode switch changes system prompt or tools
* refactor: replace context estimation with usage-report-driven compaction
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat: chars/4 fallback for context usage when provider reports none
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix: remove unused slide import failing svelte-check
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix: re-seed context usage estimate on rewind so retry can compact
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor: lazy read-side estimate fallback for context usage
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix reasoningRegistry mock to match resolveRequestReasoning
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* fix for codestral
* enable codestral
* fim with completion
* reduce context when using completion
* refactor: extract model detection utilities for Codestral/Mistral
Consolidate duplicated model detection logic into shared utilities
in copilot/utils.ts to improve maintainability and ensure consistency
across autocomplete support checks and Mistral-specific configurations.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: add cursor marker to FIM-to-chat transformation prompt
Add explicit <CURSOR/> marker between prefix and suffix in the
FIM-to-chat transformation to help chat models better understand
where the completion should be inserted.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>