Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/types/src/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const organizationCloudSettingsSchema = z.object({
taskShareExpirationDays: z.number().int().positive().optional(),
allowMembersViewAllTasks: z.boolean().optional(),
workspaceTaskVisibility: workspaceTaskVisibilitySchema.optional(),
hideCosts: z.boolean().optional(),
})

export type OrganizationCloudSettings = z.infer<typeof organizationCloudSettingsSchema>
Expand Down Expand Up @@ -184,6 +185,7 @@ export type UserFeatures = z.infer<typeof userFeaturesSchema>
export const userSettingsConfigSchema = z.object({
extensionBridgeEnabled: z.boolean().optional(),
taskSyncEnabled: z.boolean().optional(),
hideCosts: z.boolean().optional(),
})

export type UserSettingsConfig = z.infer<typeof userSettingsConfigSchema>
Expand Down
1 change: 1 addition & 0 deletions webview-ui/src/components/chat/TaskHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface TaskHeaderProps {
cacheReads?: number
totalCost: number
contextTokens: number
hideCosts?: boolean

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hideCosts property is added to the interface but is not destructured in the component parameters (lines 52-63). Without destructuring, the value is unavailable, and cost displays at lines 252 and 384-393 remain unconditional. Add hideCosts to the destructuring and use it to conditionally render cost elements.

Fix it with Roo Code or mention @roomote and request a fix.

buttonsDisabled: boolean
handleCondenseContext: (taskId: string) => void
todos?: any[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { FoldVertical } from "lucide-react"

import type { ContextCondense } from "@roo-code/types"

import { useExtensionState } from "@src/context/ExtensionStateContext"
import { Markdown } from "../Markdown"

interface CondensationResultRowProps {
Expand All @@ -17,6 +18,7 @@ interface CondensationResultRowProps {
*/
export function CondensationResultRow({ data }: CondensationResultRowProps) {
const { t } = useTranslation()
const { hideCosts } = useExtensionState()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hideCosts variable is destructured here but never used in the component. The cost badge (VSCodeBadge at lines 45-47) displays unconditionally. To implement the hide costs feature, wrap the cost badge with {!hideCosts && (...)} to conditionally render it based on user settings.

Fix it with Roo Code or mention @roomote and request a fix.

const [isExpanded, setIsExpanded] = useState(false)

const { cost, prevContextTokens, newContextTokens, summary } = data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ describe("mergeExtensionState", () => {
remoteControlEnabled: false,
taskSyncEnabled: false,
featureRoomoteControlEnabled: false,
hideCosts: false,
isBrowserSessionActive: false,
checkpointTimeout: DEFAULT_CHECKPOINT_TIMEOUT_SECONDS, // Add the checkpoint timeout property
}
Expand Down
Loading