Skip to content

Commit dd4b2a9

Browse files
committed
PR Feedback
1 parent 0e8048d commit dd4b2a9

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

src/shared/ExtensionMessage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
OrganizationAllowList,
1515
ShareVisibility,
1616
QueuedMessage,
17+
CloudAgent,
1718
} from "@roo-code/types"
1819

1920
import { GitCommit } from "../utils/git"
@@ -206,7 +207,7 @@ export interface ExtensionMessage {
206207
queuedMessages?: QueuedMessage[]
207208
list?: string[] // For dismissedUpsells
208209
organizationId?: string | null // For organizationSwitchResult
209-
agents?: any[] // For cloudAgents
210+
agents?: CloudAgent[] // For cloudAgents
210211
}
211212

212213
export type ExtensionState = Pick<

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
18131813
<RooHero />
18141814

18151815
{/* New users should see tips */}
1816-
{taskHistory.length < 4 && <RooTips />}
1816+
{taskHistory.length < 400000 && <RooTips />}
18171817

18181818
{/* Everyone should see their task history if any */}
18191819
{taskHistory.length > 0 && <HistoryPreview />}

webview-ui/src/components/cloud/CloudAgents.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect, useState } from "react"
2-
import { Cloud, Plus, SquarePen } from "lucide-react"
2+
import { Cloud, Hammer, Plus, SquarePen } from "lucide-react"
33
import type { CloudAgent } from "@roo-code/types"
44
import { useTranslation } from "react-i18next"
55
import { vscode } from "@/utils/vscode"
@@ -103,14 +103,18 @@ const CloudAgents: React.FC = () => {
103103
className="flex items-center relative group gap-2 px-4 py-2 rounded-xl bg-vscode-editor-background hover:bg-vscode-list-hoverBackground cursor-pointer transition-colors"
104104
onClick={() => handleAgentClick(agent.id)}
105105
aria-label={t("chat:cloudAgents.clickToRun", { name: agent.name })}>
106-
<span
107-
className="text-xl size-5 bg-foreground"
108-
role="img"
109-
aria-label={agent.type}
110-
style={{
111-
mask: `url('${agent.icon}') no-repeat center`,
112-
maskSize: "contain",
113-
}}></span>
106+
{agent.icon ? (
107+
<span
108+
className="text-xl size-5 bg-foreground"
109+
role="img"
110+
aria-label={agent.type}
111+
style={{
112+
mask: `url('${agent.icon}') no-repeat center`,
113+
maskSize: "contain",
114+
}}></span>
115+
) : (
116+
<Hammer className="size-5 text-vscode-descriptionForeground shrink-0" />
117+
)}
114118
<div className="flex-1 min-w-0">
115119
<div className="text-base font-medium text-vscode-foreground truncate">
116120
{agent.name}

0 commit comments

Comments
 (0)