fix: add missing hideCosts import and interface property

This commit is contained in:
Roo Code 2026-01-02 16:35:58 +00:00
parent 8af87ae58d
commit bc7960819d
3 changed files with 4 additions and 0 deletions

View file

@ -43,6 +43,7 @@ export interface TaskHeaderProps {
cacheReads?: number
totalCost: number
contextTokens: number
hideCosts?: boolean
buttonsDisabled: boolean
handleCondenseContext: (taskId: string) => void
todos?: any[]

View file

@ -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 {
@ -17,6 +18,7 @@ interface CondensationResultRowProps {
*/
export function CondensationResultRow({ data }: CondensationResultRowProps) {
const { t } = useTranslation()
const { hideCosts } = useExtensionState()
const [isExpanded, setIsExpanded] = useState(false)
const { cost, prevContextTokens, newContextTokens, summary } = data

View file

@ -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
}