mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fixes #5165 - Remove context indicators from model-facing environment details
- Removed context token information (token count and percentage) from environment details sent to AI models - Models were inappropriately modifying their behavior based on perceived token constraints - Preserved cost information which is still useful for user-facing displays - Updated corresponding test to reflect the change
This commit is contained in:
parent
3a8ba27615
commit
b6b90bc577
2 changed files with 0 additions and 2 deletions
|
|
@ -146,7 +146,6 @@ describe("getEnvironmentDetails", () => {
|
|||
expect(result).toContain("# VSCode Visible Files")
|
||||
expect(result).toContain("# VSCode Open Tabs")
|
||||
expect(result).toContain("# Current Time")
|
||||
expect(result).toContain("# Current Context Size (Tokens)")
|
||||
expect(result).toContain("# Current Cost")
|
||||
expect(result).toContain("# Current Mode")
|
||||
expect(result).toContain("<model>test-model</model>")
|
||||
|
|
|
|||
|
|
@ -203,7 +203,6 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
|
|||
const contextPercentage =
|
||||
contextTokens && contextWindow ? Math.round((contextTokens / contextWindow) * 100) : undefined
|
||||
|
||||
details += `\n\n# Current Context Size (Tokens)\n${contextTokens ? `${contextTokens.toLocaleString()} (${contextPercentage}%)` : "(Not available)"}`
|
||||
details += `\n\n# Current Cost\n${totalCost !== null ? `$${totalCost.toFixed(2)}` : "(Not available)"}`
|
||||
|
||||
// Add current mode and any mode-specific warnings.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue