mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: add missing hideCosts import and interface property
This commit is contained in:
parent
8af87ae58d
commit
bc7960819d
3 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ export interface TaskHeaderProps {
|
|||
cacheReads?: number
|
||||
totalCost: number
|
||||
contextTokens: number
|
||||
hideCosts?: boolean
|
||||
buttonsDisabled: boolean
|
||||
handleCondenseContext: (taskId: string) => void
|
||||
todos?: any[]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue