Skip to content

Commit 72ef4d3

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 0c83ee5 commit 72ef4d3

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
@@ -354,8 +354,6 @@ export type ExtensionState = Pick<
354354
openRouterImageApiKey?: string
355355
openRouterUseMiddleOutTransform?: boolean
356356
messageQueue?: QueuedMessage[]
357-
includeCurrentTime?: boolean
358-
includeCurrentCost?: boolean
359357
lastShownAnnouncementId?: string
360358
apiModelId?: string
361359
mcpServers?: McpServer[]

0 commit comments

Comments
 (0)