Commit graph

27 commits

Author SHA1 Message Date
Dominik Oswald
7fab2f7738
feat: Cost Display in Task Header - Suppress Zero Cost Values and Ensure Visibility for Gemini, OpenAI, LM Studio, and Ollama (#2662)
test: Add unit tests for TaskHeader component cost display logic
2025-04-15 17:57:42 -04:00
Matt Rubens
a926b5a575 Fix tests 2025-03-17 15:55:15 -04:00
Matt Rubens
41bd36c29a More chat i18n 2025-03-17 15:49:59 -04:00
Matt Rubens
3ad198b8e6 Fix 'See less' style 2025-03-13 15:15:28 -04:00
Matt Rubens
671064a45f Show the reserved output tokens in the context window bar 2025-03-07 16:12:50 -05:00
Matt Rubens
25d41a59a8 UI tweaks to task header 2025-03-07 10:08:23 -05:00
cte
845cba4842 Remove (Main) from task header 2025-03-06 00:56:33 -08:00
Matt Rubens
279df6e7a4 Merge remote-tracking branch 'origin/main' into sbc_add_subtasks 2025-03-05 12:16:37 -05:00
Tom X Nguyen
7a2a08aaa4 style(context-window): add padding to align 2025-03-02 19:42:00 +07:00
ShayBC
41ddb7d583 Resolved merge conflicts 2025-03-01 01:10:27 +02:00
Chris Estreich
21fed4cb79 Delete task confirmation enhancements 2025-02-27 22:26:13 -08:00
ShayBC
03e0aa545b Resolved merge conflicts in Cline.ts and ClineProvider.ts 2025-02-28 03:33:13 +02:00
dleffel
4806ab5420 Fix missing tooltips in several components. 2025-02-26 21:34:56 -08:00
ShayBC
4095c16d32 Merge branch 'main' of https://github.com/RooVetGit/Roo-Code into sbc_add_subtasks 2025-02-26 12:49:19 +02:00
Chris Estreich
159621cea6 Move & clean up model fetchers 2025-02-25 11:35:24 -08:00
ShayBC
8dc8ec32d3 Fix dependencies and update TaskHeader 2025-02-25 09:01:50 +02:00
ShayBC
01765995ad added task no indicator + improved deleteTask code 2025-02-24 23:00:11 +02:00
cte
90b019f55c Shadow git checkpoints 2025-02-12 13:17:43 -08:00
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
Murilo Pires
1ba632fe89
Update webview-ui/src/components/chat/TaskHeader.tsx
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-01-28 00:39:40 -03:00
MFPires
e668169ed9 feat: Add conversation context token counter
- Add contextTokens to ApiMetrics interface
- Calculate context size using last API request's tokens
- Display context token count in TaskHeader below total tokens
- Use exact token counts instead of character estimation

This helps users track the total size of their conversation context,
which is useful for managing context window limits.
2025-01-27 23:02:25 -03:00
Saoud Rizwan
39bc35eec1 Add LM Studio provider 2024-11-12 22:02:42 -05:00
Saoud Rizwan
34f160b35a Cleanup 2024-10-09 01:49:59 -04:00
Saoud Rizwan
d67523596b Refactor ClineMessage 2024-10-09 01:49:59 -04:00
Saoud Rizwan
e1ab10f24e Format large numbers to use k or m 2024-10-09 01:49:56 -04:00
Saoud Rizwan
59c188019a Get openrouter streaming working 2024-10-09 01:49:55 -04:00
Saoud Rizwan
6fe9ed22b0 Refactor web components 2024-09-24 11:54:19 -04:00
Renamed from webview-ui/src/components/TaskHeader.tsx (Browse further)