Roo-Code/webview-ui/src
MFPires ea6dc7c16e feat(ui): add context window percentage to task header
Display the percentage of total context window used alongside token count in the task header. This helps users better understand their context usage relative to the model's capacity.

Implementation details:
- Retrieve model's context window size from normalized API configuration
- Calculate percentage of context window used based on current context tokens
- Display percentage in parentheses next to token count (e.g. "40,000 (20%)")
- Default to context window size of 1 if model info is unavailable
- Format numbers with commas for better readability
2025-01-28 16:33:06 -03:00
..
components feat(ui): add context window percentage to task header 2025-01-28 16:33:06 -03:00
context refactor(experiments): improve type safety for experiment configuration 2025-01-28 21:06:35 +07:00
services Prettier backfill 2025-01-17 14:11:28 -05:00
utils Prettier backfill 2025-01-17 14:11:28 -05:00
App.tsx Add a screen for custom prompts 2025-01-13 22:45:14 -05:00
index.css style: remove double scroll bar through unsetting overflow 2025-01-22 23:01:52 +07:00
index.tsx Chore: Prettier for consistant formatting (#794) 2024-11-21 13:13:54 -08:00
react-app-env.d.ts Add CRA webview-ui 2024-07-06 01:35:59 -04:00
reportWebVitals.ts Add vscode helper and fix formatting in react app 2024-07-06 01:45:54 -04:00
setupTests.ts Prettier backfill 2025-01-17 14:11:28 -05:00