Skip to content

Commit de28a59

Browse files
committed
feat: remove color
1 parent 2a72889 commit de28a59

File tree

4 files changed

+28
-29
lines changed

4 files changed

+28
-29
lines changed

chat/src/app/header.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import {AgentTypeColorCoding, useChat} from "@/components/chat-provider";
3+
import {AgentType, useChat} from "@/components/chat-provider";
44
import {ModeToggle} from "@/components/mode-toggle";
55

66
export function Header() {
@@ -27,14 +27,9 @@ export function Header() {
2727

2828
{agentType !== "unknown" && (
2929
<div className="flex items-center gap-2 text-sm font-medium">
30-
<span
31-
className={`text-secondary w-2 h-2 rounded-full ${AgentTypeColorCoding[agentType].color} ring-2 flex items-center justify-center`}
32-
>
33-
</span>
34-
<span>{AgentTypeColorCoding[agentType].displayName}</span>
30+
<span>{AgentType[agentType].displayName}</span>
3531
</div>
3632
)}
37-
3833
<ModeToggle/>
3934
</div>
4035
</header>

chat/src/components/chat-provider.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,26 @@ export interface FileUploadResponse {
6565
filePath?: string;
6666
}
6767

68-
export type AgentType = "claude" | "goose" | "aider" | "gemini" | "amp" | "codex" | "cursor" | "cursor-agent" | "custom" | "unknown";
68+
export type AgentType = "claude" | "goose" | "aider" | "gemini" | "amp" | "codex" | "cursor" | "cursor-agent" | "copilot" | "auggie" | "amazonq" | "opencode" | "custom" | "unknown";
6969

7070
export type AgentColorDisplayNamePair = {
7171
displayName: string;
72-
color: string;
7372
}
7473

75-
export const AgentTypeColorCoding: Record<Exclude<AgentType, "unknown">, AgentColorDisplayNamePair> = {
76-
claude: {color: "bg-blue-300 ring-blue-300/35", displayName: "Claude Code"},
77-
goose: {color: "bg-green-300 ring-green-300/35", displayName: "Goose"},
78-
aider: {color: "bg-yellow-300 ring-yellow-300/35", displayName: "Aider"},
79-
gemini: {color: "bg-purple-300 ring-purple-300/35", displayName: "Gemini"},
80-
amp: {color: "bg-pink-300 ring-pink-300/35", displayName: "Amp"},
81-
codex: {color: "bg-orange-300 ring-orange-300/35", displayName: "Codex"},
82-
cursor: {color: "bg-lime-300 ring-lime-300/35", displayName: "Cursor Agent"},
83-
"cursor-agent": {color: "bg-lime-300 ring-lime-300/35", displayName: "Cursor Agent"},
84-
custom: {color: "bg-gray-300 ring-gray-300/35", displayName: "Custom"}
74+
export const AgentType: Record<Exclude<AgentType, "unknown">, AgentColorDisplayNamePair> = {
75+
claude: {displayName: "Claude Code"},
76+
goose: {displayName: "Goose"},
77+
aider: {displayName: "Aider"},
78+
gemini: { displayName: "Gemini"},
79+
amp: {displayName: "Amp"},
80+
codex: {displayName: "Codex"},
81+
cursor: { displayName: "Cursor Agent"},
82+
"cursor-agent": { displayName: "Cursor Agent"},
83+
copilot: {displayName: "Copilot"},
84+
auggie: {displayName: "Auggie"},
85+
amazonq: {displayName: "Amazon Q"},
86+
opencode: {displayName: "Opencode"},
87+
custom: { displayName: "Custom"}
8588
}
8689

8790
interface ChatContextValue {

lib/msgfmt/msgfmt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ func trimEmptyLines(message string) string {
231231

232232
type AgentType string
233233

234+
// Remember to add the display name to the agentapi/chat/src/components/chat-provider.tsx
234235
const (
235236
AgentTypeClaude AgentType = "claude"
236237
AgentTypeGoose AgentType = "goose"

openapi.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@
280280
}
281281
},
282282
"required": [
283-
"status",
284-
"agent_type"
283+
"agent_type",
284+
"status"
285285
],
286286
"type": "object"
287287
},
@@ -307,8 +307,8 @@
307307
}
308308
},
309309
"required": [
310-
"status",
311-
"agent_type"
310+
"agent_type",
311+
"status"
312312
],
313313
"type": "object"
314314
},
@@ -363,10 +363,10 @@
363363
{
364364
"properties": {
365365
"data": {
366-
"$ref": "#/components/schemas/StatusChangeBody"
366+
"$ref": "#/components/schemas/MessageUpdateBody"
367367
},
368368
"event": {
369-
"const": "status_change",
369+
"const": "message_update",
370370
"description": "The event name.",
371371
"type": "string"
372372
},
@@ -383,16 +383,16 @@
383383
"data",
384384
"event"
385385
],
386-
"title": "Event status_change",
386+
"title": "Event message_update",
387387
"type": "object"
388388
},
389389
{
390390
"properties": {
391391
"data": {
392-
"$ref": "#/components/schemas/MessageUpdateBody"
392+
"$ref": "#/components/schemas/StatusChangeBody"
393393
},
394394
"event": {
395-
"const": "message_update",
395+
"const": "status_change",
396396
"description": "The event name.",
397397
"type": "string"
398398
},
@@ -409,7 +409,7 @@
409409
"data",
410410
"event"
411411
],
412-
"title": "Event message_update",
412+
"title": "Event status_change",
413413
"type": "object"
414414
}
415415
]

0 commit comments

Comments
 (0)