Skip to content

🙌 OpenHands: AI-Driven Development

feat: surface conversation tags in the conversation panel (#1926)

Harish Chandramowli13952d79463d
diff --git a/__tests__/api/agent-server-conversation-service.test.ts b/__tests__/api/agent-server-conversation-service.test.ts
index 911b1429f6..f1d958c7a9 100644
--- a/__tests__/api/agent-server-conversation-service.test.ts
+++ b/__tests__/api/agent-server-conversation-service.test.ts
@@ -851,10 +851,59 @@ describe("AgentServerConversationService", () => {
"conv-malformed-tags",
]);
- // ``acp_server`` is the surfaced field on AppConversation; tags is
- // only on DirectConversationInfo. Asserting both via this read
- // path keeps the test honest end-to-end.
expect(conversation?.acp_server).toBe("codex");
+ // The normalized map is also surfaced on ``AppConversation.tags``
+ // (including reserved keys — display filtering happens later in
+ // ``getDisplayConversationTags``). Asserting the exact object here
+ // pins the wire → AppConversation boundary: only string-valued
+ // entries survive, and the field must not silently drop off the
+ // adapter again.
+ expect(conversation?.tags).toEqual({ acpserver: "codex" });
+ });
+
+ it("carries well-formed wire tags through to AppConversation.tags", async () => {
+ mockHttpGet.mockResolvedValue({
+ data: [
+ {
+ id: "conv-wire-tags",
+ created_at: "2024-01-01",
+ updated_at: "2024-01-01",
+ agent: { kind: "ACPAgent", llm: { model: "acp-managed" } },
+ tags: { acpserver: "claude-code", origin: "slack", owner: "alice" },
+ },
+ ],
+ });
+
+ const [conversation] =
+ await AgentServerConversationService.batchGetAppConversations([
+ "conv-wire-tags",
+ ]);
+
+ expect(conversation?.tags).toEqual({
+ acpserver: "claude-code",
+ origin: "slack",
+ owner: "alice",
+ });
+ });
+
+ it("surfaces AppConversation.tags as null when the wire field is absent", async () => {
+ mockHttpGet.mockResolvedValue({
+ data: [
+ {
+ id: "conv-no-tags",
+ created_at: "2024-01-01",
+ updated_at: "2024-01-01",
+ agent: { kind: "ACPAgent", llm: { model: "acp-managed" } },
+ },
+ ],
+ });
+
+ const [conversation] =
+ await AgentServerConversationService.batchGetAppConversations([
+ "conv-no-tags",
+ ]);
+
+ expect(conversation?.tags).toBeNull();
});
});
diff --git a/__tests__/components/features/conversation-panel/conversation-card.test.tsx b/__tests__/components/features/conversation-panel/conversation-card.test.tsx
index 7cbec5b1bb..5d3ccef449 100644
--- a/__tests__/components/features/conversation-panel/conversation-card.test.tsx
+++ b/__tests__/components/features/conversation-panel/conversation-card.test.tsx
@@ -13,6 +13,7 @@ import userEvent from "@testing-library/user-event";
import { renderWithProviders } from "test-utils";
import { formatTimeDelta } from "#/utils/format-time-delta";
import { ConversationCard } from "#/components/features/conversation-panel/conversation-card/conversation-card";
+import { MAX_VISIBLE_TAG_CHIPS } from "#/components/features/conversation-panel/conversation-card/conversation-card-footer";
import { clickOnEditButton } from "./utils";
import { ConversationCardActions } from "#/components/features/conversation-panel/conversation-card/conversation-card-actions";
import { ExecutionStatus } from "#/types/agent-server/core/base/common";
@@ -588,6 +589,129 @@ describe("ConversationCard", () => {
});
});
+ describe("Tag chips", () => {
+ // Tag chips surface the agent-server's server-side conversation tags
+ // (e.g. ``origin=slack`` stamped by an automation) and are gated by the
+ // conversation panel's "Tags" toggle (``showTags``).
+ it("renders non-reserved tags as key: value chips when showTags is on", () => {
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ showTags
+ tags={{ origin: "slack", owner: "alice" }}
+ />,
+ );
+
+ const chips = screen.getAllByTestId("conversation-card-tag-chip");
+ // Chips are sorted by key ("origin" < "owner") for a stable order.
+ expect(chips).toHaveLength(2);
+ expect(chips[0]).toHaveTextContent("origin: slack");
+ expect(chips[1]).toHaveTextContent("owner: alice");
+ });
+
+ it("filters reserved tag keys out of the chip row", () => {
+ // ``acpserver`` is Canvas-internal routing state already surfaced via
+ // the agent chip — it must not double-render as a generic tag chip.
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ showTags
+ tags={{ acpserver: "claude-code", origin: "review" }}
+ />,
+ );
+
+ const chips = screen.getAllByTestId("conversation-card-tag-chip");
+ expect(chips).toHaveLength(1);
+ expect(chips[0]).toHaveTextContent("origin: review");
+ });
+
+ it("hides the chips when showTags is omitted", () => {
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ tags={{ origin: "slack" }}
+ />,
+ );
+
+ expect(
+ screen.queryByTestId("conversation-card-tag-chip"),
+ ).not.toBeInTheDocument();
+ });
+
+ it("caps visible chips at the display budget with a +N overflow chip", () => {
+ // Tags are API-controlled with no useful size bound, so the card must
+ // not grow with the tag count: first MAX_VISIBLE_TAG_CHIPS sorted keys
+ // render as chips, the rest fold into "+N" with a tooltip listing them.
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ showTags
+ tags={{
+ env: "prod",
+ origin: "slack",
+ owner: "alice",
+ repo: "goodday",
+ team: "infra",
+ }}
+ />,
+ );
+
+ const chips = screen.getAllByTestId("conversation-card-tag-chip");
+ expect(chips).toHaveLength(MAX_VISIBLE_TAG_CHIPS);
+ expect(chips[0]).toHaveTextContent("env: prod");
+ expect(chips[1]).toHaveTextContent("origin: slack");
+ expect(chips[2]).toHaveTextContent("owner: alice");
+
+ const overflow = screen.getByTestId("conversation-card-tag-overflow");
+ expect(overflow).toHaveTextContent("+2");
+ // The hidden remainder stays reachable via the overflow tooltip.
+ expect(overflow).toHaveAttribute("title", "repo: goodday\nteam: infra");
+ });
+
+ it("renders no overflow chip when tags fit the display budget", () => {
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ showTags
+ tags={{ env: "prod", origin: "slack", owner: "alice" }}
+ />,
+ );
+
+ expect(
+ screen.getAllByTestId("conversation-card-tag-chip"),
+ ).toHaveLength(3);
+ expect(
+ screen.queryByTestId("conversation-card-tag-overflow"),
+ ).not.toBeInTheDocument();
+ });
+
+ it("renders no chip row when every tag is reserved", () => {
+ renderWithProviders(
+ <ConversationCard
+ title="Conversation 1"
+ selectedRepository={null}
+ lastUpdatedAt="2021-10-01T12:00:00Z"
+ showTags
+ tags={{ acpserver: "claude-code" }}
+ />,
+ );
+
+ expect(
+ screen.queryByTestId("conversation-card-tag-chip"),
+ ).not.toBeInTheDocument();
+ });
+ });
+
describe("Agent chip", () => {
// The agent chip is gated by the conversation panel's "Agent / model"
// toggle (``showLlmProfiles``) — one control for both ACP and OpenHands
diff --git a/__tests__/components/features/conversation-panel/conversation-panel-filter-menu.test.tsx b/__tests__/components/features/conversation-panel/conversation-panel-filter-menu.test.tsx
index d2a389b831..37c2caaffb 100644
--- a/__tests__/components/features/conversation-panel/conversation-panel-filter-menu.test.tsx
+++ b/__tests__/components/features/conversation-panel/conversation-panel-filter-menu.test.tsx
@@ -32,6 +32,8 @@ function renderFilterMenu(
toggleShowRepoBranchMetadata: vi.fn(),
showLlmProfiles: false,
toggleShowLlmProfiles: vi.fn(),
+ showTagsMetadata: false,
+ toggleShowTagsMetadata: vi.fn(),
showHoverMetadata: false,
toggleShowHoverMetadata: vi.fn(),
totalConversationsCount: 5,
diff --git a/__tests__/stores/conversation-panel-preferences-store.test.ts b/__tests__/stores/conversation-panel-preferences-store.test.ts
index ea6deb9b0f..6e52d2fe20 100644
--- a/__tests__/stores/conversation-panel-preferences-store.test.ts
+++ b/__tests__/stores/conversation-panel-preferences-store.test.ts
@@ -13,6 +13,7 @@ describe("conversation-panel-preferences store", () => {
expect(state.showOlderConversations).toBe(true);
expect(state.showRepoBranchMetadata).toBe(false);
expect(state.showLlmProfiles).toBe(true);
+ expect(state.showTagsMetadata).toBe(true);
expect(state.organizeMode).toBe("chronological");
expect(state.conversationSort).toBe("updated");
expect(state.threadScope).toBe("all");
@@ -77,6 +78,7 @@ describe("conversation-panel-preferences store", () => {
"showLlmProfiles",
"showOlderConversations",
"showRepoBranchMetadata",
+ "showTagsMetadata",
"threadScope",
]);
});
diff --git a/src/api/agent-server-adapter.ts b/src/api/agent-server-adapter.ts
index 23eae72b12..bedabffabc 100644
--- a/src/api/agent-server-adapter.ts
+++ b/src/api/agent-server-adapter.ts
@@ -328,6 +328,7 @@ export function toAppConversation(
pr_number: [],
agent_kind: isAcp ? "acp" : "openhands",
acp_server: acpServer,
+ tags: info.tags ?? null,
launched_agent_profile: info.launched_agent_profile ?? null,
// Chip path: omit ``providerDefault`` so that when no concrete model
// resolves, the chip falls back to the provider display name in
@@ -421,6 +422,31 @@ type ConversationSettingsPayload = SettingsRecord & {
export const ACP_SERVER_TAG_KEY = "acpserver";
+/**
+ * Conversation tag keys Canvas itself stamps/consumes for internal routing.
+ * They are already surfaced through dedicated UI (the ACP provider chip), so
+ * the generic tag-chip display filters them out.
+ */
+export const RESERVED_CONVERSATION_TAG_KEYS: ReadonlySet<string> = new Set([
+ ACP_SERVER_TAG_KEY,
+]);
+
+/**
+ * User-facing subset of a conversation's server-side tags: everything except
+ * {@link RESERVED_CONVERSATION_TAG_KEYS}, as stable ``[key, value]`` entries
+ * sorted by key so chip order doesn't shuffle between refetches.
+ */
+export function getDisplayConversationTags(
+ tags: Record<string, string> | null | undefined,
+): Array<[string, string]> {
+ if (!tags) {
+ return [];
+ }
+ return Object.entries(tags)
+ .filter(([key]) => !RESERVED_CONVERSATION_TAG_KEYS.has(key))
+ .sort(([a], [b]) => a.localeCompare(b));
+}
+
const FERNET_TOKEN_PREFIX = "gAAAAA";
const CONVERSATION_SETTINGS_METADATA_KEYS = new Set([
diff --git a/src/api/conversation-service/agent-server-conversation-service.types.ts b/src/api/conversation-service/agent-server-conversation-service.types.ts
index 9f273c0e2b..0677deb86e 100644
--- a/src/api/conversation-service/agent-server-conversation-service.types.ts
+++ b/src/api/conversation-service/agent-server-conversation-service.types.ts
@@ -163,6 +163,22 @@ export interface AppConversation {
* "ACP" chip when the key is unknown or null.
*/
acp_server?: string | null;
+ /**
+ * Server-side key-value tags from the agent-server's
+ * ``ConversationInfo.tags`` (settable at creation and via
+ * ``PATCH /api/conversations/{id}``). Automations and API clients use these
+ * for attribution (e.g. ``origin=slack``, ``owner=alice``). Includes
+ * reserved/internal keys such as ``acpserver`` — display consumers should
+ * go through ``getDisplayConversationTags`` in ``agent-server-adapter.ts``
+ * rather than reading this raw. ``null``/absent for Cloud conversations
+ * and agent-servers that don't return tags.
+ *
+ * PATCH semantics: the agent-server replaces the **complete** ``tags`` map
+ * on every PATCH — it does not merge individual keys. A writer adding one
+ * tag must read the current map, merge, and send the full desired result,
+ * or it will silently drop every other tag (including ``acpserver``).
+ */
+ tags?: Record<string, string> | null;
llm_model: string | null;
metrics: MetricsSnapshot | null;
created_at: string;
diff --git a/src/components/features/conversation-panel/compact-conversation-row.tsx b/src/components/features/conversation-panel/compact-conversation-row.tsx
index a97adab3e2..07c9f8e5f8 100644
--- a/src/components/features/conversation-panel/compact-conversation-row.tsx
+++ b/src/components/features/conversation-panel/compact-conversation-row.tsx
@@ -26,6 +26,8 @@ interface CompactConversationRowProps {
showLlmProfiles?: boolean;
agentKind?: "openhands" | "acp" | null;
acpServer?: string | null;
+ tags?: Record<string, string> | null;
+ showTags?: boolean;
}
/**
@@ -49,6 +51,8 @@ export function CompactConversationRow({
showLlmProfiles = false,
agentKind = null,
acpServer = null,
+ tags = null,
+ showTags = false,
}: CompactConversationRowProps) {
const { t } = useTranslation("openhands");
const disableAnimation = import.meta.env.MODE === "test";
@@ -76,6 +80,8 @@ export function CompactConversationRow({
showAgentChip={showLlmProfiles}
agentKind={agentKind}
acpServer={acpServer}
+ tags={tags}
+ showTags={showTags}
/>
</div>
);
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
index d652167a1d..27e0cc5078 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card-footer.tsx
@@ -15,9 +15,17 @@ import {
AgentBrandIcon,
type AgentBrandIconKind,
} from "#/components/shared/agent-brand-icon";
+import { getDisplayConversationTags } from "#/api/agent-server-adapter";
import { ConversationRepoLink } from "./conversation-repo-link";
import { NoRepository } from "./no-repository";
+/**
+ * Display budget for the tag-chip row. Tags are server-/API-controlled, so a
+ * conversation can carry arbitrarily many; the card shows at most this many
+ * chips (sorted by key) and folds the rest into a "+N" overflow chip.
+ */
+export const MAX_VISIBLE_TAG_CHIPS = 3;
+
interface ConversationCardFooterProps {
selectedRepository: RepositorySelection | null;
lastUpdatedAt: string;
@@ -48,6 +56,17 @@ interface ConversationCardFooterProps {
* useful chip.
*/
acpServer?: string | null;
+ /**
+ * Server-side conversation tags (``AppConversation.tags``). Non-reserved
+ * entries render as ``key: value`` chips so API-/automation-born
+ * conversations can surface attribution (e.g. ``origin: slack``).
+ */
+ tags?: Record<string, string> | null;
+ /**
+ * Whether to render the tag-chip row. Wired to the conversation panel's
+ * "Tags" toggle.
+ */
+ showTags?: boolean;
}
export function ConversationCardFooter({
@@ -62,6 +81,8 @@ export function ConversationCardFooter({
showAgentChip = false,
agentKind = null,
acpServer = null,
+ tags = null,
+ showTags = false,
}: ConversationCardFooterProps) {
const { t } = useTranslation("openhands");
@@ -108,6 +129,14 @@ export function ConversationCardFooter({
const metadataIndentClass =
executionStatus !== undefined ? "pl-[26px]" : undefined;
+ const displayTags = showTags ? getDisplayConversationTags(tags) : [];
+ // Tags are API-controlled with no server-side count bound, so the card
+ // renders a fixed display budget: the first chips in sorted-key order plus
+ // a "+N" affordance whose tooltip reveals the remainder. The full map stays
+ // on ``AppConversation.tags`` for non-display consumers.
+ const visibleTags = displayTags.slice(0, MAX_VISIBLE_TAG_CHIPS);
+ const overflowTags = displayTags.slice(MAX_VISIBLE_TAG_CHIPS);
+
return (
<div
className={cn(
@@ -127,6 +156,36 @@ export function ConversationCardFooter({
</span>
</div>
) : null}
+ {displayTags.length > 0 ? (
+ <div
+ className={cn(
+ "flex flex-row flex-wrap items-center gap-1 min-w-0",
+ metadataIndentClass,
+ )}
+ >
+ {visibleTags.map(([key, value]) => (
+ <span
+ key={key}
+ data-testid="conversation-card-tag-chip"
+ title={`${key}: ${value}`}
+ className="inline-flex max-w-full min-w-0 items-center rounded-sm bg-[var(--oh-surface-raised)] px-1 py-px text-[10px] leading-4 text-[var(--oh-muted)]"
+ >
+ <span className="truncate">{`${key}: ${value}`}</span>
+ </span>
+ ))}
+ {overflowTags.length > 0 ? (
+ <span
+ data-testid="conversation-card-tag-overflow"
+ title={overflowTags
+ .map(([key, value]) => `${key}: ${value}`)
+ .join("\n")}
+ className="inline-flex items-center rounded-sm bg-[var(--oh-surface-raised)] px-1 py-px text-[10px] leading-4 text-[var(--oh-muted)]"
+ >
+ {`+${overflowTags.length}`}
+ </span>
+ ) : null}
+ </div>
+ ) : null}
<div
className={cn(
"flex flex-row items-center gap-2 w-full min-w-0",
diff --git a/src/components/features/conversation-panel/conversation-card/conversation-card.tsx b/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
index 13499b978f..cf8c02d8b5 100644
--- a/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
+++ b/src/components/features/conversation-panel/conversation-card/conversation-card.tsx
@@ -6,6 +6,7 @@ import { cn } from "#/utils/utils";
import { I18nKey } from "#/i18n/declaration";
import { transformVSCodeUrl } from "#/utils/vscode-url-helper";
import ConversationService from "#/api/conversation-service/conversation-service.api";
+import { getDisplayConversationTags } from "#/api/agent-server-adapter";
import { ExecutionStatus } from "#/types/agent-server/core/base/common";
import { SandboxStatus } from "#/api/conversation-service/agent-server-conversation-service.types";
import { RepositorySelection } from "#/api/open-hands.types";
@@ -38,6 +39,9 @@ interface ConversationCardProps {
showLlmProfiles?: boolean;
agentKind?: "openhands" | "acp" | null;
acpServer?: string | null;
+ tags?: Record<string, string> | null;
+ /** Gates the tag-chip row; wired to the panel's "Tags" metadata toggle. */
+ showTags?: boolean;
isPinned?: boolean;
onTogglePin?: () => void;
/** When true and pinned, keep the pin icon visible without hovering. */
@@ -66,6 +70,8 @@ export function ConversationCard({
showLlmProfiles = false,
agentKind = null,
acpServer = null,
+ tags = null,
+ showTags = false,
isPinned = false,
onTogglePin,
alwaysShowPinIcon = false,
@@ -179,7 +185,8 @@ export function ConversationCard({
const showPersistentPinIcon = alwaysShowPinIcon && isPinned && !!onTogglePin;
const shouldRenderFooter =
showRepositoryMetadata ||
- (showLlmProfiles && (agentKind === "acp" || !!llmModel));
+ (showLlmProfiles && (agentKind === "acp" || !!llmModel)) ||
+ (showTags && getDisplayConversationTags(tags).length > 0);
return (
<div
@@ -314,6 +321,8 @@ export function ConversationCard({
showAgentChip={showLlmProfiles}
agentKind={agentKind}
acpServer={acpServer}
+ tags={tags}
+ showTags={showTags}
/>
)}
</div>
diff --git a/src/components/features/conversation-panel/conversation-panel-filter-menu.tsx b/src/components/features/conversation-panel/conversation-panel-filter-menu.tsx
index 208a137179..c48f2415c8 100644
--- a/src/components/features/conversation-panel/conversation-panel-filter-menu.tsx
+++ b/src/components/features/conversation-panel/conversation-panel-filter-menu.tsx
@@ -13,6 +13,7 @@ import {
MessageCircle,
MousePointerClick,
Star,
+ Tag,
Trash2,
} from "lucide-react";
import { I18nKey } from "#/i18n/declaration";
@@ -52,6 +53,8 @@ export interface ConversationPanelFilterMenuProps {
toggleShowRepoBranchMetadata: () => void;
showLlmProfiles: boolean;
toggleShowLlmProfiles: () => void;
+ showTagsMetadata: boolean;
+ toggleShowTagsMetadata: () => void;
showHoverMetadata: boolean;
toggleShowHoverMetadata: () => void;
totalConversationsCount: number;
@@ -75,6 +78,8 @@ export function ConversationPanelFilterMenu({
toggleShowRepoBranchMetadata,
showLlmProfiles,
toggleShowLlmProfiles,
+ showTagsMetadata,
+ toggleShowTagsMetadata,
showHoverMetadata,
toggleShowHoverMetadata,
totalConversationsCount,
@@ -266,6 +271,16 @@ export function ConversationPanelFilterMenu({
setFilterMenuOpen(false);
}}
/>
+ <MenuRow
+ icon={Tag}
+ label={t(I18nKey.CONVERSATION_PANEL$TAGS)}
+ selected={showTagsMetadata}
+ testId="toggle-tags-metadata"
+ onClick={() => {
+ toggleShowTagsMetadata();
+ setFilterMenuOpen(false);
+ }}
+ />
<MenuRow
icon={MousePointerClick}
label={t(I18nKey.CONVERSATION_PANEL$HOVER_METADATA)}
diff --git a/src/components/features/conversation-panel/conversation-panel.tsx b/src/components/features/conversation-panel/conversation-panel.tsx
index 638d8e3868..4b60340f75 100644
--- a/src/components/features/conversation-panel/conversation-panel.tsx
+++ b/src/components/features/conversation-panel/conversation-panel.tsx
@@ -122,6 +122,12 @@ export function ConversationPanel({
const toggleShowLlmProfiles = useConversationPanelPreferencesStore(
(state) => state.toggleShowLlmProfiles,
);
+ const showTagsMetadata = useConversationPanelPreferencesStore(
+ (state) => state.showTagsMetadata,
+ );
+ const toggleShowTagsMetadata = useConversationPanelPreferencesStore(
+ (state) => state.toggleShowTagsMetadata,
+ );
const showHoverMetadata = useConversationPanelPreferencesStore(
(state) => state.showHoverMetadata,
);
@@ -598,6 +604,8 @@ export function ConversationPanel({
showLlmProfiles={showLlmProfiles}
agentKind={conversation.agent_kind}
acpServer={conversation.acp_server}
+ tags={conversation.tags}
+ showTags={showTagsMetadata}
/>
);
}
@@ -676,6 +684,8 @@ export function ConversationPanel({
showLlmProfiles={showLlmProfiles}
agentKind={conversation.agent_kind}
acpServer={conversation.acp_server}
+ tags={conversation.tags}
+ showTags={showTagsMetadata}
isPinned={isPinned}
onTogglePin={() => togglePin(activeBackend.id, conversation.id)}
alwaysShowPinIcon={isPinned && !options?.inPinnedSection}
@@ -696,6 +706,7 @@ export function ConversationPanel({
pinnedIds,
showRepoBranchMetadata,
showLlmProfiles,
+ showTagsMetadata,
showHoverMetadata,
togglePin,
],
@@ -764,6 +775,8 @@ export function ConversationPanel({
toggleShowRepoBranchMetadata={toggleShowRepoBranchMetadata}
showLlmProfiles={showLlmProfiles}
toggleShowLlmProfiles={toggleShowLlmProfiles}
+ showTagsMetadata={showTagsMetadata}
+ toggleShowTagsMetadata={toggleShowTagsMetadata}
showHoverMetadata={showHoverMetadata}
toggleShowHoverMetadata={toggleShowHoverMetadata}
totalConversationsCount={conversations.length}
diff --git a/src/i18n/translation.json b/src/i18n/translation.json
index 1120335684..bb8292e573 100644
--- a/src/i18n/translation.json
+++ b/src/i18n/translation.json
@@ -17730,6 +17730,23 @@
"tr": "Depo ve dal",
"uk": "Репозиторій і гілка"
},
+ "CONVERSATION_PANEL$TAGS": {
+ "en": "Tags",
+ "ja": "タグ",
+ "zh-CN": "标签",
+ "zh-TW": "標籤",
+ "ko-KR": "태그",
+ "no": "Etiketter",
+ "ar": "الوسوم",
+ "de": "Tags",
+ "fr": "Étiquettes",
+ "it": "Tag",
+ "pt": "Etiquetas",
+ "es": "Etiquetas",
+ "ca": "Etiquetes",
+ "tr": "Etiketler",
+ "uk": "Теги"
+ },
"CONVERSATION_PANEL$HOVER_METADATA": {
"en": "Hover metadata",
"ja": "ホバーメタデータ",
diff --git a/src/stores/conversation-panel-preferences-store.ts b/src/stores/conversation-panel-preferences-store.ts
index d51977c447..f0adbded09 100644
--- a/src/stores/conversation-panel-preferences-store.ts
+++ b/src/stores/conversation-panel-preferences-store.ts
@@ -23,6 +23,7 @@ interface ConversationPanelPreferencesState {
showOlderConversations: boolean;
showRepoBranchMetadata: boolean;
showLlmProfiles: boolean;
+ showTagsMetadata: boolean;
showHoverMetadata: boolean;
organizeMode: OrganizeMode;
conversationSort: ConversationSortField;
@@ -37,6 +38,8 @@ interface ConversationPanelPreferencesActions {
toggleShowRepoBranchMetadata: () => void;
setShowLlmProfiles: (value: boolean) => void;
toggleShowLlmProfiles: () => void;
+ setShowTagsMetadata: (value: boolean) => void;
+ toggleShowTagsMetadata: () => void;
setShowHoverMetadata: (value: boolean) => void;
toggleShowHoverMetadata: () => void;
setOrganizeMode: (value: OrganizeMode) => void;
@@ -52,6 +55,7 @@ const initialState: ConversationPanelPreferencesState = {
showOlderConversations: true,
showRepoBranchMetadata: false,
showLlmProfiles: true,
+ showTagsMetadata: true,
showHoverMetadata: true,
organizeMode: "chronological",
conversationSort: "updated",
@@ -85,6 +89,13 @@ export const useConversationPanelPreferencesStore =
showLlmProfiles: !state.showLlmProfiles,
})),
+ setShowTagsMetadata: (value) =>
+ set(() => ({ showTagsMetadata: value })),
+ toggleShowTagsMetadata: () =>
+ set((state) => ({
+ showTagsMetadata: !state.showTagsMetadata,
+ })),
+
setShowHoverMetadata: (value) =>
set(() => ({ showHoverMetadata: value })),
toggleShowHoverMetadata: () =>
@@ -107,6 +118,7 @@ export const useConversationPanelPreferencesStore =
showOlderConversations: state.showOlderConversations,
showRepoBranchMetadata: state.showRepoBranchMetadata,
showLlmProfiles: state.showLlmProfiles,
+ showTagsMetadata: state.showTagsMetadata,
showHoverMetadata: state.showHoverMetadata,
organizeMode: state.organizeMode,
conversationSort: state.conversationSort,