Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-8489: feat(agents): make agent settings easy to reach (#9818)

Jiayuan Zhang3794359792e1
diff --git a/packages/views/agents/components/agent-advanced-settings.tsx b/packages/views/agents/components/agent-advanced-settings.tsx
index 6181120ee2..73ff9a9295 100644
--- a/packages/views/agents/components/agent-advanced-settings.tsx
+++ b/packages/views/agents/components/agent-advanced-settings.tsx
@@ -244,7 +244,7 @@ export function AgentAdvancedSettings({
>
<DialogContent className="flex h-[min(85dvh,52rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl">
<DialogHeader className="shrink-0 gap-1 border-b px-5 py-4 pr-12">
- <DialogTitle>{t(($) => $.detail.advanced_settings)}</DialogTitle>
+ <DialogTitle>{t(($) => $.detail.settings)}</DialogTitle>
<DialogDescription className="truncate">{agent.name}</DialogDescription>
</DialogHeader>
diff --git a/packages/views/agents/components/agent-detail-page.test.tsx b/packages/views/agents/components/agent-detail-page.test.tsx
index 3cec15c71d..26148fc368 100644
--- a/packages/views/agents/components/agent-detail-page.test.tsx
+++ b/packages/views/agents/components/agent-detail-page.test.tsx
@@ -28,10 +28,12 @@ vi.mock("./agent-properties-panel", () => ({
agent,
onUpdate,
onEditAccess,
+ onOpenSettings,
}: {
agent: Agent;
onUpdate: (id: string, data: Record<string, unknown>) => Promise<void>;
onEditAccess: () => void;
+ onOpenSettings: () => void;
}) => (
<div>
<span>model:{agent.model}</span>
@@ -44,6 +46,9 @@ vi.mock("./agent-properties-panel", () => ({
<button type="button" onClick={onEditAccess}>
edit access
</button>
+ <button type="button" onClick={onOpenSettings}>
+ all settings
+ </button>
</div>
),
}));
@@ -552,7 +557,7 @@ describe("AgentDetailPage layout", () => {
});
describe("AgentDetailPage deep links", () => {
- it("opens Advanced settings at the section named by ?view=", async () => {
+ it("opens Settings at the section named by ?view=", async () => {
renderPage("view=general&focus=conversation_starters");
expect(await screen.findByTestId("advanced-settings")).toHaveTextContent(
"advanced:general",
@@ -608,6 +613,15 @@ describe("AgentDetailPage deep links", () => {
);
});
+ it("opens Settings at General from the properties panel", async () => {
+ const { replace } = renderPage();
+ fireEvent.click(await screen.findByRole("button", { name: "all settings" }));
+ expect(screen.getByTestId("advanced-settings")).toHaveTextContent(
+ "advanced:general",
+ );
+ expect(replace).toHaveBeenLastCalledWith("/acme/agents/agent-1?view=general");
+ });
+
it("opens the work list from View all", async () => {
const { replace } = renderPage();
fireEvent.click(await screen.findByRole("button", { name: "view all work" }));
@@ -699,7 +713,7 @@ describe("AgentDetailPage DM button", () => {
});
describe("AgentDetailPage more actions", () => {
- it("keeps Advanced settings and copy actions but no Archive for a system agent", async () => {
+ it("keeps Settings and copy actions but no Archive for a system agent", async () => {
// An admin passes `canEditAgent`, so only the system key keeps Archive
// out of the menu.
agentsRef.current = [{ ...baseAgent, system_key: "mika" }];
@@ -709,7 +723,7 @@ describe("AgentDetailPage more actions", () => {
await screen.findByRole("button", { name: "Assign work" });
const menu = openMoreActions();
expect(
- within(menu).getByRole("menuitem", { name: "Advanced settings" }),
+ within(menu).getByRole("menuitem", { name: "Settings" }),
).toBeInTheDocument();
expect(
within(menu).getByRole("menuitem", { name: "Copy link" }),
@@ -733,17 +747,33 @@ describe("AgentDetailPage more actions", () => {
expect(push).toHaveBeenCalledWith("/acme/agents");
});
- it("opens Advanced settings at General", async () => {
+ it("opens Settings at General", async () => {
renderPage();
await screen.findByRole("button", { name: "Assign work" });
fireEvent.click(
- within(openMoreActions()).getByRole("menuitem", { name: "Advanced settings" }),
+ within(openMoreActions()).getByRole("menuitem", { name: "Settings" }),
);
expect(screen.getByTestId("advanced-settings")).toHaveTextContent(
"advanced:general",
);
});
+ it("opens Settings at General from the header button", async () => {
+ const { replace } = renderPage();
+ fireEvent.click(await screen.findByRole("button", { name: "Settings" }));
+ expect(screen.getByTestId("advanced-settings")).toHaveTextContent(
+ "advanced:general",
+ );
+ expect(replace).toHaveBeenLastCalledWith("/acme/agents/agent-1?view=general");
+ });
+
+ it("keeps the header Settings button on an archived agent", async () => {
+ agentsRef.current = [{ ...baseAgent, archived_at: "2026-06-01T00:00:00Z" }];
+ renderPage();
+ await screen.findByText(/This agent is archived/);
+ expect(screen.getByRole("button", { name: "Settings" })).toBeInTheDocument();
+ });
+
it("copies the shareable link and the agent ID", async () => {
renderPage();
await screen.findByRole("button", { name: "Assign work" });
diff --git a/packages/views/agents/components/agent-detail-page.tsx b/packages/views/agents/components/agent-detail-page.tsx
index 249661df1a..7a8608113d 100644
--- a/packages/views/agents/components/agent-detail-page.tsx
+++ b/packages/views/agents/components/agent-detail-page.tsx
@@ -486,6 +486,14 @@ export function AgentDetailPage({ agentId }: AgentDetailPageProps) {
<MessageSquare />
</IconButton>
)}
+ <IconButton
+ label={t(($) => $.detail.settings)}
+ tooltipSide="bottom"
+ className="text-muted-foreground"
+ onClick={() => openAdvanced("general")}
+ >
+ <Settings2 />
+ </IconButton>
{!isArchived && canAssign.allowed && (
<Button type="button" size="sm" onClick={handleAssign}>
<Plus />
@@ -507,7 +515,7 @@ export function AgentDetailPage({ agentId }: AgentDetailPageProps) {
<DropdownMenuContent align="end" className="w-auto min-w-48">
<DropdownMenuItem onClick={() => openAdvanced("general")}>
<Settings2 />
- {t(($) => $.detail.advanced_settings)}
+ {t(($) => $.detail.settings)}
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem
@@ -645,6 +653,7 @@ export function AgentDetailPage({ agentId }: AgentDetailPageProps) {
canEdit={canEdit.allowed}
onUpdate={handleUpdate}
onEditAccess={() => openAdvanced("access")}
+ onOpenSettings={() => openAdvanced("general")}
/>
}
>
diff --git a/packages/views/agents/components/agent-profile-card.test.tsx b/packages/views/agents/components/agent-profile-card.test.tsx
index da35aba89f..9b9cd0ec7b 100644
--- a/packages/views/agents/components/agent-profile-card.test.tsx
+++ b/packages/views/agents/components/agent-profile-card.test.tsx
@@ -193,3 +193,19 @@ describe("AgentProfileCard — Model row", () => {
expect(screen.queryByText("medium")).toBeNull();
});
});
+
+describe("AgentProfileCard — Settings", () => {
+ it("links to the agent's settings", () => {
+ renderCard();
+ expect(screen.getByRole("button", { name: "Settings" })).toHaveAttribute(
+ "href",
+ "/test/agents/agent-1?view=general",
+ );
+ });
+
+ it("offers no settings link for an archived agent", () => {
+ mockAgents.current = [makeAgent({ archived_at: "2026-06-01T00:00:00Z" })];
+ renderCard();
+ expect(screen.queryByRole("button", { name: "Settings" })).not.toBeInTheDocument();
+ });
+});
diff --git a/packages/views/agents/components/agent-profile-card.tsx b/packages/views/agents/components/agent-profile-card.tsx
index cb8d440e4b..3c53f5bbbd 100644
--- a/packages/views/agents/components/agent-profile-card.tsx
+++ b/packages/views/agents/components/agent-profile-card.tsx
@@ -14,6 +14,8 @@ import { resolvePublicFileUrl } from "@multica/core/workspace/avatar-url";
import { runtimeListOptions } from "@multica/core/runtimes/queries";
import { useWorkspacePaths } from "@multica/core/paths";
import { ActorAvatar as ActorAvatarBase } from "@multica/ui/components/common/actor-avatar";
+import { Settings2 } from "@multica/ui/icons";
+import { Button } from "@multica/ui/components/ui/button";
import { Skeleton } from "@multica/ui/components/ui/skeleton";
import { TruncatedTooltip } from "@multica/ui/components/common/truncated-tooltip";
import { AppLink } from "../../navigation";
@@ -129,6 +131,20 @@ export function AgentProfileCard({ agentId }: AgentProfileCardProps) {
)}
{owner && <MetaRow label={t(($) => $.profile_card.owner_label)} value={owner.name} />}
</div>
+
+ {!isArchived && (
+ <div className="border-t pt-3">
+ <Button
+ variant="outline"
+ size="xs"
+ render={<AppLink href={`${p.agentDetail(agent.id)}?view=general`} />}
+ nativeButton={false}
+ >
+ <Settings2 />
+ {t(($) => $.detail.settings)}
+ </Button>
+ </div>
+ )}
</div>
);
}
diff --git a/packages/views/agents/components/agent-properties-panel.test.tsx b/packages/views/agents/components/agent-properties-panel.test.tsx
index 3c1a2cc700..07ce185556 100644
--- a/packages/views/agents/components/agent-properties-panel.test.tsx
+++ b/packages/views/agents/components/agent-properties-panel.test.tsx
@@ -104,6 +104,7 @@ function renderPanel(
) {
const onUpdate = vi.fn(async () => {});
const onEditAccess = vi.fn();
+ const onOpenSettings = vi.fn();
renderWithI18n(
<QueryClientProvider
client={new QueryClient({ defaultOptions: { queries: { retry: false } } })}
@@ -119,10 +120,11 @@ function renderPanel(
canEdit={canEdit}
onUpdate={onUpdate}
onEditAccess={onEditAccess}
+ onOpenSettings={onOpenSettings}
/>
</QueryClientProvider>,
);
- return { onUpdate, onEditAccess };
+ return { onUpdate, onEditAccess, onOpenSettings };
}
function activityToday(total: number, completed: number, failed: number): AgentActivity {
@@ -224,6 +226,13 @@ describe("AgentPropertiesPanel", () => {
expect(onEditAccess).toHaveBeenCalledTimes(1);
});
+ it("opens the full settings from All settings", () => {
+ const { onOpenSettings } = renderPanel(claude);
+
+ fireEvent.click(screen.getByRole("button", { name: "All settings" }));
+ expect(onOpenSettings).toHaveBeenCalledTimes(1);
+ });
+
it("counts the last 7 days of runs with their success rate", () => {
activityRef.current = new Map([["agent-1", activityToday(4, 3, 1)]]);
renderPanel(claude);
diff --git a/packages/views/agents/components/agent-properties-panel.tsx b/packages/views/agents/components/agent-properties-panel.tsx
index efc2d95dff..1c14be518c 100644
--- a/packages/views/agents/components/agent-properties-panel.tsx
+++ b/packages/views/agents/components/agent-properties-panel.tsx
@@ -1,7 +1,8 @@
"use client";
import { useCallback, type ReactNode } from "react";
-import { Globe, Lock, Users } from "@multica/ui/icons";
+import { ChevronRight, Globe, Lock, Settings2, Users } from "@multica/ui/icons";
+import { Button } from "@multica/ui/components/ui/button";
import type {
Agent,
AgentRuntime,
@@ -48,6 +49,7 @@ export function AgentPropertiesPanel({
canEdit,
onUpdate,
onEditAccess,
+ onOpenSettings,
}: {
agent: Agent;
runtime: AgentRuntime | null;
@@ -60,6 +62,7 @@ export function AgentPropertiesPanel({
onUpdate: (id: string, data: Record<string, unknown>) => Promise<void>;
/** Opens the full access form; access is a draft-and-save choice. */
onEditAccess: () => void;
+ onOpenSettings: () => void;
}) {
const { t } = useT("agents");
const { t: tl } = useT("layout");
@@ -199,6 +202,19 @@ export function AgentPropertiesPanel({
</ObjectProperty>
</ObjectPanelSection>
+ <div className="border-t pt-3">
+ <Button
+ variant="ghost"
+ size="sm"
+ className="w-full justify-start gap-2 px-2"
+ onClick={onOpenSettings}
+ >
+ <Settings2 className="text-muted-foreground" />
+ {t(($) => $.panel.all_settings)}
+ <ChevronRight className="ml-auto text-faint-foreground" />
+ </Button>
+ </div>
+
<ObjectPanelSection
title={t(($) => $.tab_body.activity.section_last_30d)}
defaultOpen={false}
diff --git a/packages/views/agents/components/agent-row-actions.test.tsx b/packages/views/agents/components/agent-row-actions.test.tsx
new file mode 100644
index 0000000000..5096b951b7
--- /dev/null
+++ b/packages/views/agents/components/agent-row-actions.test.tsx
@@ -0,0 +1,52 @@
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import { fireEvent, screen } from "@testing-library/react";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import type { Agent } from "@multica/core/types";
+import { renderWithI18n } from "../../test/i18n";
+
+const mockIntentNavigate = vi.hoisted(() => vi.fn());
+
+vi.mock("@multica/core/hooks", () => ({ useWorkspaceId: () => "ws-1" }));
+vi.mock("@multica/core/paths", () => ({
+ useWorkspacePaths: () => ({ agentDetail: (id: string) => `/acme/agents/${id}` }),
+}));
+vi.mock("@multica/core/api", () => ({ api: {} }));
+vi.mock("../../navigation", () => ({
+ AppLink: ({ href, children }: { href: string; children: React.ReactNode }) => (
+ <a href={href}>{children}</a>
+ ),
+ useIntentNavigate: () => mockIntentNavigate,
+}));
+
+import { AgentRowActions } from "./agent-row-actions";
+
+const agent = { id: "agent-1", name: "Lambda", archived_at: null } as Agent;
+
+function openMenu() {
+ renderWithI18n(
+ <QueryClientProvider client={new QueryClient()}>
+ <AgentRowActions
+ agent={agent}
+ presence={null}
+ canManage={false}
+ duplicateHref="/acme/agents/new?duplicate=agent-1"
+ />
+ </QueryClientProvider>,
+ );
+ fireEvent.click(screen.getByRole("button", { name: "Row actions" }));
+}
+
+beforeEach(() => {
+ vi.clearAllMocks();
+});
+
+describe("AgentRowActions", () => {
+ it("opens the agent's settings in place", () => {
+ openMenu();
+ fireEvent.click(screen.getByRole("menuitem", { name: "Settings" }));
+ expect(mockIntentNavigate).toHaveBeenCalledWith(
+ "/acme/agents/agent-1?view=general",
+ "push",
+ );
+ });
+});
diff --git a/packages/views/agents/components/agent-row-actions.tsx b/packages/views/agents/components/agent-row-actions.tsx
index 6eac1580bd..3d9293f9de 100644
--- a/packages/views/agents/components/agent-row-actions.tsx
+++ b/packages/views/agents/components/agent-row-actions.tsx
@@ -6,6 +6,7 @@ import {
Copy,
ExternalLink,
RotateCcw,
+ Settings2,
Square,
Trash2,
} from "@multica/ui/icons";
@@ -146,6 +147,14 @@ export function AgentRowActions({
{tCommon(($) => $.navigation.open_in_new_tab)}
</DropdownMenuItem>
<DropdownMenuSeparator />
+ <DropdownMenuItem
+ onClick={() =>
+ intentNavigate(`${paths.agentDetail(agent.id)}?view=general`, "push")
+ }
+ >
+ <Settings2 className="h-3.5 w-3.5" />
+ {t(($) => $.detail.settings)}
+ </DropdownMenuItem>
{showStop && (
<DropdownMenuItem
onClick={() => setConfirmCancel(true)}
diff --git a/packages/views/chat/components/chat-session-header.test.tsx b/packages/views/chat/components/chat-session-header.test.tsx
index bc74881411..4e9b4d094a 100644
--- a/packages/views/chat/components/chat-session-header.test.tsx
+++ b/packages/views/chat/components/chat-session-header.test.tsx
@@ -3,8 +3,10 @@ import { act, fireEvent, render, screen, waitFor, within } from "@testing-librar
import { I18nProvider } from "@multica/core/i18n/react";
import type { Agent, ChatSession } from "@multica/core/types";
import enChat from "../../locales/en/chat.json";
+import enCommon from "../../locales/en/common.json";
const updateMutate = vi.hoisted(() => vi.fn());
+const pushMock = vi.hoisted(() => vi.fn());
vi.mock("@multica/core/paths", () => ({
useWorkspacePaths: () => ({ agentDetail: (id: string) => `/agents/${id}` }),
@@ -29,11 +31,12 @@ vi.mock("../../navigation", () => ({
AppLink: ({ children, href }: { children: React.ReactNode; href: string }) => (
<a href={href}>{children}</a>
),
+ useNavigation: () => ({ push: pushMock }),
}));
import { ChatSessionHeader } from "./chat-session-header";
-const TEST_RESOURCES = { en: { chat: enChat } };
+const TEST_RESOURCES = { en: { chat: enChat, common: enCommon } };
const RENAME_LABEL = enChat.header.rename;
const OUTSIDE_LABEL = "Outside control";
@@ -71,6 +74,33 @@ describe("ChatSessionHeader breadcrumb", () => {
).toBeTruthy();
});
+ it("opens the agent's settings from the ⋯ menu", () => {
+ const agent = { id: "agent-1", name: "Lambda" } as Agent;
+ render(
+ <I18nProvider locale="en" resources={TEST_RESOURCES}>
+ <ChatSessionHeader session={session} agent={agent} />
+ </I18nProvider>,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "More actions" }));
+ fireEvent.click(screen.getByRole("menuitem", { name: "Agent settings" }));
+ expect(pushMock).toHaveBeenCalledWith("/agents/agent-1?view=general");
+ });
+
+ it("offers no agent settings when the chat's agent is unavailable", () => {
+ render(
+ <I18nProvider locale="en" resources={TEST_RESOURCES}>
+ <ChatSessionHeader session={session} agent={null} />
+ </I18nProvider>,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "More actions" }));
+ expect(screen.getByRole("menuitem", { name: "Rename chat" })).toBeInTheDocument();
+ expect(
+ screen.queryByRole("menuitem", { name: "Agent settings" }),
+ ).not.toBeInTheDocument();
+ });
+
it("shows only the title when the chat's agent is unavailable", () => {
render(
<I18nProvider locale="en" resources={TEST_RESOURCES}>
diff --git a/packages/views/chat/components/chat-session-header.tsx b/packages/views/chat/components/chat-session-header.tsx
index 10afcd3585..a766c9ea93 100644
--- a/packages/views/chat/components/chat-session-header.tsx
+++ b/packages/views/chat/components/chat-session-header.tsx
@@ -1,7 +1,7 @@
"use client";
import { useEffect, useRef, useState, type ReactNode } from "react";
-import { Archive, ArchiveRestore, MoreHorizontal, Pencil, Trash2 } from "@multica/ui/icons";
+import { Archive, ArchiveRestore, MoreHorizontal, Pencil, Settings2, Trash2 } from "@multica/ui/icons";
import { IconButton } from "@multica/ui/components/common/icon-button";
import {
DropdownMenu,
@@ -31,6 +31,7 @@ import type { Agent, ChatSession } from "@multica/core/types";
import { isImeComposing } from "@multica/core/utils";
import { ActorAvatar } from "../../common/actor-avatar";
import { BreadcrumbHeader } from "../../layout/breadcrumb-header";
+import { useNavigation } from "../../navigation";
import { useT } from "../../i18n";
import { TooltipHint } from "@multica/ui/components/common/tooltip-hint";
@@ -60,6 +61,7 @@ export function ChatSessionHeader({
const { t } = useT("chat");
const { t: tCommon } = useT("common");
const wsPaths = useWorkspacePaths();
+ const { push } = useNavigation();
const updateSession = useUpdateChatSession();
const deleteSession = useDeleteChatSession();
const setArchived = useSetChatSessionArchived();
@@ -244,6 +246,14 @@ export function ChatSessionHeader({
<Pencil className="h-4 w-4" />
{t(($) => $.header.rename)}
</DropdownMenuItem>
+ {agent && (
+ <DropdownMenuItem
+ onClick={() => push(`${wsPaths.agentDetail(agent.id)}?view=general`)}
+ >
+ <Settings2 className="h-4 w-4" />
+ {t(($) => $.header.agent_settings)}
+ </DropdownMenuItem>
+ )}
<DropdownMenuSeparator />
{isArchived ? (
<>
diff --git a/packages/views/locales/en/agents.json b/packages/views/locales/en/agents.json
index 56faa0fc08..cecd93ccd5 100644
--- a/packages/views/locales/en/agents.json
+++ b/packages/views/locales/en/agents.json
@@ -167,7 +167,7 @@
"runtime_required_toast": "Bind a runtime before running this agent.",
"assign_work": "Assign work",
"more_actions_aria": "Agent actions",
- "advanced_settings": "Advanced settings",
+ "settings": "Settings",
"copy_link": "Copy link",
"copy_id": "Copy agent ID",
"link_copied_toast": "Link copied",
@@ -225,7 +225,8 @@
"panel": {
"status": "Status",
"runs_7d": "Runs (7d)",
- "edit_access_aria": "Access: {{value}}. Change access"
+ "edit_access_aria": "Access: {{value}}. Change access",
+ "all_settings": "All settings"
},
"skill_attach": {
"trigger_aria": "Attach a workspace skill",
diff --git a/packages/views/locales/en/chat.json b/packages/views/locales/en/chat.json
index fa2f99cd2e..cdad1e8dd8 100644
--- a/packages/views/locales/en/chat.json
+++ b/packages/views/locales/en/chat.json
@@ -247,6 +247,7 @@
"row_actions_aria": "Chat actions"
},
"header": {
+ "agent_settings": "Agent settings",
"rename": "Rename chat",
"archive": "Archive chat",
"unarchive": "Unarchive chat",
diff --git a/packages/views/locales/en/search.json b/packages/views/locales/en/search.json
index b705eee98e..d51554b239 100644
--- a/packages/views/locales/en/search.json
+++ b/packages/views/locales/en/search.json
@@ -77,7 +77,8 @@
"assign_issue": "Assign an issue to {{name}}...",
"new_issue": "New issue for {{name}}",
"pin_in_chat": "Pin in chat",
- "unpin_in_chat": "Unpin from chat"
+ "unpin_in_chat": "Unpin from chat",
+ "settings": "Open agent settings"
},
"autopilot": {
"run_now": "Run once now",
diff --git a/packages/views/locales/fr/agents.json b/packages/views/locales/fr/agents.json
index 69fdb8e12c..14ea413c20 100644
--- a/packages/views/locales/fr/agents.json
+++ b/packages/views/locales/fr/agents.json
@@ -167,7 +167,7 @@
"runtime_required_toast": "Associez un runtime avant d'exécuter cet agent.",
"assign_work": "Assigner du travail",
"more_actions_aria": "Actions de l'agent",
- "advanced_settings": "Paramètres avancés",
+ "settings": "Paramètres",
"copy_link": "Copier le lien",
"copy_id": "Copier l'ID de l'agent",
"link_copied_toast": "Lien copié",
@@ -225,7 +225,8 @@
"panel": {
"status": "Statut",
"runs_7d": "Exécutions (7 j)",
- "edit_access_aria": "Accès : {{value}}. Modifier l'accès"
+ "edit_access_aria": "Accès : {{value}}. Modifier l'accès",
+ "all_settings": "Tous les paramètres"
},
"skill_attach": {
"trigger_aria": "Rattacher un skill de l'espace de travail",
diff --git a/packages/views/locales/fr/chat.json b/packages/views/locales/fr/chat.json
index ff9944c635..48a12550c2 100644
--- a/packages/views/locales/fr/chat.json
+++ b/packages/views/locales/fr/chat.json
@@ -247,6 +247,7 @@
"row_actions_aria": "Actions de discussion"
},
"header": {
+ "agent_settings": "Paramètres de l'agent",
"rename": "Renommer la discussion",
"archive": "Archiver la discussion",
"unarchive": "Désarchiver la discussion",
diff --git a/packages/views/locales/fr/search.json b/packages/views/locales/fr/search.json
index 55bcccfae7..bcd1681cbf 100644
--- a/packages/views/locales/fr/search.json
+++ b/packages/views/locales/fr/search.json
@@ -77,7 +77,8 @@
"assign_issue": "Assigner une tâche à {{name}}...",
"new_issue": "Nouvelle tâche pour {{name}}",
"pin_in_chat": "Épingler dans la discussion",
- "unpin_in_chat": "Désépingler de la discussion"
+ "unpin_in_chat": "Désépingler de la discussion",
+ "settings": "Ouvrir les paramètres de l'agent"
},
"autopilot": {
"run_now": "Exécuter une fois maintenant",
diff --git a/packages/views/locales/ja/agents.json b/packages/views/locales/ja/agents.json
index 9d908ef3d8..1c7597d631 100644
--- a/packages/views/locales/ja/agents.json
+++ b/packages/views/locales/ja/agents.json
@@ -150,7 +150,7 @@
"runtime_required_toast": "このエージェントを実行する前にランタイムを設定してください。",
"assign_work": "作業を割り当てる",
"more_actions_aria": "エージェントの操作",
- "advanced_settings": "詳細設定",
+ "settings": "設定",
"copy_link": "リンクをコピー",
"copy_id": "エージェント ID をコピー",
"link_copied_toast": "リンクをコピーしました",
@@ -205,7 +205,8 @@
"panel": {
"status": "ステータス",
"runs_7d": "実行 (7日)",
- "edit_access_aria": "アクセス: {{value}}。アクセスを変更"
+ "edit_access_aria": "アクセス: {{value}}。アクセスを変更",
+ "all_settings": "すべての設定"
},
"skill_attach": {
"trigger_aria": "ワークスペースのスキルを追加",
diff --git a/packages/views/locales/ja/chat.json b/packages/views/locales/ja/chat.json
index d284a588a7..28be394d5f 100644
--- a/packages/views/locales/ja/chat.json
+++ b/packages/views/locales/ja/chat.json
@@ -243,6 +243,7 @@
"row_actions_aria": "チャットの操作"
},
"header": {
+ "agent_settings": "エージェント設定",
"rename": "名前を変更",
"delete": "チャットを削除",
"archive": "チャットをアーカイブ",
diff --git a/packages/views/locales/ja/search.json b/packages/views/locales/ja/search.json
index bb61bf2ff2..6f3dd3e54b 100644
--- a/packages/views/locales/ja/search.json
+++ b/packages/views/locales/ja/search.json
@@ -74,7 +74,8 @@
"assign_issue": "タスクを {{name}} に割り当て...",
"new_issue": "{{name}} 用の新規タスク",
"pin_in_chat": "チャットにピン留め",
- "unpin_in_chat": "チャットのピン留めを解除"
+ "unpin_in_chat": "チャットのピン留めを解除",
+ "settings": "エージェント設定を開く"
},
"autopilot": {
"run_now": "今すぐ 1 回実行",
diff --git a/packages/views/locales/ko/agents.json b/packages/views/locales/ko/agents.json
index 2c9078374f..c5e7703d5f 100644
--- a/packages/views/locales/ko/agents.json
+++ b/packages/views/locales/ko/agents.json
@@ -158,7 +158,7 @@
"runtime_required_toast": "이 에이전트를 실행하기 전에 런타임을 연결하세요.",
"assign_work": "작업 할당",
"more_actions_aria": "에이전트 작업",
- "advanced_settings": "고급 설정",
+ "settings": "설정",
"copy_link": "링크 복사",
"copy_id": "에이전트 ID 복사",
"link_copied_toast": "링크를 복사했습니다",
@@ -213,7 +213,8 @@
"panel": {
"status": "상태",
"runs_7d": "실행 (7일)",
- "edit_access_aria": "접근 권한: {{value}}. 접근 권한 변경"
+ "edit_access_aria": "접근 권한: {{value}}. 접근 권한 변경",
+ "all_settings": "모든 설정"
},
"skill_attach": {
"trigger_aria": "워크스페이스 스킬 연결",
diff --git a/packages/views/locales/ko/chat.json b/packages/views/locales/ko/chat.json
index c7574e8007..90ac79eba9 100644
--- a/packages/views/locales/ko/chat.json
+++ b/packages/views/locales/ko/chat.json
@@ -243,6 +243,7 @@
"row_actions_aria": "채팅 작업"
},
"header": {
+ "agent_settings": "에이전트 설정",
"rename": "이름 변경",
"delete": "채팅 삭제",
"archive": "채팅 보관",
diff --git a/packages/views/locales/ko/search.json b/packages/views/locales/ko/search.json
index 2e57a9adec..6a9096ff3e 100644
--- a/packages/views/locales/ko/search.json
+++ b/packages/views/locales/ko/search.json
@@ -74,7 +74,8 @@
"assign_issue": "{{name}}에게 태스크 지정...",
"new_issue": "{{name}}에게 새 태스크",
"pin_in_chat": "채팅에 고정",
- "unpin_in_chat": "채팅 고정 해제"
+ "unpin_in_chat": "채팅 고정 해제",
+ "settings": "에이전트 설정 열기"
},
"autopilot": {
"run_now": "지금 한 번 실행",
diff --git a/packages/views/locales/zh-Hans/agents.json b/packages/views/locales/zh-Hans/agents.json
index 6191234887..4de01d6df6 100644
--- a/packages/views/locales/zh-Hans/agents.json
+++ b/packages/views/locales/zh-Hans/agents.json
@@ -158,7 +158,7 @@
"runtime_required_toast": "请先绑定运行时,再运行该智能体。",
"assign_work": "分配工作",
"more_actions_aria": "智能体操作",
- "advanced_settings": "高级设置",
+ "settings": "设置",
"copy_link": "复制链接",
"copy_id": "复制智能体 ID",
"link_copied_toast": "链接已复制",
@@ -213,7 +213,8 @@
"panel": {
"status": "状态",
"runs_7d": "运行(7 天)",
- "edit_access_aria": "访问权限:{{value}}。更改访问权限"
+ "edit_access_aria": "访问权限:{{value}}。更改访问权限",
+ "all_settings": "全部设置"
},
"skill_attach": {
"trigger_aria": "附加工作区 skill",
diff --git a/packages/views/locales/zh-Hans/chat.json b/packages/views/locales/zh-Hans/chat.json
index 224cf0c9d6..be4e56ef0e 100644
--- a/packages/views/locales/zh-Hans/chat.json
+++ b/packages/views/locales/zh-Hans/chat.json
@@ -243,6 +243,7 @@
"row_actions_aria": "聊天操作"
},
"header": {
+ "agent_settings": "智能体设置",
"rename": "重命名会话",
"delete": "删除会话",
"archive": "归档会话",
diff --git a/packages/views/locales/zh-Hans/search.json b/packages/views/locales/zh-Hans/search.json
index 8d68f658d0..2a4d7409ff 100644
--- a/packages/views/locales/zh-Hans/search.json
+++ b/packages/views/locales/zh-Hans/search.json
@@ -74,7 +74,8 @@
"assign_issue": "把任务指派给 {{name}}...",
"new_issue": "新建任务给 {{name}}",
"pin_in_chat": "在聊天里固定",
- "unpin_in_chat": "从聊天里取消固定"
+ "unpin_in_chat": "从聊天里取消固定",
+ "settings": "打开智能体设置"
},
"autopilot": {
"run_now": "立即运行一次",
diff --git a/packages/views/locales/zh-Hant/agents.json b/packages/views/locales/zh-Hant/agents.json
index 708d62b0ea..92a087574f 100644
--- a/packages/views/locales/zh-Hant/agents.json
+++ b/packages/views/locales/zh-Hant/agents.json
@@ -158,7 +158,7 @@
"runtime_required_toast": "請先繫結執行時,再執行該 AI 代理。",
"assign_work": "分配工作",
"more_actions_aria": "AI 代理操作",
- "advanced_settings": "進階設定",
+ "settings": "設定",
"copy_link": "複製連結",
"copy_id": "複製 AI 代理 ID",
"link_copied_toast": "連結已複製",
@@ -213,7 +213,8 @@
"panel": {
"status": "狀態",
"runs_7d": "執行(7 天)",
- "edit_access_aria": "訪問權限:{{value}}。變更訪問權限"
+ "edit_access_aria": "訪問權限:{{value}}。變更訪問權限",
+ "all_settings": "全部設定"
},
"skill_attach": {
"trigger_aria": "附加工作區 skill",
diff --git a/packages/views/locales/zh-Hant/chat.json b/packages/views/locales/zh-Hant/chat.json
index d964c2932a..c4e095fa07 100644
--- a/packages/views/locales/zh-Hant/chat.json
+++ b/packages/views/locales/zh-Hant/chat.json
@@ -243,6 +243,7 @@
"row_actions_aria": "聊天操作"
},
"header": {
+ "agent_settings": "AI 代理設定",
"rename": "重新命名會話",
"delete": "刪除會話",
"archive": "歸檔會話",
diff --git a/packages/views/locales/zh-Hant/search.json b/packages/views/locales/zh-Hant/search.json
index 3371a3b810..0ce56baa04 100644
--- a/packages/views/locales/zh-Hant/search.json
+++ b/packages/views/locales/zh-Hant/search.json
@@ -74,7 +74,8 @@
"assign_issue": "把任務指派給 {{name}}...",
"new_issue": "新建任務給 {{name}}",
"pin_in_chat": "在聊天裡固定",
- "unpin_in_chat": "從聊天裡取消固定"
+ "unpin_in_chat": "從聊天裡取消固定",
+ "settings": "開啟 AI 代理設定"
},
"autopilot": {
"run_now": "立即執行一次",
diff --git a/packages/views/search/commands/context-commands.tsx b/packages/views/search/commands/context-commands.tsx
index d7ae2544bd..1c70e811a3 100644
--- a/packages/views/search/commands/context-commands.tsx
+++ b/packages/views/search/commands/context-commands.tsx
@@ -14,6 +14,7 @@ import {
Pin,
PinOff,
Play,
+ Settings2,
SquarePen,
UserPlus,
} from "@multica/ui/icons";
@@ -179,6 +180,14 @@ export function useAgentCommandGroup(context: ContextOf<"agent"> | null): Palett
else pinAgent.mutate(agent.id);
},
},
+ {
+ id: "agent-settings",
+ label: t(($) => $.agent.settings),
+ icon: Settings2,
+ keywords: ["settings", "configure", "model", "runtime", "设置", "配置"],
+ run: () => navigation.push(`${p.agentDetail(agent.id)}?view=general`),
+ primary: true,
+ },
];
return {
id: "context-agent",
diff --git a/packages/views/search/search-command.test.tsx b/packages/views/search/search-command.test.tsx
index 0d3869d356..eb902e0411 100644
--- a/packages/views/search/search-command.test.tsx
+++ b/packages/views/search/search-command.test.tsx
@@ -727,6 +727,23 @@ describe("SearchCommand", () => {
});
});
+ describe("current agent", () => {
+ it("opens the agent's settings when 'settings' is typed", async () => {
+ const user = userEvent.setup();
+ const agent = makeAgent("agent-lambda", "Lambda");
+ seed(agentListOptions("ws-test"), [agent]);
+ registerContext({ kind: "agent", agent } as CommandBarContext);
+ renderSearch();
+ await user.type(input(), "settings");
+
+ await waitFor(() =>
+ expect(renderedValues()).toContain("command:context-agent:agent-settings"),
+ );
+ await user.click(await rowText("Open agent settings"));
+ expect(mockPush).toHaveBeenCalledWith("/ws-test/agents/agent-lambda?view=general");
+ });
+ });
+
describe("current issue", () => {
const issue = makeIssue({ id: "issue-1", identifier: "MUL-42", title: "Safari login loop" });