Skip to content

Commit 4871885

Browse files
committed
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
1 parent 9148488 commit 4871885

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/core/environment/getEnvironmentDetails.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
207207

208208
// Add context tokens information (if enabled).
209209
if (includeCurrentCost) {
210-
const { contextTokens, totalCost } = getApiMetrics(cline.clineMessages)
210+
const { totalCost } = getApiMetrics(cline.clineMessages)
211211
details += `\n\n# Current Cost\n${totalCost !== null ? `$${totalCost.toFixed(2)}` : "(Not available)"}`
212212
}
213213

src/shared/ExtensionMessage.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@ export type ExtensionState = Pick<
347347
openRouterImageApiKey?: string
348348
openRouterUseMiddleOutTransform?: boolean
349349
messageQueue?: QueuedMessage[]
350-
includeCurrentTime?: boolean
351-
includeCurrentCost?: boolean
352350
lastShownAnnouncementId?: string
353351
apiModelId?: string
354352
mcpServers?: McpServer[]

0 commit comments

Comments
 (0)