Skip to content

Commit 93bfeb4

Browse files
committed
feat: add indicator for cursor agent
1 parent e368adb commit 93bfeb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chat/src/components/chat-provider.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type MessageType = "user" | "raw";
4343

4444
export type ServerStatus = "stable" | "running" | "offline" | "unknown";
4545

46-
export type AgentType = "claude" | "goose" | "aider" | "gemini" | "amp" | "codex" | "custom" | "unknown";
46+
export type AgentType = "claude" | "goose" | "aider" | "gemini" | "amp" | "codex" | "cursor" | "cursor-agent" | "custom" | "unknown";
4747

4848
export type AgentColorDisplayNamePair = {
4949
displayName: string;
@@ -57,6 +57,8 @@ export const AgentTypeColorCoding: Record<Exclude<AgentType, "unknown">, AgentCo
5757
gemini: {color: "bg-purple-300 ring-purple-300/35", displayName: "Gemini"},
5858
amp: {color: "bg-pink-300 ring-pink-300/35", displayName: "Amp"},
5959
codex: {color: "bg-orange-300 ring-orange-300/35", displayName: "Codex"},
60+
cursor: {color: "bg-violet-300 ring-violet-300/35", displayName: "Cursor Agent"},
61+
"cursor-agent": {color: "bg-violet-300 ring-violet-300/35", displayName: "Cursor Agent"},
6062
custom: {color: "bg-gray-300 ring-gray-300/35", displayName: "Custom"}
6163
}
6264

@@ -175,7 +177,6 @@ export function ChatProvider({children}: PropsWithChildren) {
175177
// Handle status changes
176178
eventSource.addEventListener("status_change", (event) => {
177179
const data: StatusChangeEvent = JSON.parse(event.data);
178-
console.log(data)
179180
if (data.status === "stable") {
180181
setServerStatus("stable");
181182
} else if (data.status === "running") {

0 commit comments

Comments
 (0)