Skip to content

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

Go

MUL-9004: fix(chat): remove customize-starters link from chat empty state (#10342)

Jiayuan Zhang0270a1d51ac3
diff --git a/apps/docs/content/docs/agents-create.fr.mdx b/apps/docs/content/docs/agents-create.fr.mdx
index 351a7be239..b40618dc36 100644
--- a/apps/docs/content/docs/agents-create.fr.mdx
+++ b/apps/docs/content/docs/agents-create.fr.mdx
@@ -78,7 +78,7 @@ Les skills conviennent aux méthodes et aux supports réutilisés par plusieurs
Ajoutez jusqu'à trois **amorces de conversation** pour montrer ce que cet agent sait bien faire avant que l'on envoie un premier message dans une discussion. Elles apparaissent au-dessus du champ de saisie lorsque quelqu'un ouvre une nouvelle discussion avec l'agent. Chaque amorce comporte un libellé court et un prompt complet. En choisir une remplit le champ de saisie pour que l'utilisateur puisse la relire ou la modifier ; elle ne lance jamais d'exécution automatiquement.
-À la création, elles sont une ligne facultative de la section **Identité**. Ensuite, elles se trouvent dans **Paramètres → Général**, avec l'avatar, le nom et la description, à côté d'un aperçu exact de ce que montrera une nouvelle discussion. Toute personne pouvant modifier l'agent voit aussi, dans cet état vide, un lien **Personnaliser les amorces** qui y mène directement.
+À la création, elles sont une ligne facultative de la section **Identité**. Ensuite, elles se trouvent dans **Paramètres → Général**, avec l'avatar, le nom et la description, à côté d'un aperçu exact de ce que montrera une nouvelle discussion.
Si vous laissez la liste vide, la Discussion affiche des amorces génériques par défaut, localisées. Des exemples propres à l'agent sont généralement plus utiles, car ils peuvent refléter le rôle et les limites définis dans les instructions.
diff --git a/apps/docs/content/docs/agents-create.ja.mdx b/apps/docs/content/docs/agents-create.ja.mdx
index 26c22b2f9b..75c55398f9 100644
--- a/apps/docs/content/docs/agents-create.ja.mdx
+++ b/apps/docs/content/docs/agents-create.ja.mdx
@@ -78,7 +78,7 @@ import { CreateAgentDemo } from "@/components/demos/create-agent-demo";
最初のチャットメッセージを送る前に、このエージェントが得意なことを伝える**会話の開始例**を3件まで追加できます。新しいチャットを開いたときに、入力欄の上へ表示されます。各候補には短いラベルと完全なプロンプトがあります。選ぶと送信せずに入力欄へ入り、ユーザーが確認・編集できます。
-作成時は**基本情報**の任意項目です。作成後は**設定 → 一般**で、アバター・名前・説明と並んで編集でき、隣に新しいチャットでの見え方をそのままプレビューできます。エージェントを編集できる人には、その空の状態に**開始例をカスタマイズ**のリンクが表示され、そこへ直接移動できます。
+作成時は**基本情報**の任意項目です。作成後は**設定 → 一般**で、アバター・名前・説明と並んで編集でき、隣に新しいチャットでの見え方をそのままプレビューできます。
空のままなら、チャットにはローカライズされた汎用の初期値が表示されます。エージェントの役割と境界に合わせた例のほうが通常は役立ちます。
diff --git a/apps/docs/content/docs/agents-create.ko.mdx b/apps/docs/content/docs/agents-create.ko.mdx
index d67a3648b3..c269e0c7b9 100644
--- a/apps/docs/content/docs/agents-create.ko.mdx
+++ b/apps/docs/content/docs/agents-create.ko.mdx
@@ -78,7 +78,7 @@ import { CreateAgentDemo } from "@/components/demos/create-agent-demo";
첫 채팅 메시지를 보내기 전에 이 에이전트가 잘하는 일을 보여 주는 **대화 시작 예시**를 최대 3개 추가할 수 있습니다. 새 채팅을 열면 입력창 위에 표시됩니다. 각 예시에는 짧은 라벨과 전체 프롬프트가 있습니다. 선택하면 전송하지 않고 입력창에 채워져 사용자가 먼저 확인하거나 수정할 수 있습니다.
-만들 때는 **기본 정보** 카드의 선택 항목입니다. 만든 뒤에는 **설정 → 일반**에서 아바타, 이름, 설명과 함께 편집하며, 옆에서 새 채팅에 표시될 실제 모습을 미리 볼 수 있습니다. 에이전트를 편집할 수 있는 사람에게는 그 빈 화면에 **시작 예시 편집** 링크가 표시되어 이 설정으로 바로 이동합니다.
+만들 때는 **기본 정보** 카드의 선택 항목입니다. 만든 뒤에는 **설정 → 일반**에서 아바타, 이름, 설명과 함께 편집하며, 옆에서 새 채팅에 표시될 실제 모습을 미리 볼 수 있습니다.
목록을 비워 두면 채팅에 현지화된 범용 기본값이 표시됩니다. 에이전트의 역할과 경계에 맞춘 예시가 보통 더 유용합니다.
diff --git a/apps/docs/content/docs/agents-create.mdx b/apps/docs/content/docs/agents-create.mdx
index cb7647985f..9e083f6653 100644
--- a/apps/docs/content/docs/agents-create.mdx
+++ b/apps/docs/content/docs/agents-create.mdx
@@ -78,7 +78,7 @@ Skills suit methods and material reused across agents; long-lived requirements t
Add up to three **conversation starters** to show people what this agent is good at before they send a first chat message. They appear when someone opens a new chat with the agent, above the composer. Each starter has a short label and a complete prompt. Selecting one fills the composer so the user can review or edit it; it never starts a run automatically.
-During creation they are an optional row under **Identity**. Afterwards they live in **Settings → General**, next to the avatar, name, and description, beside a preview of exactly what a new chat will show. Anyone who can edit the agent also gets a **Customize starters** link in that empty state that deep-links there.
+During creation they are an optional row under **Identity**. Afterwards they live in **Settings → General**, next to the avatar, name, and description, beside a preview of exactly what a new chat will show.
If you leave the list empty, Chat shows localized general-purpose defaults. Agent-specific examples are usually more useful because they can reflect the role and boundaries in the instructions.
diff --git a/apps/docs/content/docs/agents-create.zh-Hant.mdx b/apps/docs/content/docs/agents-create.zh-Hant.mdx
index b8decd0195..5914046105 100644
--- a/apps/docs/content/docs/agents-create.zh-Hant.mdx
+++ b/apps/docs/content/docs/agents-create.zh-Hant.mdx
@@ -78,7 +78,7 @@ Skill 適合儲存可以跨 AI 代理重複使用的方法和資料;只屬於
最多新增三條**對話開場建議**,讓使用者在傳送第一條訊息前瞭解這個 AI 代理擅長什麼。它們出現在別人與該 AI 代理開始新對話時,位於輸入框上方。每項包含一個簡短標題和一條完整提示詞。選擇後只會填入輸入框,使用者可以先檢查或修改,不會自動開始執行。
-建立時,它是**身份**卡片裡的一個可選項。建立之後,它在**設定 → 通用**裡,和頭像、名稱、描述放在一起,旁邊會預覽新對話的實際效果。有編輯權限的人還會在那個空狀態裡看到**自定義開場建議**入口,點選可直接跳到這裡。
+建立時,它是**身份**卡片裡的一個可選項。建立之後,它在**設定 → 通用**裡,和頭像、名稱、描述放在一起,旁邊會預覽新對話的實際效果。
留空時,對話頁會顯示本地化的通用預設值。針對 AI 代理職責和邊界編寫的示例通常更有幫助。
diff --git a/apps/docs/content/docs/agents-create.zh.mdx b/apps/docs/content/docs/agents-create.zh.mdx
index 8684279e9b..5208b57f0f 100644
--- a/apps/docs/content/docs/agents-create.zh.mdx
+++ b/apps/docs/content/docs/agents-create.zh.mdx
@@ -78,7 +78,7 @@ Skill 适合保存可以跨智能体复用的方法和资料;只属于这名
最多添加三条**对话开场建议**,让用户在发送第一条消息前了解这个智能体擅长什么。它们出现在别人与该智能体开始新对话时,位于输入框上方。每项包含一个简短标题和一条完整提示词。选择后只会填入输入框,用户可以先检查或修改,不会自动开始执行。
-创建时,它是**身份**卡片里的一个可选项。创建之后,它在**设置 → 通用**里,和头像、名称、描述放在一起,旁边会预览新对话的实际效果。有编辑权限的人还会在那个空状态里看到**自定义开场建议**入口,点击可直接跳到这里。
+创建时,它是**身份**卡片里的一个可选项。创建之后,它在**设置 → 通用**里,和头像、名称、描述放在一起,旁边会预览新对话的实际效果。
留空时,对话页会显示本地化的通用默认值。针对智能体职责和边界编写的示例通常更有帮助。
diff --git a/packages/core/agents/conversation-starters.test.ts b/packages/core/agents/conversation-starters.test.ts
index e2a5490628..ca7724b626 100644
--- a/packages/core/agents/conversation-starters.test.ts
+++ b/packages/core/agents/conversation-starters.test.ts
@@ -1,10 +1,7 @@
// @vitest-environment node
import { describe, expect, it } from "vitest";
-import {
- canCustomizeConversationStarters,
- selectConversationStarters,
-} from "./conversation-starters";
+import { selectConversationStarters } from "./conversation-starters";
const fallback = [
{ label: "Fallback one", prompt: "Fallback prompt one." },
@@ -45,37 +42,3 @@ describe("selectConversationStarters", () => {
).toEqual({ starters: fallback, isFallback: true });
});
});
-
-describe("canCustomizeConversationStarters", () => {
- const live = { archived_at: null };
- const allowed = { conversationStartersSupported: true, canEditAgent: true };
-
- it("offers the editor to someone who may edit a live agent", () => {
- expect(canCustomizeConversationStarters(live, allowed)).toBe(true);
- });
-
- it("stays silent for a reader", () => {
- expect(
- canCustomizeConversationStarters(live, { ...allowed, canEditAgent: false }),
- ).toBe(false);
- });
-
- it("stays silent on a backend that drops conversation starters", () => {
- expect(
- canCustomizeConversationStarters(live, {
- ...allowed,
- conversationStartersSupported: false,
- }),
- ).toBe(false);
- });
-
- it("stays silent for an archived agent, editor or not", () => {
- expect(
- canCustomizeConversationStarters({ archived_at: "2026-08-01T00:00:00Z" }, allowed),
- ).toBe(false);
- });
-
- it("stays silent while no agent is resolved", () => {
- expect(canCustomizeConversationStarters(null, allowed)).toBe(false);
- });
-});
diff --git a/packages/core/agents/conversation-starters.ts b/packages/core/agents/conversation-starters.ts
index 94dae30148..0e8260f0dc 100644
--- a/packages/core/agents/conversation-starters.ts
+++ b/packages/core/agents/conversation-starters.ts
@@ -1,4 +1,4 @@
-import type { Agent, AgentConversationStarter } from "../types";
+import type { AgentConversationStarter } from "../types";
/**
* Resolve what a new chat with this agent actually shows.
@@ -22,27 +22,3 @@ export function selectConversationStarters(
? { starters: complete, isFallback: false }
: { starters: fallback, isFallback: true };
}
-
-/**
- * Whether this viewer should be offered a way to edit the agent's conversation
- * starters from the chat empty state they render in.
- *
- * Three independent reasons to stay silent, each of which would otherwise
- * produce a link that lies:
- *
- * - no agent, or an archived one: its conversations are read-only, so
- * editing its starters changes nothing anyone will see,
- * - a backend that does not persist conversation starters: General settings
- * render no editor there, so the link lands somewhere that cannot honour
- * it,
- * - a viewer who cannot edit the agent: a reader would arrive at a page they
- * have no write access to.
- */
-export function canCustomizeConversationStarters(
- agent: Pick<Agent, "archived_at"> | null,
- opts: { conversationStartersSupported: boolean; canEditAgent: boolean },
-): boolean {
- if (!agent || agent.archived_at) return false;
- if (!opts.conversationStartersSupported) return false;
- return opts.canEditAgent;
-}
diff --git a/packages/core/agents/index.ts b/packages/core/agents/index.ts
index 1377511ccc..8b6aa666a0 100644
--- a/packages/core/agents/index.ts
+++ b/packages/core/agents/index.ts
@@ -13,7 +13,6 @@ export * from "./use-agent-activity";
export * from "./use-workspace-presence-prefetch";
export * from "./constants";
export * from "./conversation-starters";
-export * from "./use-customize-conversation-starters-href";
export * from "./visibility-label";
export * from "./use-workspace-agent-availability";
export * from "./mcp-support";
diff --git a/packages/core/agents/use-customize-conversation-starters-href.ts b/packages/core/agents/use-customize-conversation-starters-href.ts
deleted file mode 100644
index e0fc697520..0000000000
--- a/packages/core/agents/use-customize-conversation-starters-href.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-"use client";
-
-import type { Agent } from "../types";
-import { useConfigStore } from "../config";
-import { useWorkspacePaths } from "../paths";
-import { useAgentPermissions } from "../permissions";
-import { canCustomizeConversationStarters } from "./conversation-starters";
-
-/**
- * Where the "customize" affordance in a chat's empty state should point, or
- * `null` when this viewer should not see one at all.
- *
- * Both chat surfaces render that empty state from separate call sites, so the
- * wiring lives here and the rule itself in `canCustomizeConversationStarters`.
- */
-export function useCustomizeConversationStartersHref(
- agent: Agent | null,
- wsId: string,
-): string | null {
- const conversationStartersSupported = useConfigStore(
- (state) => state.agentConversationStartersSupported,
- );
- const paths = useWorkspacePaths();
- const { canEdit } = useAgentPermissions(agent, wsId);
-
- if (
- !agent ||
- !canCustomizeConversationStarters(agent, {
- conversationStartersSupported,
- canEditAgent: canEdit.allowed,
- })
- ) {
- return null;
- }
- return paths.agentConversationStarters(agent.id);
-}
diff --git a/packages/core/paths/paths.ts b/packages/core/paths/paths.ts
index 29911fd02a..c54560aa9c 100644
--- a/packages/core/paths/paths.ts
+++ b/packages/core/paths/paths.ts
@@ -67,9 +67,7 @@ function workspaceScoped(slug: string) {
newAgentAiSession: (sessionId: string) =>
`${ws}/agents/new/ai/${encode(sessionId)}`,
agentDetail: (id: string) => `${ws}/agents/${encode(id)}`,
- // Deep link behind "customize" in a chat's empty state: the agent's
- // General settings, scrolled to the conversation starters that produced
- // the buttons the viewer just looked at.
+ // The agent's General settings, scrolled to its conversation starters.
agentConversationStarters: (id: string) =>
`${ws}/agents/${encode(id)}?view=general&focus=${AGENT_FOCUS_CONVERSATION_STARTERS}`,
memberDetail: (id: string) => `${ws}/members/${encode(id)}`,
diff --git a/packages/views/agents/components/use-conversation-starters-focus.test.tsx b/packages/views/agents/components/use-conversation-starters-focus.test.tsx
index 0df56b3897..db930fdd0f 100644
--- a/packages/views/agents/components/use-conversation-starters-focus.test.tsx
+++ b/packages/views/agents/components/use-conversation-starters-focus.test.tsx
@@ -15,8 +15,7 @@ function Harness({ agentId }: { agentId: string }) {
return <div ref={ref} data-focused={focused ? "true" : "false"} />;
}
-// The "customize" link in a chat's empty state lands on General settings with
-// ?focus=. The page must bring the editor into view and then clear the param,
+// The conversation-starters deep link lands on General settings with ?focus=. The page must bring the editor into view and then clear the param,
// so a refresh or a later tab switch does not replay the flash.
describe("useConversationStartersFocus", () => {
// A fresh adapter object per render — what the web platform actually hands
diff --git a/packages/views/agents/components/use-conversation-starters-focus.ts b/packages/views/agents/components/use-conversation-starters-focus.ts
index eefdbb6e6e..41152d9df2 100644
--- a/packages/views/agents/components/use-conversation-starters-focus.ts
+++ b/packages/views/agents/components/use-conversation-starters-focus.ts
@@ -8,12 +8,12 @@ import { useOptionalNavigation } from "../../navigation";
export const CONVERSATION_STARTERS_FOCUS_FLASH_MS = 1600;
/**
- * Arriving from "customize" in a chat's empty state: bring the starter
+ * Arriving via the conversation-starters deep link: bring the starter
* prompts into view and flash them, so the deep link lands ON the setting
* rather than on a long page that happens to contain it. The param is
* consumed on arrival, so a refresh never replays an animation nobody asked
- * for — but every fresh click must land, including a second one from a chat
- * window still open beside this page, and one aimed at a different agent.
+ * for — but every fresh click must land, including a repeat while this page
+ * is already open, and one aimed at a different agent.
*
* Navigation is read optionally: the editors that host this are leaves that
* tests mount in isolation, and without an adapter there is nothing to focus.
diff --git a/packages/views/chat/chat-page.tsx b/packages/views/chat/chat-page.tsx
index 32e78b8be2..8e6001000d 100644
--- a/packages/views/chat/chat-page.tsx
+++ b/packages/views/chat/chat-page.tsx
@@ -363,7 +363,6 @@ export function ChatPage() {
agent={c.activeAgent}
hasSessions={c.sessions.length > 0}
onPickPrompt={c.sendConversationStarter}
- customizeHref={c.customizeConversationStartersHref}
/>
)}
diff --git a/packages/views/chat/components/chat-empty-state.test.tsx b/packages/views/chat/components/chat-empty-state.test.tsx
index 105bb1f9ea..2a6905ee27 100644
--- a/packages/views/chat/components/chat-empty-state.test.tsx
+++ b/packages/views/chat/components/chat-empty-state.test.tsx
@@ -32,7 +32,7 @@ const adapter = (): NavigationAdapter => ({
getShareableUrl: (path: string) => `https://app.test${path}`,
});
-function renderEmptyState(value: Agent, customizeHref: string | null = null) {
+function renderEmptyState(value: Agent) {
const onPickPrompt = vi.fn();
render(
<I18nProvider locale="en" resources={{ en: { chat: enChat } }}>
@@ -41,7 +41,6 @@ function renderEmptyState(value: Agent, customizeHref: string | null = null) {
agent={value}
hasSessions={false}
onPickPrompt={onPickPrompt}
- customizeHref={customizeHref}
/>
</NavigationProvider>
</I18nProvider>,
@@ -84,28 +83,3 @@ describe("chat empty-state conversation starters", () => {
);
});
});
-
-// Who may see "customize" is decided by the container (chat-window reads the
-// agent permission and the backend capability); this suite only proves the
-// empty state renders the affordance exactly when it is handed a target.
-describe("chat empty-state customize affordance", () => {
- afterEach(cleanup);
-
- const href = "/acme/agents/agent-1?view=general&focus=conversation_starters";
-
- it("links a viewer who may edit the agent to its conversation starters", () => {
- renderEmptyState(agent(), href);
-
- expect(
- screen.getByRole("link", { name: "Customize starters" }),
- ).toHaveAttribute("href", href);
- });
-
- it("stays out of the DOM for a viewer who may not edit the agent", () => {
- renderEmptyState(agent());
-
- expect(
- screen.queryByRole("link", { name: "Customize starters" }),
- ).toBeNull();
- });
-});
diff --git a/packages/views/chat/components/chat-empty-state.tsx b/packages/views/chat/components/chat-empty-state.tsx
index 79d0dc002a..d82bf74dd0 100644
--- a/packages/views/chat/components/chat-empty-state.tsx
+++ b/packages/views/chat/components/chat-empty-state.tsx
@@ -1,11 +1,9 @@
"use client";
-import { Settings2 } from "@multica/ui/icons";
import { selectConversationStarters } from "@multica/core/agents";
import type { Agent } from "@multica/core/types";
import { ActorAvatar } from "../../common/actor-avatar";
import { useT } from "../../i18n";
-import { AppLink } from "../../navigation";
import {
ConversationStarterList,
useFallbackConversationStarters,
@@ -16,19 +14,10 @@ export function EmptyState({
agent,
hasSessions = true,
onPickPrompt,
- customizeHref = null,
}: {
agent: Agent | null;
hasSessions?: boolean;
onPickPrompt: (prompt: string) => void;
- /**
- * Where "customize" sends this viewer, or `null` to hide the affordance.
- * The container resolves it: only someone who may edit THIS agent on a
- * backend that persists conversation starters gets a link. Keeping it a prop
- * leaves this component presentational — and keeps the link out of the DOM
- * entirely for readers, rather than rendering a disabled tease.
- */
- customizeHref?: string | null;
}) {
const { t } = useT("chat");
const description = agent?.description?.trim();
@@ -69,17 +58,6 @@ export function EmptyState({
aria-label={t(($) => $.conversation_starters.aria_label)}
>
<ConversationStarterList starters={starters} onPick={onPickPrompt} />
- {customizeHref ? (
- <div className="flex justify-center pt-1">
- <AppLink
- href={customizeHref}
- className="inline-flex items-center gap-1.5 text-caption text-muted-foreground transition-colors hover:text-foreground"
- >
- <Settings2 className="size-3.5" aria-hidden="true" />
- {t(($) => $.conversation_starters.customize)}
- </AppLink>
- </div>
- ) : null}
</div>
) : null}
</div>
diff --git a/packages/views/chat/components/chat-window.test.tsx b/packages/views/chat/components/chat-window.test.tsx
index e5dc9f7244..a473d5592f 100644
--- a/packages/views/chat/components/chat-window.test.tsx
+++ b/packages/views/chat/components/chat-window.test.tsx
@@ -40,7 +40,6 @@ vi.mock("@multica/core/hooks", async (importOriginal) => ({
vi.mock("@multica/core/agents", async (importOriginal) => ({
...(await importOriginal<typeof import("@multica/core/agents")>()),
useAgentPresenceDetail: () => "loading",
- useCustomizeConversationStartersHref: () => null,
useWorkspaceAgentAvailability: () => "loading",
}));
vi.mock("@multica/ui/hooks/use-mobile", () => ({
diff --git a/packages/views/chat/components/chat-window.tsx b/packages/views/chat/components/chat-window.tsx
index 341b1bbf9e..fe5eaf01cf 100644
--- a/packages/views/chat/components/chat-window.tsx
+++ b/packages/views/chat/components/chat-window.tsx
@@ -23,7 +23,6 @@ import { api, dispatchReasonCode } from "@multica/core/api";
import {
isAgentRuntimeBound,
useAgentPresenceDetail,
- useCustomizeConversationStartersHref,
useWorkspaceAgentAvailability,
} from "@multica/core/agents";
import { ActorAvatar } from "../../common/actor-avatar";
@@ -247,13 +246,6 @@ export function ChatWindow() {
const isAgentAccessRevoked =
!!activeAgent && !canAssignAgent(activeAgent, user?.id, memberRole);
- // "Customize" under the starter buttons — the only place the empty state
- // admits that those buttons are configuration at all.
- const customizeConversationStartersHref = useCustomizeConversationStartersHref(
- activeAgent,
- wsId,
- );
-
const projectContextSupport = useChatProjectContextSupport(wsId, activeAgent);
// Three-state availability — "loading" stays neutral (no banner, no
@@ -932,7 +924,6 @@ export function ChatWindow() {
agent={activeAgent}
hasSessions={sessions.length > 0}
onPickPrompt={sendConversationStarter}
- customizeHref={customizeConversationStartersHref}
/>
</ChatWindowMessages>
)}
diff --git a/packages/views/chat/components/use-chat-controller.test.tsx b/packages/views/chat/components/use-chat-controller.test.tsx
index ca42c4d3f7..b408070f36 100644
--- a/packages/views/chat/components/use-chat-controller.test.tsx
+++ b/packages/views/chat/components/use-chat-controller.test.tsx
@@ -129,7 +129,6 @@ vi.mock("@multica/core/agents", () => ({
isAgentRuntimeBound: (agent: { runtime_id: string; runtime_bound?: boolean }) =>
agent.runtime_bound !== false && agent.runtime_id.length > 0,
useAgentPresenceDetail: () => ({ availability: "online" }),
- useCustomizeConversationStartersHref: () => null,
useWorkspaceAgentAvailability: () => "available",
}));
vi.mock("@multica/core/hooks/use-file-upload", () => ({
diff --git a/packages/views/chat/components/use-chat-controller.ts b/packages/views/chat/components/use-chat-controller.ts
index d32d9f8deb..17245a640c 100644
--- a/packages/views/chat/components/use-chat-controller.ts
+++ b/packages/views/chat/components/use-chat-controller.ts
@@ -17,7 +17,6 @@ import { api, dispatchReasonCode } from "@multica/core/api";
import {
isAgentRuntimeBound as hasAgentRuntime,
useAgentPresenceDetail,
- useCustomizeConversationStartersHref,
useWorkspaceAgentAvailability,
} from "@multica/core/agents";
import {
@@ -374,14 +373,6 @@ export function useChatController(opts?: { isActive?: boolean }) {
const isAgentAccessRevoked =
!!activeAgent && !canAssignAgent(activeAgent, user?.id, memberRole);
- // "Customize" under the starter buttons in the empty state — the only place
- // that admits those buttons are configuration. Resolved here so the full
- // page and the floating window cannot disagree about who sees it.
- const customizeConversationStartersHref = useCustomizeConversationStartersHref(
- activeAgent,
- wsId,
- );
-
const agentAvailability = useWorkspaceAgentAvailability();
const noAgent = agentAvailability === "none";
@@ -851,7 +842,6 @@ export function useChatController(opts?: { isActive?: boolean }) {
isAgentAccessRevoked,
isAgentRuntimeBound,
activeAgent,
- customizeConversationStartersHref,
noAgent,
availability,
// messages
diff --git a/packages/views/chat/components/use-chat-controller.workspace.test.tsx b/packages/views/chat/components/use-chat-controller.workspace.test.tsx
index e8b1713862..5d3dab7171 100644
--- a/packages/views/chat/components/use-chat-controller.workspace.test.tsx
+++ b/packages/views/chat/components/use-chat-controller.workspace.test.tsx
@@ -23,7 +23,6 @@ vi.mock("@multica/core/auth", () => ({
vi.mock("@multica/core/agents", () => ({
isAgentRuntimeBound: () => false,
useAgentPresenceDetail: () => ({ availability: "online" }),
- useCustomizeConversationStartersHref: () => null,
useWorkspaceAgentAvailability: () => "available",
}));
vi.mock("../../common/use-app-foreground", () => ({
diff --git a/packages/views/locales/en/chat.json b/packages/views/locales/en/chat.json
index 0496a6d4f4..1dd711e4a8 100644
--- a/packages/views/locales/en/chat.json
+++ b/packages/views/locales/en/chat.json
@@ -174,7 +174,6 @@
"label": "Recommend an action",
"prompt": "Review what you know about my workspace and recommend a useful first action."
},
- "customize": "Customize starters",
"uploading": "Wait for uploads to finish before using a starter.",
"draft_in_progress": "Send or clear your draft before using a starter."
},
diff --git a/packages/views/locales/es/chat.json b/packages/views/locales/es/chat.json
index d2940748fa..3668aca1a3 100644
--- a/packages/views/locales/es/chat.json
+++ b/packages/views/locales/es/chat.json
@@ -174,7 +174,6 @@
"label": "Recomienda una acción",
"prompt": "Revisa lo que sabes de mi espacio de trabajo y recomiéndame una primera acción útil."
},
- "customize": "Personalizar inicios",
"uploading": "Espera a que terminen las subidas antes de usar una sugerencia.",
"draft_in_progress": "Envía o borra tu borrador antes de usar una sugerencia."
},
diff --git a/packages/views/locales/fr/chat.json b/packages/views/locales/fr/chat.json
index 43dc0fb7ca..8738d25b48 100644
--- a/packages/views/locales/fr/chat.json
+++ b/packages/views/locales/fr/chat.json
@@ -174,7 +174,6 @@
"label": "Recommander une action",
"prompt": "Examinez ce que vous savez de mon espace de travail et recommandez une première action utile."
},
- "customize": "Personnaliser les amorces",
"uploading": "Attendez la fin des téléversements avant d’utiliser une amorce.",
"draft_in_progress": "Envoyez ou effacez votre brouillon avant d’utiliser une amorce."
},
diff --git a/packages/views/locales/ja/chat.json b/packages/views/locales/ja/chat.json
index 04ce93bf5e..4f2e3e9967 100644
--- a/packages/views/locales/ja/chat.json
+++ b/packages/views/locales/ja/chat.json
@@ -170,7 +170,6 @@
"label": "アクションを提案",
"prompt": "私のワークスペースについて知っていることを踏まえ、最初に役立つアクションを提案してください。"
},
- "customize": "開始例をカスタマイズ",
"uploading": "アップロードが完了してから開始例を使用してください。",
"draft_in_progress": "開始例を使う前に、下書きを送信するか消去してください。"
},
diff --git a/packages/views/locales/ko/chat.json b/packages/views/locales/ko/chat.json
index b4827adb7d..7337f4df63 100644
--- a/packages/views/locales/ko/chat.json
+++ b/packages/views/locales/ko/chat.json
@@ -170,7 +170,6 @@
"label": "작업 추천",
"prompt": "내 워크스페이스에 대해 알고 있는 내용을 바탕으로 유용한 첫 작업을 추천해 주세요."
},
- "customize": "시작 예시 편집",
"uploading": "업로드가 완료된 후 대화 시작 예시를 사용해 주세요.",
"draft_in_progress": "대화 시작 예시를 사용하려면 먼저 초안을 보내거나 지워 주세요."
},
diff --git a/packages/views/locales/ru/chat.json b/packages/views/locales/ru/chat.json
index 800d47ad36..0b7b0a7715 100644
--- a/packages/views/locales/ru/chat.json
+++ b/packages/views/locales/ru/chat.json
@@ -182,7 +182,6 @@
"label": "Порекомендовать действие",
"prompt": "Изучи, что тебе известно о моём рабочем пространстве, и порекомендуй полезное первое действие."
},
- "customize": "Настроить варианты",
"uploading": "Дождитесь завершения загрузок, прежде чем выбирать стартовую фразу.",
"draft_in_progress": "Отправьте или очистите черновик, прежде чем выбирать стартовую фразу."
},
diff --git a/packages/views/locales/zh-Hans/chat.json b/packages/views/locales/zh-Hans/chat.json
index e38f5f70c0..5c18790d9d 100644
--- a/packages/views/locales/zh-Hans/chat.json
+++ b/packages/views/locales/zh-Hans/chat.json
@@ -170,7 +170,6 @@
"label": "推荐一个操作",
"prompt": "根据你对我的工作区的了解,推荐一个有用的初始操作。"
},
- "customize": "自定义开场建议",
"uploading": "请等待附件上传完成后再使用开场建议。",
"draft_in_progress": "请先发送或清空草稿,再使用开场建议。"
},
diff --git a/packages/views/locales/zh-Hant/chat.json b/packages/views/locales/zh-Hant/chat.json
index 7f0c5a759b..7b03ff2cfd 100644
--- a/packages/views/locales/zh-Hant/chat.json
+++ b/packages/views/locales/zh-Hant/chat.json
@@ -170,7 +170,6 @@
"label": "推薦一個操作",
"prompt": "根據你對我的工作區的瞭解,推薦一個有用的初始操作。"
},
- "customize": "自定義開場建議",
"uploading": "請等待附件上傳完成後再使用開場建議。",
"draft_in_progress": "請先傳送或清空草稿,再使用開場建議。"
},