mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: address review comments from roomote
- Remove unused contextTokens variable in getEnvironmentDetails.ts - Remove duplicate includeCurrentTime/Cost properties in ExtensionMessage.ts - Properties are already defined in the Pick<GlobalSettings> type union
This commit is contained in:
parent
0c83ee59df
commit
72ef4d30bf
2 changed files with 1 additions and 3 deletions
|
|
@ -207,7 +207,7 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
|
|||
|
||||
// Add context tokens information (if enabled).
|
||||
if (includeCurrentCost) {
|
||||
const { contextTokens, totalCost } = getApiMetrics(cline.clineMessages)
|
||||
const { totalCost } = getApiMetrics(cline.clineMessages)
|
||||
details += `\n\n# Current Cost\n${totalCost !== null ? `$${totalCost.toFixed(2)}` : "(Not available)"}`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -354,8 +354,6 @@ export type ExtensionState = Pick<
|
|||
openRouterImageApiKey?: string
|
||||
openRouterUseMiddleOutTransform?: boolean
|
||||
messageQueue?: QueuedMessage[]
|
||||
includeCurrentTime?: boolean
|
||||
includeCurrentCost?: boolean
|
||||
lastShownAnnouncementId?: string
|
||||
apiModelId?: string
|
||||
mcpServers?: McpServer[]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue