Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
refactor(agents): rename starter_prompts to conversation_starters (MUL-6709) (#7592)
Bohan Jiang09a2410e882b
diff --git a/apps/mobile/components/chat/chat-empty-state.tsx b/apps/mobile/components/chat/chat-empty-state.tsxindex 41f986b5ed..9a5e158657 100644--- a/apps/mobile/components/chat/chat-empty-state.tsx+++ b/apps/mobile/components/chat/chat-empty-state.tsx@@ -5,9 +5,9 @@* `EmptyState`):** - first-time (the workspace has never started a chat) → educate and- * offer starter prompts so the composer is not a blank dead end.+ * offer conversation starters so the composer is not a blank dead end.* - returning (at least one prior session exists) → lead with starter- * prompts. Tapping prefills the draft so the user can edit before sending.+ * starters. Tapping prefills the draft so the user can edit before sending.** Copy mirrors the web `chat.json` namespace 1:1. Mobile doesn't have* i18n yet so the strings are inlined in English — when mobile adopts@@ -16,11 +16,11 @@* key-by-key swap.*/import { View } from "react-native";-import type { Agent, AgentStarterPrompt } from "@multica/core/types";+import type { Agent, AgentConversationStarter } from "@multica/core/types";import { Text } from "@/components/ui/text";import { Button } from "@/components/ui/button";-const FALLBACK_STARTER_PROMPTS: AgentStarterPrompt[] = [+const FALLBACK_CONVERSATION_STARTERS: AgentConversationStarter[] = [{label: "What can you help with?",prompt: "What are you best at helping with? Give me a concise overview.",@@ -44,10 +44,10 @@ interface Props {export function ChatEmptyState({ hasSessions, agent, onPickPrompt }: Props) {const title = agent ? `Hi, I'm ${agent.name}` : "Chat with your agents";- const configured = (agent?.starter_prompts ?? []).filter(+ const configured = (agent?.conversation_starters ?? []).filter((item) => item.label.trim() && item.prompt.trim(),);- const prompts = configured.length > 0 ? configured : FALLBACK_STARTER_PROMPTS;+ const starters = configured.length > 0 ? configured : FALLBACK_CONVERSATION_STARTERS;return (<View className="flex-1 items-center justify-center px-6 py-8 gap-5"><View className="items-center gap-1">@@ -67,7 +67,7 @@ export function ChatEmptyState({ hasSessions, agent, onPickPrompt }: Props) {</View>{agent ? (<View className="w-full max-w-xs gap-2">- {prompts.map((item, index) => (+ {starters.map((item, index) => (<Buttonkey={index}variant="outline"diff --git a/apps/mobile/components/chat/chat-message-list.tsx b/apps/mobile/components/chat/chat-message-list.tsxindex c7836435e2..c347ff0fef 100644--- a/apps/mobile/components/chat/chat-message-list.tsx+++ b/apps/mobile/components/chat/chat-message-list.tsx@@ -82,7 +82,7 @@ interface Props {hasSessions: boolean;/** Currently picked / inherited agent. */agent: Agent | null;- /** Receive a starter-prompt tap. Caller writes into the draft store+ /** Receive a conversation-starter tap. Caller writes into the draft store* (or focuses the composer with the text) — empty state stays neutral* about send vs. preview. */onPickPrompt: (text: string) => void;diff --git a/apps/mobile/data/schemas.ts b/apps/mobile/data/schemas.tsindex d5985cf7e6..679f634143 100644--- a/apps/mobile/data/schemas.ts+++ b/apps/mobile/data/schemas.ts@@ -611,7 +611,7 @@ export const AgentSchema: z.ZodType<Agent> = z.object({name: z.string().default(""),description: z.string().default(""),instructions: z.string().default(""),- starter_prompts: z+ conversation_starters: z.array(z.object({diff --git a/apps/mobile/lib/agent-schema.test.ts b/apps/mobile/lib/agent-schema.test.tsindex 77943200ac..f200a89404 100644--- a/apps/mobile/lib/agent-schema.test.ts+++ b/apps/mobile/lib/agent-schema.test.ts@@ -50,21 +50,21 @@ describe("AgentSchema invocation permissions", () => {expect(parsed.runtime_bound).toBe(false);});- it("parses starter prompts and degrades malformed additive data", () => {+ it("parses conversation starters and degrades malformed additive data", () => {expect(AgentSchema.parse({id: "agent-1",- starter_prompts: [+ conversation_starters: [{ label: "Review a PR", prompt: "Review the open pull request." },],- }).starter_prompts,+ }).conversation_starters,).toEqual([{ label: "Review a PR", prompt: "Review the open pull request." },]);expect(- AgentSchema.parse({ id: "agent-1", starter_prompts: "invalid" })- .starter_prompts,+ AgentSchema.parse({ id: "agent-1", conversation_starters: "invalid" })+ .conversation_starters,).toEqual([]);});});diff --git a/packages/core/agents/builder-protocol.test.ts b/packages/core/agents/builder-protocol.test.tsindex fe98faff26..0293c50824 100644--- a/packages/core/agents/builder-protocol.test.ts+++ b/packages/core/agents/builder-protocol.test.ts@@ -13,7 +13,7 @@ const draft = (): AgentDraft => ({name: "Old name",description: "Old description",instructions: "Old instructions",- starterPrompts: [],+ conversationStarters: [],avatarUrl: null,runtimeId: "runtime-1",model: "model-1",@@ -38,11 +38,11 @@ describe("agent builder protocol", () => {expect(parseBuilderDraft("<agent_draft>not json</agent_draft>")).toBeNull();});- it("accepts up to three complete starter prompts from the builder", () => {+ it("accepts up to three complete conversation starters from the builder", () => {const merged = mergeBuilderDraft(draft(),{- starter_prompts: [+ conversation_starters: [{ label: " Review a PR ", prompt: " Review the open PR. " },{ label: "", prompt: "Ignored" },],@@ -52,7 +52,7 @@ describe("agent builder protocol", () => {new Set(["model-1"]),);- expect(merged.starterPrompts).toEqual([+ expect(merged.conversationStarters).toEqual([{ label: "Review a PR", prompt: "Review the open PR." },]);});@@ -83,7 +83,7 @@ Return findings."}</agent_draft>`;it("round-trips only the user's natural-language request for chat display", () => {const currentDraft = draft();- currentDraft.starterPrompts = [+ currentDraft.conversationStarters = [{ label: "Plan a release", prompt: "Plan the next release." },];const content = encodeBuilderInput(@@ -106,7 +106,7 @@ Return findings."}</agent_draft>`;{ id: "gpt-5.5", label: "GPT-5.5", provider: "openai" },],current_draft: {- starter_prompts: [+ conversation_starters: [{ label: "Plan a release", prompt: "Plan the next release." },],},diff --git a/packages/core/agents/builder-protocol.ts b/packages/core/agents/builder-protocol.tsindex 8f8e987693..d072db9da1 100644--- a/packages/core/agents/builder-protocol.ts+++ b/packages/core/agents/builder-protocol.ts@@ -1,8 +1,8 @@import type { RuntimeDevice, RuntimeModel } from "../types";import {- AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH,- AGENT_STARTER_PROMPT_MAX_LENGTH,- AGENT_STARTER_PROMPTS_MAX,+ AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH,+ AGENT_CONVERSATION_STARTER_MAX_LENGTH,+ AGENT_CONVERSATION_STARTERS_MAX,} from "./constants";import type { AgentDraft } from "./draft";@@ -27,7 +27,7 @@ export interface BuilderDraftPayload {name?: unknown;description?: unknown;instructions?: unknown;- starter_prompts?: unknown;+ conversation_starters?: unknown;model?: unknown;skill_ids?: unknown;permission_scope?: unknown;@@ -136,7 +136,7 @@ export function encodeBuilderInput(name: draft.name,description: draft.description,instructions: draft.instructions,- starter_prompts: draft.starterPrompts,+ conversation_starters: draft.conversationStarters,model: draft.model,skill_ids: [...draft.skillIds],permission_scope: draft.permissionScope,@@ -251,9 +251,9 @@ export function mergeBuilderDraft(? payload.model: current.model;- const starterPrompts = Array.isArray(payload.starter_prompts)- ? payload.starter_prompts- .slice(0, AGENT_STARTER_PROMPTS_MAX)+ const conversationStarters = Array.isArray(payload.conversation_starters)+ ? payload.conversation_starters+ .slice(0, AGENT_CONVERSATION_STARTERS_MAX).filter((item): item is { label: string; prompt: string } =>!!item &&@@ -265,13 +265,13 @@ export function mergeBuilderDraft().map((item) => ({label: [...item.label.trim()]- .slice(0, AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH)+ .slice(0, AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH).join(""),prompt: [...item.prompt.trim()]- .slice(0, AGENT_STARTER_PROMPT_MAX_LENGTH)+ .slice(0, AGENT_CONVERSATION_STARTER_MAX_LENGTH).join(""),}))- : current.starterPrompts;+ : current.conversationStarters;return {...current,@@ -284,7 +284,7 @@ export function mergeBuilderDraft(typeof payload.instructions === "string"? payload.instructions: current.instructions,- starterPrompts,+ conversationStarters,model,// The builder can move the model, which invalidates whatever thinking /// speed the user picked for the previous one. It never sets these twodiff --git a/packages/core/agents/constants.ts b/packages/core/agents/constants.tsindex b8589908e6..9317d2e6e4 100644--- a/packages/core/agents/constants.ts+++ b/packages/core/agents/constants.ts@@ -3,9 +3,9 @@// Kept in core so both apps and the test suite read from one source.export const AGENT_DESCRIPTION_MAX_LENGTH = 255;-export const AGENT_STARTER_PROMPTS_MAX = 3;-export const AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH = 80;-export const AGENT_STARTER_PROMPT_MAX_LENGTH = 4000;+export const AGENT_CONVERSATION_STARTERS_MAX = 3;+export const AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH = 80;+export const AGENT_CONVERSATION_STARTER_MAX_LENGTH = 4000;// Valid range for the per-agent scheduler cap. Kept here so creation,// duplication, and settings editing cannot silently drift.diff --git a/packages/core/agents/starter-prompts.test.ts b/packages/core/agents/conversation-starters.test.tssimilarity index 51%rename from packages/core/agents/starter-prompts.test.tsrename to packages/core/agents/conversation-starters.test.tsindex 619b00b6ba..e2a5490628 100644--- a/packages/core/agents/starter-prompts.test.ts+++ b/packages/core/agents/conversation-starters.test.ts@@ -2,27 +2,27 @@import { describe, expect, it } from "vitest";import {- canCustomizeStarterPrompts,- selectStarterPrompts,-} from "./starter-prompts";+ canCustomizeConversationStarters,+ selectConversationStarters,+} from "./conversation-starters";const fallback = [{ label: "Fallback one", prompt: "Fallback prompt one." },{ label: "Fallback two", prompt: "Fallback prompt two." },];-describe("selectStarterPrompts", () => {+describe("selectConversationStarters", () => {it("falls back when the agent configured nothing", () => {- expect(selectStarterPrompts([], fallback)).toEqual({- prompts: fallback,+ expect(selectConversationStarters([], fallback)).toEqual({+ starters: fallback,isFallback: true,});- expect(selectStarterPrompts(undefined, fallback).isFallback).toBe(true);- expect(selectStarterPrompts(null, fallback).isFallback).toBe(true);+ expect(selectConversationStarters(undefined, fallback).isFallback).toBe(true);+ expect(selectConversationStarters(null, fallback).isFallback).toBe(true);});it("keeps only rows where both halves carry text", () => {- const result = selectStarterPrompts(+ const result = selectConversationStarters([{ label: "Review the release PR", prompt: "Review it and list risks." },{ label: " ", prompt: "Orphan prompt." },@@ -32,7 +32,7 @@ describe("selectStarterPrompts", () => {);expect(result).toEqual({- prompts: [+ starters: [{ label: "Review the release PR", prompt: "Review it and list risks." },],isFallback: false,@@ -41,41 +41,41 @@ describe("selectStarterPrompts", () => {it("falls back when every configured row is half-filled", () => {expect(- selectStarterPrompts([{ label: "Orphan", prompt: "" }], fallback),- ).toEqual({ prompts: fallback, isFallback: true });+ selectConversationStarters([{ label: "Orphan", prompt: "" }], fallback),+ ).toEqual({ starters: fallback, isFallback: true });});});-describe("canCustomizeStarterPrompts", () => {+describe("canCustomizeConversationStarters", () => {const live = { archived_at: null };- const allowed = { starterPromptsSupported: true, canEditAgent: true };+ const allowed = { conversationStartersSupported: true, canEditAgent: true };it("offers the editor to someone who may edit a live agent", () => {- expect(canCustomizeStarterPrompts(live, allowed)).toBe(true);+ expect(canCustomizeConversationStarters(live, allowed)).toBe(true);});it("stays silent for a reader", () => {expect(- canCustomizeStarterPrompts(live, { ...allowed, canEditAgent: false }),+ canCustomizeConversationStarters(live, { ...allowed, canEditAgent: false }),).toBe(false);});- it("stays silent on a backend that drops starter prompts", () => {+ it("stays silent on a backend that drops conversation starters", () => {expect(- canCustomizeStarterPrompts(live, {+ canCustomizeConversationStarters(live, {...allowed,- starterPromptsSupported: false,+ conversationStartersSupported: false,}),).toBe(false);});it("stays silent for an archived agent, editor or not", () => {expect(- canCustomizeStarterPrompts({ archived_at: "2026-08-01T00:00:00Z" }, allowed),+ canCustomizeConversationStarters({ archived_at: "2026-08-01T00:00:00Z" }, allowed),).toBe(false);});it("stays silent while no agent is resolved", () => {- expect(canCustomizeStarterPrompts(null, allowed)).toBe(false);+ expect(canCustomizeConversationStarters(null, allowed)).toBe(false);});});diff --git a/packages/core/agents/starter-prompts.ts b/packages/core/agents/conversation-starters.tssimilarity index 65%rename from packages/core/agents/starter-prompts.tsrename to packages/core/agents/conversation-starters.tsindex fb07006e53..5ee2ad9494 100644--- a/packages/core/agents/starter-prompts.ts+++ b/packages/core/agents/conversation-starters.ts@@ -1,4 +1,4 @@-import type { Agent, AgentStarterPrompt } from "../types";+import type { Agent, AgentConversationStarter } from "../types";/*** Resolve what a new chat with this agent actually shows.@@ -11,38 +11,38 @@ import type { Agent, AgentStarterPrompt } from "../types";* and `isFallback` says so — the settings preview needs to tell an author* "these are the defaults" rather than implying they configured them.*/-export function selectStarterPrompts(- configured: AgentStarterPrompt[] | undefined | null,- fallback: AgentStarterPrompt[],-): { prompts: AgentStarterPrompt[]; isFallback: boolean } {+export function selectConversationStarters(+ configured: AgentConversationStarter[] | undefined | null,+ fallback: AgentConversationStarter[],+): { starters: AgentConversationStarter[]; isFallback: boolean } {const complete = (configured ?? []).filter((item) => item.label.trim() !== "" && item.prompt.trim() !== "",);return complete.length > 0- ? { prompts: complete, isFallback: false }- : { prompts: fallback, isFallback: true };+ ? { starters: complete, isFallback: false }+ : { starters: fallback, isFallback: true };}/**- * Whether this viewer should be offered a way to edit the agent's starter- * prompts from the chat empty state those prompts render in.+ * 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 starter prompts: the Instructions tab+ * - a backend that does not persist conversation starters: the Instructions tab* renders 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 canCustomizeStarterPrompts(+export function canCustomizeConversationStarters(agent: Pick<Agent, "archived_at"> | null,- opts: { starterPromptsSupported: boolean; canEditAgent: boolean },+ opts: { conversationStartersSupported: boolean; canEditAgent: boolean },): boolean {if (!agent || agent.archived_at) return false;- if (!opts.starterPromptsSupported) return false;+ if (!opts.conversationStartersSupported) return false;return opts.canEditAgent;}diff --git a/packages/core/agents/draft.test.ts b/packages/core/agents/draft.test.tsindex a954ee1abf..721bc5b684 100644--- a/packages/core/agents/draft.test.ts+++ b/packages/core/agents/draft.test.ts@@ -15,7 +15,7 @@ const draft = (): AgentDraft => ({name: "Old name",description: "Old description",instructions: "Old instructions",- starterPrompts: [],+ conversationStarters: [],avatarUrl: null,runtimeId: "runtime-1",model: "model-1",@@ -103,13 +103,13 @@ describe("duplicate access", () => {});});-describe("agent starter prompts", () => {- it("copies prompts into a duplicate and the create request", () => {- const starterPrompts = [+describe("agent conversation starters", () => {+ it("copies starters into a duplicate and the create request", () => {+ const conversationStarters = [{ label: "Review a PR", prompt: "Review the open pull request." },];const duplicate = buildDuplicateDraft(- sourceAgent({ starter_prompts: starterPrompts }),+ sourceAgent({ conversation_starters: conversationStarters }),{runtimes: [CODEX_RUNTIME],currentUserId: "user-1",@@ -118,36 +118,36 @@ describe("agent starter prompts", () => {},);- expect(duplicate.starterPrompts).toEqual(starterPrompts);+ expect(duplicate.conversationStarters).toEqual(conversationStarters);expect(buildCreateAgentRequest({ draft: duplicate, runtimeId: "runtime-1" })- .starter_prompts,- ).toEqual(starterPrompts);+ .conversation_starters,+ ).toEqual(conversationStarters);});it("trims prompt fields before submission", () => {const request = buildCreateAgentRequest({draft: {...draft(),- starterPrompts: [+ conversationStarters: [{ label: " Plan a release ", prompt: " Plan the next release. " },],},runtimeId: "runtime-1",});- expect(request.starter_prompts).toEqual([+ expect(request.conversation_starters).toEqual([{ label: "Plan a release", prompt: "Plan the next release." },]);});- it("omits the field when there are no prompts", () => {+ it("omits the field when there are no starters", () => {const request = buildCreateAgentRequest({draft: draft(),runtimeId: "runtime-1",});- expect(request).not.toHaveProperty("starter_prompts");+ expect(request).not.toHaveProperty("conversation_starters");});});diff --git a/packages/core/agents/draft.ts b/packages/core/agents/draft.tsindex 770674c0f1..6214d9f947 100644--- a/packages/core/agents/draft.ts+++ b/packages/core/agents/draft.ts@@ -3,7 +3,7 @@ import type {Agent,AgentInvocationTargetInput,AgentPermissionScope,- AgentStarterPrompt,+ AgentConversationStarter,CreateAgentRequest,RuntimeDevice,} from "../types";@@ -26,7 +26,7 @@ export interface AgentDraft {name: string;description: string;instructions: string;- starterPrompts: AgentStarterPrompt[];+ conversationStarters: AgentConversationStarter[];avatarUrl: string | null;runtimeId: string;model: string;@@ -45,7 +45,7 @@ export const EMPTY_AGENT_DRAFT: AgentDraft = {name: "",description: "",instructions: "",- starterPrompts: [],+ conversationStarters: [],avatarUrl: null,runtimeId: "",model: "",@@ -189,7 +189,7 @@ export function buildDuplicateDraft(name: `${source.name}${options.nameSuffix}`,description: source.description ?? "",instructions: source.instructions ?? "",- starterPrompts: (source.starter_prompts ?? []).map((item) => ({ ...item })),+ conversationStarters: (source.conversation_starters ?? []).map((item) => ({ ...item })),avatarUrl: source.avatar_url ?? null,runtimeId: keepsRuntime? (source.runtime_id as string)@@ -220,9 +220,9 @@ export function buildCreateAgentRequest(options: {name: draft.name.trim(),description: draft.description.trim(),instructions: draft.instructions.trim() || undefined,- ...(draft.starterPrompts.length > 0+ ...(draft.conversationStarters.length > 0? {- starter_prompts: draft.starterPrompts.map((item) => ({+ conversation_starters: draft.conversationStarters.map((item) => ({label: item.label.trim(),prompt: item.prompt.trim(),})),diff --git a/packages/core/agents/index.ts b/packages/core/agents/index.tsindex 8143c18810..002b447ad6 100644--- a/packages/core/agents/index.ts+++ b/packages/core/agents/index.ts@@ -12,8 +12,8 @@ export * from "./use-update-agent-allowlist";export * from "./use-agent-activity";export * from "./use-workspace-presence-prefetch";export * from "./constants";-export * from "./starter-prompts";-export * from "./use-customize-starter-prompts-href";+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/stored-draft.test.ts b/packages/core/agents/stored-draft.test.tsindex dc187799fb..2b253c34f2 100644--- a/packages/core/agents/stored-draft.test.ts+++ b/packages/core/agents/stored-draft.test.ts@@ -10,7 +10,7 @@ const draft = (): AgentDraft => ({name: "Release manager",description: "Ships carefully",instructions: "# Role\nShip.",- starterPrompts: [+ conversationStarters: [{ label: "Plan a release", prompt: "Plan the next release." },],avatarUrl: "🚀",diff --git a/packages/core/agents/stored-draft.ts b/packages/core/agents/stored-draft.tsindex 6490ef7f57..e0ee16fc26 100644--- a/packages/core/agents/stored-draft.ts+++ b/packages/core/agents/stored-draft.ts@@ -11,7 +11,7 @@ export function toStoredAgentDraft(name: draft.name,description: draft.description,instructions: draft.instructions,- starter_prompts: draft.starterPrompts,+ conversation_starters: draft.conversationStarters,avatar_url: draft.avatarUrl,model: draft.model,thinking_level: draft.thinkingLevel,@@ -37,7 +37,7 @@ export function fromStoredAgentDraft(name: stored.name,description: stored.description,instructions: stored.instructions,- starterPrompts: stored.starter_prompts ?? [],+ conversationStarters: stored.conversation_starters ?? [],avatarUrl: stored.avatar_url,runtimeId,model: stored.model,diff --git a/packages/core/agents/use-customize-starter-prompts-href.ts b/packages/core/agents/use-customize-conversation-starters-href.tssimilarity index 59%rename from packages/core/agents/use-customize-starter-prompts-href.tsrename to packages/core/agents/use-customize-conversation-starters-href.tsindex 968a884dc3..e0fc697520 100644--- a/packages/core/agents/use-customize-starter-prompts-href.ts+++ b/packages/core/agents/use-customize-conversation-starters-href.ts@@ -4,33 +4,33 @@ import type { Agent } from "../types";import { useConfigStore } from "../config";import { useWorkspacePaths } from "../paths";import { useAgentPermissions } from "../permissions";-import { canCustomizeStarterPrompts } from "./starter-prompts";+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 `canCustomizeStarterPrompts`.+ * wiring lives here and the rule itself in `canCustomizeConversationStarters`.*/-export function useCustomizeStarterPromptsHref(+export function useCustomizeConversationStartersHref(agent: Agent | null,wsId: string,): string | null {- const starterPromptsSupported = useConfigStore(- (state) => state.agentStarterPromptsSupported,+ const conversationStartersSupported = useConfigStore(+ (state) => state.agentConversationStartersSupported,);const paths = useWorkspacePaths();const { canEdit } = useAgentPermissions(agent, wsId);if (!agent ||- !canCustomizeStarterPrompts(agent, {- starterPromptsSupported,+ !canCustomizeConversationStarters(agent, {+ conversationStartersSupported,canEditAgent: canEdit.allowed,})) {return null;}- return paths.agentStarterPrompts(agent.id);+ return paths.agentConversationStarters(agent.id);}diff --git a/packages/core/api/client.test.ts b/packages/core/api/client.test.tsindex 0b55c29adf..e3c9894507 100644--- a/packages/core/api/client.test.ts+++ b/packages/core/api/client.test.ts@@ -4,11 +4,11 @@ import { ApiClient, ApiError, CHAT_DRAFT_RESTORE_CAPABILITY, clientErrorMessageimport { EMPTY_PLUGIN_PACKAGE_LIST, EMPTY_PLUGIN_PREVIEW, EMPTY_PLUGIN_SURFACE_LAUNCH } from "./schemas";afterEach(() => {- configStore.getState().setAgentStarterPromptsSupported(false);+ configStore.getState().setAgentConversationStartersSupported(false);vi.unstubAllGlobals();});-describe("ApiClient agent starter-prompt compatibility", () => {+describe("ApiClient agent conversation-starter compatibility", () => {const prompt = {label: "Review a PR",prompt: "Review the open pull request.",@@ -23,9 +23,9 @@ describe("ApiClient agent starter-prompt compatibility", () => {client.createAgent({name: "Reviewer",runtime_id: "runtime-1",- starter_prompts: [prompt],+ conversation_starters: [prompt],}),- ).rejects.toThrow(/server version does not support agent starter prompts/i);+ ).rejects.toThrow(/server version does not support agent conversation starters/i);expect(fetchMock).not.toHaveBeenCalled();});@@ -35,13 +35,13 @@ describe("ApiClient agent starter-prompt compatibility", () => {const client = new ApiClient("https://api.example.test");await expect(- client.updateAgent("agent-1", { starter_prompts: [prompt] }),- ).rejects.toThrow(/server version does not support agent starter prompts/i);+ client.updateAgent("agent-1", { conversation_starters: [prompt] }),+ ).rejects.toThrow(/server version does not support agent conversation starters/i);expect(fetchMock).not.toHaveBeenCalled();});it("allows declared-capability create and update writes through", async () => {- configStore.getState().setAgentStarterPromptsSupported(true);+ configStore.getState().setAgentConversationStartersSupported(true);const fetchMock = vi.fn().mockImplementation(() =>Promise.resolve(new Response(JSON.stringify({ id: "agent-1" }), {@@ -56,19 +56,19 @@ describe("ApiClient agent starter-prompt compatibility", () => {await client.createAgent({name: "Reviewer",runtime_id: "runtime-1",- starter_prompts: [prompt],+ conversation_starters: [prompt],});await client.updateAgent("agent-1", {- starter_prompts: [prompt],+ conversation_starters: [prompt],});expect(JSON.parse(String(fetchMock.mock.calls[0]?.[1]?.body))).toEqual({name: "Reviewer",runtime_id: "runtime-1",- starter_prompts: [prompt],+ conversation_starters: [prompt],});expect(JSON.parse(String(fetchMock.mock.calls[1]?.[1]?.body))).toEqual({- starter_prompts: [prompt],+ conversation_starters: [prompt],});});});diff --git a/packages/core/api/client.ts b/packages/core/api/client.tsindex 8679914d5e..d2ef7c8f4e 100644--- a/packages/core/api/client.ts+++ b/packages/core/api/client.ts@@ -504,15 +504,15 @@ export class ApiError extends Error {}}-function assertAgentStarterPromptsWriteSupported(data: {- starter_prompts?: unknown;+function assertAgentConversationStartersWriteSupported(data: {+ conversation_starters?: unknown;}): void {if (- Object.prototype.hasOwnProperty.call(data, "starter_prompts") &&- !configStore.getState().agentStarterPromptsSupported+ Object.prototype.hasOwnProperty.call(data, "conversation_starters") &&+ !configStore.getState().agentConversationStartersSupported) {throw new Error(- "This server version does not support agent starter prompts. Update the server before saving them.",+ "This server version does not support agent conversation starters. Update the server before saving them.",);}}@@ -1425,7 +1425,7 @@ export class ApiClient {}async createAgent(data: CreateAgentRequest): Promise<Agent> {- assertAgentStarterPromptsWriteSupported(data);+ assertAgentConversationStartersWriteSupported(data);return this.fetch("/api/agents", {method: "POST",body: JSON.stringify(data),@@ -1541,7 +1541,7 @@ export class ApiClient {}async updateAgent(id: string, data: UpdateAgentRequest): Promise<Agent> {- assertAgentStarterPromptsWriteSupported(data);+ assertAgentConversationStartersWriteSupported(data);return this.fetch(`/api/agents/${id}`, {method: "PUT",body: JSON.stringify(data),diff --git a/packages/core/api/schemas.test.ts b/packages/core/api/schemas.test.tsindex 673da1f012..d04b062df4 100644--- a/packages/core/api/schemas.test.ts+++ b/packages/core/api/schemas.test.ts@@ -1151,22 +1151,22 @@ describe("AppConfigSchema local_worktree_supported drift", () => {});});-describe("AppConfigSchema agent_starter_prompts_supported drift", () => {+describe("AppConfigSchema agent_conversation_starters_supported drift", () => {it("defaults to false when the server predates the persistence contract", () => {- expect(AppConfigSchema.parse({}).agent_starter_prompts_supported).toBe(false);+ expect(AppConfigSchema.parse({}).agent_conversation_starters_supported).toBe(false);});it("coerces a malformed declaration to false", () => {expect(- AppConfigSchema.parse({ agent_starter_prompts_supported: "yes" })- .agent_starter_prompts_supported,+ AppConfigSchema.parse({ agent_conversation_starters_supported: "yes" })+ .agent_conversation_starters_supported,).toBe(false);});it("carries a genuine declaration through", () => {expect(- AppConfigSchema.parse({ agent_starter_prompts_supported: true })- .agent_starter_prompts_supported,+ AppConfigSchema.parse({ agent_conversation_starters_supported: true })+ .agent_conversation_starters_supported,).toBe(true);});});diff --git a/packages/core/api/schemas.ts b/packages/core/api/schemas.tsindex 9118ed3254..80c6ae3578 100644--- a/packages/core/api/schemas.ts+++ b/packages/core/api/schemas.ts@@ -748,9 +748,9 @@ export interface AppConfigResponse {* signal do validate but cannot say so, and are treated as unable: the client* has no way to tell them apart, and only one of the two answers is safe. */local_worktree_supported?: boolean;- /** Whether agent create/update persists `starter_prompts`. Older servers+ /** Whether agent create/update persists `conversation_starters`. Older servers* silently ignored the unknown field, so absent must be treated as false. */- agent_starter_prompts_supported?: boolean;+ agent_conversation_starters_supported?: boolean;server_version?: string;}@@ -947,7 +947,7 @@ export const AppConfigSchema = z.object({vcs_integration_available: BooleanWithDefaultSchema(false).optional(),feature_flags: FeatureFlagsSchema,local_worktree_supported: BooleanWithDefaultSchema(false),- agent_starter_prompts_supported: BooleanWithDefaultSchema(false),+ agent_conversation_starters_supported: BooleanWithDefaultSchema(false),server_version: OptionalStringSchema,}).loose();@@ -964,7 +964,7 @@ export const EMPTY_APP_CONFIG: AppConfigResponse = {// validates execution_mode.local_worktree_supported: false,// Fail closed: old servers returned success while dropping the field.- agent_starter_prompts_supported: false,+ agent_conversation_starters_supported: false,feature_flags: {},};@@ -1953,7 +1953,7 @@ export const StoredAgentDraftSchema = z.object({name: z.string().catch(""),description: z.string().catch(""),instructions: z.string().catch(""),- starter_prompts: z+ conversation_starters: z.array(z.object({label: z.string().catch(""),diff --git a/packages/core/config/index.ts b/packages/core/config/index.tsindex ea6d559adf..64ba83afbe 100644--- a/packages/core/config/index.ts+++ b/packages/core/config/index.ts@@ -32,10 +32,10 @@ interface ConfigState {// predate this signal are caught by the same net — indistinguishable from// here, and only one of the two answers is safe to guess.localWorktreeSupported: boolean;- // Whether this server persists starter_prompts on agent create/update.+ // Whether this server persists conversation_starters on agent create/update.// Older handlers accepted the unknown field and returned success while// dropping it, so absent must fail closed.- agentStarterPromptsSupported: boolean;+ agentConversationStartersSupported: boolean;setCdnConfig: (config: { cdnDomain: string; cdnSigned?: boolean }) => void;setAuthConfig: (config: {allowSignup: boolean;@@ -50,7 +50,7 @@ interface ConfigState {setFeatureFlags: (flags?: Record<string, boolean>) => void;setServerVersion: (version?: string) => void;setLocalWorktreeSupported: (supported?: boolean) => void;- setAgentStarterPromptsSupported: (supported?: boolean) => void;+ setAgentConversationStartersSupported: (supported?: boolean) => void;}export const configStore = createStore<ConfigState>((set) => ({@@ -65,7 +65,7 @@ export const configStore = createStore<ConfigState>((set) => ({featureFlags: {},serverVersion: "",localWorktreeSupported: false,- agentStarterPromptsSupported: false,+ agentConversationStartersSupported: false,setCdnConfig: ({ cdnDomain, cdnSigned = false }) => set({ cdnDomain, cdnSigned }),setAuthConfig: ({allowSignup,@@ -79,8 +79,8 @@ export const configStore = createStore<ConfigState>((set) => ({setServerVersion: (version = "") => set({ serverVersion: version }),setLocalWorktreeSupported: (supported = false) =>set({ localWorktreeSupported: supported === true }),- setAgentStarterPromptsSupported: (supported = false) =>- set({ agentStarterPromptsSupported: supported === true }),+ setAgentConversationStartersSupported: (supported = false) =>+ set({ agentConversationStartersSupported: supported === true }),}));export function useConfigStore(): ConfigState;diff --git a/packages/core/paths/index.ts b/packages/core/paths/index.tsindex 01d154ac31..1b92156831 100644--- a/packages/core/paths/index.ts+++ b/packages/core/paths/index.ts@@ -1,7 +1,7 @@export {paths,isGlobalPath,- AGENT_FOCUS_STARTER_PROMPTS,+ AGENT_FOCUS_CONVERSATION_STARTERS,} from "./paths";export type { WorkspacePaths } from "./paths";export { RESERVED_SLUGS, isReservedSlug } from "./reserved-slugs";diff --git a/packages/core/paths/paths.ts b/packages/core/paths/paths.tsindex 460b1b1020..ba44c09714 100644--- a/packages/core/paths/paths.ts+++ b/packages/core/paths/paths.ts@@ -17,10 +17,10 @@ const encode = (id: string) => encodeURIComponent(id);/*** `?focus=` token that scrolls the agent's Instructions tab to its* conversation-starters editor and flashes it. Lives here because it is URL- * vocabulary: `agentStarterPrompts()` writes it and the tab reads it, and a- * shared constant is what stops the two from drifting apart.+ * vocabulary: `agentConversationStarters()` writes it and the tab reads it,+ * and a shared constant is what stops the two from drifting apart.*/-export const AGENT_FOCUS_STARTER_PROMPTS = "starter_prompts";+export const AGENT_FOCUS_CONVERSATION_STARTERS = "conversation_starters";function workspaceScoped(slug: string) {const ws = `/${encode(slug)}`;@@ -48,8 +48,8 @@ function workspaceScoped(slug: string) {// Deep link behind "customize" in a chat's empty state: the agent's// Instructions tab, scrolled to the conversation starters that produced// the buttons the viewer just looked at.- agentStarterPrompts: (id: string) =>- `${ws}/agents/${encode(id)}?view=instructions&focus=${AGENT_FOCUS_STARTER_PROMPTS}`,+ agentConversationStarters: (id: string) =>+ `${ws}/agents/${encode(id)}?view=instructions&focus=${AGENT_FOCUS_CONVERSATION_STARTERS}`,memberDetail: (id: string) => `${ws}/members/${encode(id)}`,squads: () => `${ws}/squads`,squadDetail: (id: string) => `${ws}/squads/${encode(id)}`,diff --git a/packages/core/platform/auth-initializer.tsx b/packages/core/platform/auth-initializer.tsxindex e023736d72..dbc4da583d 100644--- a/packages/core/platform/auth-initializer.tsx+++ b/packages/core/platform/auth-initializer.tsx@@ -91,8 +91,8 @@ export function AuthInitializer({// the persistence contract explicitly.configStore.getState()- .setAgentStarterPromptsSupported(- cfg.agent_starter_prompts_supported === true,+ .setAgentConversationStartersSupported(+ cfg.agent_conversation_starters_supported === true,);if (cfg.posthog_key) {initAnalytics({diff --git a/packages/core/types/agent.ts b/packages/core/types/agent.tsindex ec9e5e110e..8a45294560 100644--- a/packages/core/types/agent.ts+++ b/packages/core/types/agent.ts@@ -478,7 +478,7 @@ export interface Agent {* workspace's own notes — the product half is `system_instructions`. */instructions: string;/** Up to three agent-authored first-turn suggestions. Older servers omit it. */- starter_prompts?: AgentStarterPrompt[];+ conversation_starters?: AgentConversationStarter[];/** Set for product-defined agents (e.g. "mika"). Absent for user- and* template-created agents. Identity for "maintained by Multica" checks —* never the display name, which owners may change. */@@ -590,7 +590,7 @@ export interface Agent {archived_by: string | null;}-export interface AgentStarterPrompt {+export interface AgentConversationStarter {/** Short chip label shown in the empty state. */label: string;/** Full editable text copied into the composer when selected. */@@ -634,7 +634,7 @@ export interface CreateAgentRequest {name: string;description?: string;instructions?: string;- starter_prompts?: AgentStarterPrompt[];+ conversation_starters?: AgentConversationStarter[];avatar_url?: string;runtime_id: string;runtime_config?: Record<string, unknown>;@@ -687,7 +687,7 @@ export interface StoredAgentDraft {name: string;description: string;instructions: string;- starter_prompts: AgentStarterPrompt[];+ conversation_starters: AgentConversationStarter[];avatar_url: string | null;model: string;thinking_level: string;@@ -730,7 +730,7 @@ export interface UpdateAgentRequest {name?: string;description?: string;instructions?: string;- starter_prompts?: AgentStarterPrompt[];+ conversation_starters?: AgentConversationStarter[];avatar_url?: string;runtime_id?: string;runtime_config?: Record<string, unknown>;diff --git a/packages/core/types/index.ts b/packages/core/types/index.tsindex 198e6ae143..bab037321c 100644--- a/packages/core/types/index.ts+++ b/packages/core/types/index.ts@@ -8,7 +8,7 @@ export type {} from "./issue-status";export type {Agent,- AgentStarterPrompt,+ AgentConversationStarter,AgentStatus,AgentRuntimeMode,AgentVisibility,diff --git a/packages/views/agents/components/starter-prompts-editor.test.tsx b/packages/views/agents/components/conversation-starters-editor.test.tsxsimilarity index 83%rename from packages/views/agents/components/starter-prompts-editor.test.tsxrename to packages/views/agents/components/conversation-starters-editor.test.tsxindex 496ee934f0..a3a87423b7 100644--- a/packages/views/agents/components/starter-prompts-editor.test.tsx+++ b/packages/views/agents/components/conversation-starters-editor.test.tsx@@ -3,26 +3,26 @@import { cleanup, render, screen } from "@testing-library/react";import { afterEach, describe, expect, it, vi } from "vitest";import { I18nProvider } from "@multica/core/i18n/react";-import type { AgentStarterPrompt } from "@multica/core/types";+import type { AgentConversationStarter } from "@multica/core/types";import enAgents from "../../locales/en/agents.json";import enChat from "../../locales/en/chat.json";-import { StarterPromptsEditor } from "./starter-prompts-editor";+import { ConversationStartersEditor } from "./conversation-starters-editor";// The selection matrix (which rows count, when the fallback wins) is covered-// once in packages/core/agents/starter-prompts.test.ts. This suite only+// once in packages/core/agents/conversation-starters.test.ts. This suite only// proves the editor previews what a new chat would actually show.-function renderEditor(value: AgentStarterPrompt[]) {+function renderEditor(value: AgentConversationStarter[]) {render(<I18nProviderlocale="en"resources={{ en: { agents: enAgents, chat: enChat } }}>- <StarterPromptsEditor value={value} onChange={vi.fn()} />+ <ConversationStartersEditor value={value} onChange={vi.fn()} /></I18nProvider>,);}-describe("StarterPromptsEditor preview", () => {+describe("ConversationStartersEditor preview", () => {afterEach(cleanup);it("previews the built-in defaults and says so when nothing is configured", () => {diff --git a/packages/views/agents/components/starter-prompts-editor.tsx b/packages/views/agents/components/conversation-starters-editor.tsxsimilarity index 66%rename from packages/views/agents/components/starter-prompts-editor.tsxrename to packages/views/agents/components/conversation-starters-editor.tsxindex 18a4220cb0..a5191a84ae 100644--- a/packages/views/agents/components/starter-prompts-editor.tsx+++ b/packages/views/agents/components/conversation-starters-editor.tsx@@ -2,28 +2,28 @@import { Plus, Trash2 } from "lucide-react";import {- AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH,- AGENT_STARTER_PROMPT_MAX_LENGTH,- AGENT_STARTER_PROMPTS_MAX,- selectStarterPrompts,+ AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH,+ AGENT_CONVERSATION_STARTER_MAX_LENGTH,+ AGENT_CONVERSATION_STARTERS_MAX,+ selectConversationStarters,} from "@multica/core/agents";-import type { AgentStarterPrompt } from "@multica/core/types";+import type { AgentConversationStarter } from "@multica/core/types";import { Button } from "@multica/ui/components/ui/button";import { Input } from "@multica/ui/components/ui/input";import { Textarea } from "@multica/ui/components/ui/textarea";import {- StarterPromptList,- useFallbackStarterPrompts,-} from "../../chat/components/starter-prompt-list";+ ConversationStarterList,+ useFallbackConversationStarters,+} from "../../chat/components/conversation-starter-list";import { useT } from "../../i18n";-export function StarterPromptsEditor({+export function ConversationStartersEditor({value,onChange,disabled = false,}: {- value: AgentStarterPrompt[];- onChange: (value: AgentStarterPrompt[]) => void;+ value: AgentConversationStarter[];+ onChange: (value: AgentConversationStarter[]) => void;disabled?: boolean;}) {const { t } = useT("agents");@@ -34,12 +34,12 @@ export function StarterPromptsEditor({// state uses, so the preview cannot drift from what it previews — including// the fallback rule, which is how an author learns that the three// suggestions they never configured are defaults they can replace.- const fallbackPrompts = useFallbackStarterPrompts();- const preview = selectStarterPrompts(value, fallbackPrompts);+ const fallbackStarters = useFallbackConversationStarters();+ const preview = selectConversationStarters(value, fallbackStarters);const update = (index: number,- field: keyof AgentStarterPrompt,+ field: keyof AgentConversationStarter,nextValue: string,) => {onChange(@@ -53,10 +53,10 @@ export function StarterPromptsEditor({<div className="space-y-3"><div><p className="text-body font-medium">- {t(($) => $.starter_prompts.label)}+ {t(($) => $.conversation_starters.label)}</p><p className="mt-1 text-caption leading-5 text-muted-foreground">- {t(($) => $.starter_prompts.hint)}+ {t(($) => $.conversation_starters.hint)}</p></div>@@ -65,12 +65,12 @@ export function StarterPromptsEditor({<div className="flex items-center gap-2"><Inputvalue={item.label}- maxLength={AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH}+ maxLength={AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH}disabled={disabled}- aria-label={t(($) => $.starter_prompts.item_label, {+ aria-label={t(($) => $.conversation_starters.item_label, {number: index + 1,})}- placeholder={t(($) => $.starter_prompts.label_placeholder)}+ placeholder={t(($) => $.conversation_starters.label_placeholder)}onChange={(event) => update(index, "label", event.target.value)}/><Button@@ -78,7 +78,7 @@ export function StarterPromptsEditor({variant="ghost"size="icon-sm"disabled={disabled}- aria-label={t(($) => $.starter_prompts.remove, {+ aria-label={t(($) => $.conversation_starters.remove, {number: index + 1,})}onClick={() =>@@ -90,20 +90,20 @@ export function StarterPromptsEditor({</div><Textareavalue={item.prompt}- maxLength={AGENT_STARTER_PROMPT_MAX_LENGTH}+ maxLength={AGENT_CONVERSATION_STARTER_MAX_LENGTH}disabled={disabled}rows={3}className="mt-2 resize-y"- aria-label={t(($) => $.starter_prompts.prompt_label, {+ aria-label={t(($) => $.conversation_starters.prompt_label, {number: index + 1,})}- placeholder={t(($) => $.starter_prompts.prompt_placeholder)}+ placeholder={t(($) => $.conversation_starters.prompt_placeholder)}onChange={(event) => update(index, "prompt", event.target.value)}/></div>))}- {value.length < AGENT_STARTER_PROMPTS_MAX ? (+ {value.length < AGENT_CONVERSATION_STARTERS_MAX ? (<Buttontype="button"variant="outline"@@ -112,27 +112,27 @@ export function StarterPromptsEditor({onClick={() => onChange([...value, { label: "", prompt: "" }])}><Plus className="size-4" aria-hidden="true" />- {t(($) => $.starter_prompts.add)}+ {t(($) => $.conversation_starters.add)}</Button>) : null}{hasIncompletePrompt ? (<p className="text-caption text-destructive" role="alert">- {t(($) => $.starter_prompts.incomplete)}+ {t(($) => $.conversation_starters.incomplete)}</p>) : null}<div className="rounded-lg border border-dashed bg-muted/20 px-3 py-3"><p className="text-caption font-medium text-muted-foreground">- {t(($) => $.starter_prompts.preview_label)}+ {t(($) => $.conversation_starters.preview_label)}</p>- <StarterPromptList+ <ConversationStarterListclassName="mt-2 max-w-sm"- prompts={preview.prompts}+ starters={preview.starters}/>{preview.isFallback ? (<p className="mt-2 text-caption leading-5 text-muted-foreground">- {t(($) => $.starter_prompts.preview_defaults)}+ {t(($) => $.conversation_starters.preview_defaults)}</p>) : null}</div>diff --git a/packages/views/agents/components/tabs/instructions-tab.test.tsx b/packages/views/agents/components/tabs/instructions-tab.test.tsxindex f32c2c9d23..534ca925e9 100644--- a/packages/views/agents/components/tabs/instructions-tab.test.tsx+++ b/packages/views/agents/components/tabs/instructions-tab.test.tsx@@ -8,7 +8,7 @@ import { I18nProvider } from "@multica/core/i18n/react";import type { Agent } from "@multica/core/types";import enCommon from "../../../locales/en/common.json";import enAgents from "../../../locales/en/agents.json";-// The starter-prompt editor previews the chat empty state, so it reads the+// The conversation-starter editor previews the chat empty state, so it reads the// chat namespace for the built-in defaults it renders when nothing is set.import enChat from "../../../locales/en/chat.json";import { NavigationProvider } from "../../../navigation";@@ -29,7 +29,7 @@ const baseAgent: Agent = {name: "Reviewer",description: "",instructions: "Review carefully.",- starter_prompts: [persistedPrompt],+ conversation_starters: [persistedPrompt],avatar_url: null,runtime_mode: "local",runtime_config: {},@@ -58,12 +58,12 @@ function tab(agent: Agent, onSave = vi.fn().mockResolvedValue(undefined)) {describe("InstructionsTab persisted-state synchronization", () => {beforeEach(() => {- configStore.getState().setAgentStarterPromptsSupported(true);+ configStore.getState().setAgentConversationStartersSupported(true);});afterEach(() => {act(() => {- configStore.getState().setAgentStarterPromptsSupported(false);+ configStore.getState().setAgentConversationStartersSupported(false);});});@@ -77,7 +77,7 @@ describe("InstructionsTab persisted-state synchronization", () => {rerender(tab({...baseAgent,- starter_prompts: [{ ...persistedPrompt }],+ conversation_starters: [{ ...persistedPrompt }],}),);@@ -96,7 +96,7 @@ describe("InstructionsTab persisted-state synchronization", () => {rerender(tab({...baseAgent,- starter_prompts: [+ conversation_starters: [{ label: "Server-side change", prompt: "A different prompt." },],}),@@ -133,7 +133,7 @@ describe("InstructionsTab persisted-state synchronization", () => {tab({...baseAgent,- starter_prompts: [optimisticPrompt],+ conversation_starters: [optimisticPrompt],},onSave,),@@ -142,7 +142,7 @@ describe("InstructionsTab persisted-state synchronization", () => {tab({...baseAgent,- starter_prompts: [{ ...persistedPrompt }],+ conversation_starters: [{ ...persistedPrompt }],},onSave,),@@ -157,8 +157,8 @@ describe("InstructionsTab persisted-state synchronization", () => {);});- it("omits starter prompts from settings writes to an older backend", async () => {- configStore.getState().setAgentStarterPromptsSupported(false);+ it("omits conversation starters from settings writes to an older backend", async () => {+ configStore.getState().setAgentConversationStartersSupported(false);const onSave = vi.fn().mockResolvedValue(undefined);const user = userEvent.setup();render(tab(baseAgent, onSave));@@ -180,17 +180,17 @@ describe("InstructionsTab persisted-state synchronization", () => {// The "customize" link in a chat's empty state lands here with ?focus=. The// tab 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("InstructionsTab starter-prompts deep link", () => {+describe("InstructionsTab conversation-starters deep link", () => {// Mirrors FOCUS_FLASH_MS in instructions-tab.tsx.const FLASH_MS = 1600;beforeEach(() => {- configStore.getState().setAgentStarterPromptsSupported(true);+ configStore.getState().setAgentConversationStartersSupported(true);});afterEach(() => {act(() => {- configStore.getState().setAgentStarterPromptsSupported(false);+ configStore.getState().setAgentConversationStartersSupported(false);});});@@ -236,7 +236,7 @@ describe("InstructionsTab starter-prompts deep link", () => {it("scrolls to the editor and drops the focus param, keeping the view", () => {const { replace, scrollIntoView } = renderWithSearch(- "view=instructions&focus=starter_prompts",+ "view=instructions&focus=conversation_starters",);expect(scrollIntoView).toHaveBeenCalledWith({ block: "nearest" });@@ -253,7 +253,7 @@ describe("InstructionsTab starter-prompts deep link", () => {vi.useFakeTimers();try {const { settleUrl } = renderWithSearch(- "view=instructions&focus=starter_prompts",+ "view=instructions&focus=conversation_starters",);expect(ringed()).not.toBeNull();@@ -275,12 +275,12 @@ describe("InstructionsTab starter-prompts deep link", () => {// page can send the very same link again, and it has to land again.it("focuses again when the link is clicked a second time", () => {const { replace, scrollIntoView, settleUrl } = renderWithSearch(- "view=instructions&focus=starter_prompts",+ "view=instructions&focus=conversation_starters",);expect(scrollIntoView).toHaveBeenCalledTimes(1);act(() => settleUrl("view=instructions"));- act(() => settleUrl("view=instructions&focus=starter_prompts"));+ act(() => settleUrl("view=instructions&focus=conversation_starters"));expect(scrollIntoView).toHaveBeenCalledTimes(2);expect(replace).toHaveBeenCalledTimes(2);@@ -292,12 +292,12 @@ describe("InstructionsTab starter-prompts deep link", () => {it("focuses a link aimed at a different agent", () => {const other: Agent = { ...baseAgent, id: "agent-2" };const { scrollIntoView, settleUrl } = renderWithSearch(- "view=instructions&focus=starter_prompts",+ "view=instructions&focus=conversation_starters",);expect(scrollIntoView).toHaveBeenCalledTimes(1);// The URL still carries focus — it is the NEXT agent's deep link.- act(() => settleUrl("view=instructions&focus=starter_prompts", other));+ act(() => settleUrl("view=instructions&focus=conversation_starters", other));expect(scrollIntoView).toHaveBeenCalledTimes(2);});diff --git a/packages/views/agents/components/tabs/instructions-tab.tsx b/packages/views/agents/components/tabs/instructions-tab.tsxindex 7df25615fe..5c8b44c0cf 100644--- a/packages/views/agents/components/tabs/instructions-tab.tsx+++ b/packages/views/agents/components/tabs/instructions-tab.tsx@@ -3,17 +3,17 @@import { useEffect, useRef, useState } from "react";import { Loader2, Save } from "lucide-react";import { useConfigStore } from "@multica/core/config";-import { AGENT_FOCUS_STARTER_PROMPTS } from "@multica/core/paths";-import type { Agent, AgentStarterPrompt } from "@multica/core/types";+import { AGENT_FOCUS_CONVERSATION_STARTERS } from "@multica/core/paths";+import type { Agent, AgentConversationStarter } from "@multica/core/types";import { Button } from "@multica/ui/components/ui/button";import { Textarea } from "@multica/ui/components/ui/textarea";import { cn } from "@multica/ui/lib/utils";import { useT } from "../../../i18n";import { useOptionalNavigation } from "../../../navigation";-import { StarterPromptsEditor } from "../starter-prompts-editor";+import { ConversationStartersEditor } from "../conversation-starters-editor";-/** How long the deep-linked starter-prompts editor stays ringed. */+/** How long the deep-linked conversation-starters editor stays ringed. */const FOCUS_FLASH_MS = 1600;export function InstructionsTab({@@ -24,7 +24,7 @@ export function InstructionsTab({agent: Agent;onSave: (updates: {instructions: string;- starter_prompts?: AgentStarterPrompt[];+ conversation_starters?: AgentConversationStarter[];}) => Promise<void>;onDirtyChange?: (dirty: boolean) => void;}) {@@ -33,42 +33,42 @@ export function InstructionsTab({// only navigation-dependent behaviour (the deep-link focus below) degrades// to "no highlight" when there is no adapter.const navigation = useOptionalNavigation();- const starterPromptsSupported = useConfigStore(- (state) => state.agentStarterPromptsSupported,+ const conversationStartersSupported = useConfigStore(+ (state) => state.agentConversationStartersSupported,);const [value, setValue] = useState(agent.instructions ?? "");- const [starterPrompts, setStarterPrompts] = useState<AgentStarterPrompt[]>(- agent.starter_prompts ?? [],+ const [conversationStarters, setConversationStarters] = useState<AgentConversationStarter[]>(+ agent.conversation_starters ?? [],);const [saving, setSaving] = useState(false);- const [starterPromptsFocused, setStarterPromptsFocused] = useState(false);- const starterPromptsRef = useRef<HTMLDivElement | null>(null);+ const [conversationStartersFocused, setConversationStartersFocused] = useState(false);+ const conversationStartersRef = useRef<HTMLDivElement | null>(null);const focusHandledForAgentRef = useRef<string | null>(null);const focusFlashTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);const [systemOpen, setSystemOpen] = useState(false);- const persistedStarterPromptsKey = JSON.stringify(- agent.starter_prompts ?? [],+ const persistedConversationStartersKey = JSON.stringify(+ agent.conversation_starters ?? [],);const persistedRef = useRef({agentId: agent.id,instructions: agent.instructions ?? "",- starterPromptsKey: persistedStarterPromptsKey,+ conversationStartersKey: persistedConversationStartersKey,});const localRef = useRef({instructions: value,- starterPromptsKey: JSON.stringify(starterPrompts),+ conversationStartersKey: JSON.stringify(conversationStarters),});localRef.current = {instructions: value,- starterPromptsKey: JSON.stringify(starterPrompts),+ conversationStartersKey: JSON.stringify(conversationStarters),};const isDirty =value !== (agent.instructions ?? "") ||- (starterPromptsSupported &&- JSON.stringify(starterPrompts) !== persistedStarterPromptsKey);- const starterPromptsValid =- !starterPromptsSupported ||- starterPrompts.every(+ (conversationStartersSupported &&+ JSON.stringify(conversationStarters) !== persistedConversationStartersKey);+ const conversationStartersValid =+ !conversationStartersSupported ||+ conversationStarters.every((item) => item.label.trim() && item.prompt.trim(),);@@ -95,23 +95,23 @@ export function InstructionsTab({const local = localRef.current;const wasLocallyDirty =local.instructions !== previous.instructions ||- local.starterPromptsKey !== previous.starterPromptsKey;+ local.conversationStartersKey !== previous.conversationStartersKey;const persistedContentsChanged =previous.instructions !== (agent.instructions ?? "") ||- previous.starterPromptsKey !== persistedStarterPromptsKey;+ previous.conversationStartersKey !== persistedConversationStartersKey;persistedRef.current = {agentId: agent.id,instructions: agent.instructions ?? "",- starterPromptsKey: persistedStarterPromptsKey,+ conversationStartersKey: persistedConversationStartersKey,};if (switchingAgents || (!wasLocallyDirty && persistedContentsChanged)) {setValue(agent.instructions ?? "");- setStarterPrompts(- JSON.parse(persistedStarterPromptsKey) as AgentStarterPrompt[],+ setConversationStarters(+ JSON.parse(persistedConversationStartersKey) as AgentConversationStarter[],);}- }, [agent.id, agent.instructions, persistedStarterPromptsKey, saving]);+ }, [agent.id, agent.instructions, persistedConversationStartersKey, saving]);// Arriving from "customize" in a chat's empty state: bring the starter// prompts into view and flash them, so the deep link lands ON the setting@@ -120,9 +120,9 @@ export function InstructionsTab({// 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.useEffect(() => {- if (!navigation || !starterPromptsSupported) return;+ if (!navigation || !conversationStartersSupported) return;- if (navigation.searchParams.get("focus") !== AGENT_FOCUS_STARTER_PROMPTS) {+ if (navigation.searchParams.get("focus") !== AGENT_FOCUS_CONVERSATION_STARTERS) {// The param is gone: either this is an ordinary visit, or the `replace`// below has landed. Re-arm so the next click focuses again.focusHandledForAgentRef.current = null;@@ -137,8 +137,8 @@ export function InstructionsTab({// `block: "nearest"` deliberately: native scrollIntoView scrolls every// scrollable ancestor, which on desktop drags the shell itself (#3929).- starterPromptsRef.current?.scrollIntoView?.({ block: "nearest" });- setStarterPromptsFocused(true);+ conversationStartersRef.current?.scrollIntoView?.({ block: "nearest" });+ setConversationStartersFocused(true);const params = new URLSearchParams(navigation.searchParams);params.delete("focus");@@ -154,10 +154,10 @@ export function InstructionsTab({// window rather than inheriting the previous one's remaining time.if (focusFlashTimerRef.current) clearTimeout(focusFlashTimerRef.current);focusFlashTimerRef.current = setTimeout(- () => setStarterPromptsFocused(false),+ () => setConversationStartersFocused(false),FOCUS_FLASH_MS,);- }, [agent.id, navigation, starterPromptsSupported]);+ }, [agent.id, navigation, conversationStartersSupported]);useEffect(() => () => {@@ -176,8 +176,8 @@ export function InstructionsTab({try {await onSave({instructions: value,- ...(starterPromptsSupported- ? { starter_prompts: starterPrompts }+ ...(conversationStartersSupported+ ? { conversation_starters: conversationStarters }: {}),});} catch {@@ -249,17 +249,17 @@ export function InstructionsTab({/></div>- {starterPromptsSupported ? (+ {conversationStartersSupported ? (<div- ref={starterPromptsRef}+ ref={conversationStartersRef}className={cn("scroll-mt-4 rounded-lg transition-shadow duration-500",- starterPromptsFocused && "ring-2 ring-brand/50 ring-offset-2 ring-offset-background",+ conversationStartersFocused && "ring-2 ring-brand/50 ring-offset-2 ring-offset-background",)}>- <StarterPromptsEditor- value={starterPrompts}- onChange={setStarterPrompts}+ <ConversationStartersEditor+ value={conversationStarters}+ onChange={setConversationStarters}/></div>) : null}@@ -273,7 +273,7 @@ export function InstructionsTab({<Buttonsize="sm"onClick={handleSave}- disabled={!isDirty || !starterPromptsValid || saving}+ disabled={!isDirty || !conversationStartersValid || saving}>{saving ? (<Loader2diff --git a/packages/views/agents/create/agent-configuration-panel.tsx b/packages/views/agents/create/agent-configuration-panel.tsxindex 89f0b3a78a..e2395d3d9d 100644--- a/packages/views/agents/create/agent-configuration-panel.tsx+++ b/packages/views/agents/create/agent-configuration-panel.tsx@@ -27,7 +27,7 @@ import { ThinkingSettingField } from "../components/inspector/thinking-prop-row"import { ModelDropdown } from "../components/model-dropdown";import { RuntimePicker } from "../components/runtime-picker";import { SkillMultiSelect } from "../components/skill-multi-select";-import { StarterPromptsEditor } from "../components/starter-prompts-editor";+import { ConversationStartersEditor } from "../components/conversation-starters-editor";const PERMISSION_SCOPES: AgentPermissionScope[] = ["private",@@ -68,8 +68,8 @@ export function AgentConfigurationPanel({runtimeSwitchInFlight?: boolean;}) {const { t } = useT("agents");- const starterPromptsSupported = useConfigStore(- (state) => state.agentStarterPromptsSupported,+ const conversationStartersSupported = useConfigStore(+ (state) => state.agentConversationStartersSupported,);const selectedRuntime =runtimes.find((runtime) => runtime.id === draft.runtimeId) ?? null;@@ -175,11 +175,11 @@ export function AgentConfigurationPanel({className="min-h-44 resize-y font-mono text-label leading-6"/></DraftFieldRow>- {starterPromptsSupported ? (+ {conversationStartersSupported ? (<div className="px-4 py-4">- <StarterPromptsEditor- value={draft.starterPrompts}- onChange={(value) => set("starterPrompts", value)}+ <ConversationStartersEditor+ value={draft.conversationStarters}+ onChange={(value) => set("conversationStarters", value)}/></div>) : null}diff --git a/packages/views/agents/create/agent-execution-overrides.test.tsx b/packages/views/agents/create/agent-execution-overrides.test.tsxindex 2b422129e5..530e0f8f1c 100644--- a/packages/views/agents/create/agent-execution-overrides.test.tsx+++ b/packages/views/agents/create/agent-execution-overrides.test.tsx@@ -71,7 +71,7 @@ const baseDraft: AgentDraft = {name: "Fast Codex",description: "",instructions: "",- starterPrompts: [],+ conversationStarters: [],avatarUrl: null,runtimeId: "runtime-1",model: "gpt-5.6-sol",diff --git a/packages/views/agents/create/use-create-agent-form.ts b/packages/views/agents/create/use-create-agent-form.tsindex 3684c5ac47..f9ed66ed82 100644--- a/packages/views/agents/create/use-create-agent-form.ts+++ b/packages/views/agents/create/use-create-agent-form.ts@@ -11,8 +11,8 @@ import { useQuery } from "@tanstack/react-query";import {EMPTY_AGENT_DRAFT,isDraftDescriptionWithinLimit,- AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH,- AGENT_STARTER_PROMPT_MAX_LENGTH,+ AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH,+ AGENT_CONVERSATION_STARTER_MAX_LENGTH,type AgentDraft,} from "@multica/core/agents";import { useAuthStore } from "@multica/core/auth";@@ -126,12 +126,12 @@ export function useCreateAgentForm(options?: {draft.memberIds.size === 0 &&draft.teamIds.size === 0;- const starterPromptsInvalid = draft.starterPrompts.some(+ const conversationStartersInvalid = draft.conversationStarters.some((item) =>item.label.trim().length === 0 ||item.prompt.trim().length === 0 ||- [...item.label].length > AGENT_STARTER_PROMPT_LABEL_MAX_LENGTH ||- [...item.prompt].length > AGENT_STARTER_PROMPT_MAX_LENGTH,+ [...item.label].length > AGENT_CONVERSATION_STARTER_LABEL_MAX_LENGTH ||+ [...item.prompt].length > AGENT_CONVERSATION_STARTER_MAX_LENGTH,);return {@@ -150,6 +150,6 @@ export function useCreateAgentForm(options?: {isRuntimeUsableForUser(selectedRuntime, currentUserId) &&isDraftDescriptionWithinLimit(draft.description) &&!accessInvalid &&- !starterPromptsInvalid,+ !conversationStartersInvalid,};}diff --git a/packages/views/chat/chat-page.tsx b/packages/views/chat/chat-page.tsxindex 11b11d2f30..df62d30e1b 100644--- a/packages/views/chat/chat-page.tsx+++ b/packages/views/chat/chat-page.tsx@@ -286,8 +286,8 @@ export function ChatPage() {<EmptyStateagent={c.activeAgent}hasSessions={c.sessions.length > 0}- onPickPrompt={c.prefillStarterPrompt}- customizeHref={c.customizeStarterPromptsHref}+ onPickPrompt={c.prefillConversationStarter}+ customizeHref={c.customizeConversationStartersHref}/>)}@@ -319,8 +319,8 @@ export function ChatPage() {<ChatInputonSend={c.handleSend}restoreDraftRequest={c.restoreDraftRequest}- starterPromptRequest={c.starterPromptRequest}- onStarterPromptApplied={c.handleStarterPromptApplied}+ conversationStarterRequest={c.conversationStarterRequest}+ onConversationStarterApplied={c.handleConversationStarterApplied}onRestoreDraftApplied={c.handleRestoreDraftApplied}uploadEnabled={c.uploadEnabled && !c.isAgentAccessRevoked}onStop={c.handleStop}diff --git a/packages/views/chat/components/chat-empty-state.test.tsx b/packages/views/chat/components/chat-empty-state.test.tsxindex 2f26ef21c2..3a553a92e2 100644--- a/packages/views/chat/components/chat-empty-state.test.tsx+++ b/packages/views/chat/components/chat-empty-state.test.tsx@@ -14,12 +14,12 @@ vi.mock("../../common/actor-avatar", () => ({import { EmptyState } from "./chat-empty-state";-const agent = (starterPrompts: Agent["starter_prompts"] = []): Agent =>+const agent = (conversationStarters: Agent["conversation_starters"] = []): Agent =>({id: "agent-1",name: "Reviewer",description: "Reviews changes before they merge.",- starter_prompts: starterPrompts,+ conversation_starters: conversationStarters,}) as Agent;const adapter = (): NavigationAdapter => ({@@ -48,7 +48,7 @@ function renderEmptyState(value: Agent, customizeHref: string | null = null) {return onPickPrompt;}-describe("chat empty-state starter prompts", () => {+describe("chat empty-state conversation starters", () => {afterEach(cleanup);it("prefers the selected agent's configured prompts", () => {@@ -90,9 +90,9 @@ describe("chat empty-state starter prompts", () => {describe("chat empty-state customize affordance", () => {afterEach(cleanup);- const href = "/acme/agents/agent-1?view=instructions&focus=starter_prompts";+ const href = "/acme/agents/agent-1?view=instructions&focus=conversation_starters";- it("links a viewer who may edit the agent to its starter prompts", () => {+ it("links a viewer who may edit the agent to its conversation starters", () => {renderEmptyState(agent(), href);expect(diff --git a/packages/views/chat/components/chat-empty-state.tsx b/packages/views/chat/components/chat-empty-state.tsxindex 918490c7f5..05f91a8fb2 100644--- a/packages/views/chat/components/chat-empty-state.tsx+++ b/packages/views/chat/components/chat-empty-state.tsx@@ -1,15 +1,15 @@"use client";import { Settings2 } from "lucide-react";-import { selectStarterPrompts } from "@multica/core/agents";+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 {- StarterPromptList,- useFallbackStarterPrompts,-} from "./starter-prompt-list";+ ConversationStarterList,+ useFallbackConversationStarters,+} from "./conversation-starter-list";/** Empty compose placeholder shown before the first user message. */export function EmptyState({@@ -24,7 +24,7 @@ export function EmptyState({/*** 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 starter prompts gets a link. Keeping it a prop+ * 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.*/@@ -32,10 +32,10 @@ export function EmptyState({}) {const { t } = useT("chat");const description = agent?.description?.trim();- const fallbackPrompts = useFallbackStarterPrompts();- const { prompts } = selectStarterPrompts(- agent?.starter_prompts,- fallbackPrompts,+ const fallbackStarters = useFallbackConversationStarters();+ const { starters } = selectConversationStarters(+ agent?.conversation_starters,+ fallbackStarters,);return (@@ -66,9 +66,9 @@ export function EmptyState({{agent ? (<divclassName="w-full max-w-sm space-y-2"- aria-label={t(($) => $.starter_prompts.aria_label)}+ aria-label={t(($) => $.conversation_starters.aria_label)}>- <StarterPromptList prompts={prompts} onPick={onPickPrompt} />+ <ConversationStarterList starters={starters} onPick={onPickPrompt} />{customizeHref ? (<div className="flex justify-center pt-1"><AppLink@@ -76,7 +76,7 @@ export function EmptyState({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(($) => $.starter_prompts.customize)}+ {t(($) => $.conversation_starters.customize)}</AppLink></div>) : null}diff --git a/packages/views/chat/components/chat-input.test.tsx b/packages/views/chat/components/chat-input.test.tsxindex 766ef00f01..1250c24294 100644--- a/packages/views/chat/components/chat-input.test.tsx+++ b/packages/views/chat/components/chat-input.test.tsx@@ -501,9 +501,9 @@ describe("ChatInput focusRequest", () => {});});-describe("ChatInput starter prompt prefill", () => {+describe("ChatInput conversation starter prefill", () => {it("replaces live editor text and the stored draft", () => {- const onStarterPromptApplied = vi.fn();+ const onConversationStarterApplied = vi.fn();const { rerender } = renderInput();fireEvent.change(screen.getByTestId("editor"), {@@ -511,11 +511,11 @@ describe("ChatInput starter prompt prefill", () => {});rerender(element({- starterPromptRequest: {+ conversationStarterRequest: {id: 1,content: "Review the release pull request.",},- onStarterPromptApplied,+ onConversationStarterApplied,}),);@@ -524,7 +524,7 @@ describe("ChatInput starter prompt prefill", () => {"Review the release pull request.",);expect(editorState.adopted).toEqual(["Review the release pull request."]);- expect(onStarterPromptApplied).toHaveBeenCalledTimes(1);+ expect(onConversationStarterApplied).toHaveBeenCalledTimes(1);});it("applies each request only once", () => {@@ -532,9 +532,9 @@ describe("ChatInput starter prompt prefill", () => {id: 1,content: "Review the release pull request.",};- const { rerender } = renderInput({ starterPromptRequest: request });+ const { rerender } = renderInput({ conversationStarterRequest: request });- rerender(element({ starterPromptRequest: request }));+ rerender(element({ conversationStarterRequest: request }));expect(editorState.adopted).toEqual([request.content]);});diff --git a/packages/views/chat/components/chat-input.tsx b/packages/views/chat/components/chat-input.tsxindex ad0e867960..6391f1af2c 100644--- a/packages/views/chat/components/chat-input.tsx+++ b/packages/views/chat/components/chat-input.tsx@@ -73,15 +73,15 @@ interface ChatInputProps {*/sessionId?: string;} | null;- /** Explicit replacement requested by a starter-prompt button. Unlike a+ /** Explicit replacement requested by a conversation-starter button. Unlike a* synchronized draft write, this may intentionally replace dirty editor* content, so ChatInput adopts it after cancelling any pending debounce. */- starterPromptRequest?: {+ conversationStarterRequest?: {id: number;content: string;} | null;/** Fired after the request has replaced both the stored and live draft. */- onStarterPromptApplied?: () => void;+ onConversationStarterApplied?: () => void;/*** Fired when — and only when — the restore's content/attachments were written* into the draft. A restore the composer cannot apply yet (the user has work@@ -149,8 +149,8 @@ interface ChatInputProps {export function ChatInput({onSend,restoreDraftRequest,- starterPromptRequest,- onStarterPromptApplied,+ conversationStarterRequest,+ onConversationStarterApplied,onRestoreDraftApplied,uploadEnabled: uploadAllowed,onStop,@@ -228,7 +228,7 @@ export function ChatInput({// reads the live editor and bails when it is empty.const hasNothingToSend = isEmpty && !inputDraft.trim();const appliedRestoreIdRef = useRef<string | null>(null);- const appliedStarterPromptIdRef = useRef<number | null>(null);+ const appliedConversationStarterIdRef = useRef<number | null>(null);const editorKey = editorKeyOverride ?? CHAT_COMPOSER_EDITOR_KEY;// The draft whose document the editor instance is currently HOLDING.@@ -377,29 +377,29 @@ export function ChatInput({editorRef.current?.focus();}, [focusRequest]);- // A starter-prompt click is an explicit replacement, not an ordinary+ // A conversation-starter click is an explicit replacement, not an ordinary// external store sync. ContentEditor deliberately rejects external values// while it has dirty local text, so adopting here prevents the old text's// pending debounce from winning the race and overwriting the chosen prompt.// Wait out active uploads: adopting content while an upload node is present// would strand its completion callback.useLayoutEffect(() => {- if (!starterPromptRequest) return;- if (appliedStarterPromptIdRef.current === starterPromptRequest.id) return;+ if (!conversationStarterRequest) return;+ if (appliedConversationStarterIdRef.current === conversationStarterRequest.id) return;if (editorDraftKeyRef.current !== draftKey) return;if (editorRef.current?.hasActiveUploads() === true) return;editorRef.current?.flushPendingUpdate();- appliedStarterPromptIdRef.current = starterPromptRequest.id;- commitDraft(draftKey, starterPromptRequest.content);- editorRef.current?.adoptContent(starterPromptRequest.content);- setIsEmpty(!starterPromptRequest.content.trim());- onStarterPromptApplied?.();+ appliedConversationStarterIdRef.current = conversationStarterRequest.id;+ commitDraft(draftKey, conversationStarterRequest.content);+ editorRef.current?.adoptContent(conversationStarterRequest.content);+ setIsEmpty(!conversationStarterRequest.content.trim());+ onConversationStarterApplied?.();}, [commitDraft,draftKey,- onStarterPromptApplied,- starterPromptRequest,+ onConversationStarterApplied,+ conversationStarterRequest,uploadGate.uploading,]);diff --git a/packages/views/chat/components/chat-window.tsx b/packages/views/chat/components/chat-window.tsxindex 71f41e91ee..bc7f1a460a 100644--- a/packages/views/chat/components/chat-window.tsx+++ b/packages/views/chat/components/chat-window.tsx@@ -22,7 +22,7 @@ import { api, dispatchReasonCode } from "@multica/core/api";import {isAgentRuntimeBound,useAgentPresenceDetail,- useCustomizeStarterPromptsHref,+ useCustomizeConversationStartersHref,useWorkspaceAgentAvailability,} from "@multica/core/agents";import { ActorAvatar } from "../../common/actor-avatar";@@ -144,7 +144,7 @@ export function ChatWindow() {const allMessages = [...messagePages].reverse().flatMap((page) => page.messages);// Skeleton only shows for an un-cached session fetch. Cached switches// return data synchronously — no flash. `enabled: false` (new chat)- // keeps isLoading false so the starter prompts aren't hidden.+ // keeps isLoading false so the conversation starters aren't hidden.// Server-authoritative pending task. Survives refresh / reopen / session// switch because it's keyed on sessionId in the Query cache; WS events// (chat:message / chat:done / task:*) keep it invalidated in real time.@@ -189,23 +189,23 @@ export function ChatWindow() {// Nonce handed to ChatInput to pull focus into the compose box: when a new// chat starts (⊕ or switching agent), and whenever the window itself opens.const { focusRequest, requestInputFocus } = useChatInputFocus(isOpen);- const [starterPromptRequest, setStarterPromptRequest] = useState<{+ const [conversationStarterRequest, setConversationStarterRequest] = useState<{id: number;content: string;} | null>(null);- const nextStarterPromptRequestIdRef = useRef(0);- const prefillStarterPrompt = useCallback(+ const nextConversationStarterRequestIdRef = useRef(0);+ const prefillConversationStarter = useCallback((prompt: string) => {- setStarterPromptRequest({- id: ++nextStarterPromptRequestIdRef.current,+ setConversationStarterRequest({+ id: ++nextConversationStarterRequestIdRef.current,content: prompt,});requestInputFocus();},[requestInputFocus],);- const handleStarterPromptApplied = useCallback(- () => setStarterPromptRequest(null),+ const handleConversationStarterApplied = useCallback(+ () => setConversationStarterRequest(null),[],);@@ -274,7 +274,7 @@ export function ChatWindow() {// "Customize" under the starter buttons — the only place the empty state// admits that those buttons are configuration at all.- const customizeStarterPromptsHref = useCustomizeStarterPromptsHref(+ const customizeConversationStartersHref = useCustomizeConversationStartersHref(activeAgent,wsId,);@@ -948,8 +948,8 @@ export function ChatWindow() {<EmptyStateagent={activeAgent}hasSessions={sessions.length > 0}- onPickPrompt={prefillStarterPrompt}- customizeHref={customizeStarterPromptsHref}+ onPickPrompt={prefillConversationStarter}+ customizeHref={customizeConversationStartersHref}/>)}@@ -993,8 +993,8 @@ export function ChatWindow() {<ChatInputonSend={handleSend}restoreDraftRequest={restoreDraftRequest}- starterPromptRequest={starterPromptRequest}- onStarterPromptApplied={handleStarterPromptApplied}+ conversationStarterRequest={conversationStarterRequest}+ onConversationStarterApplied={handleConversationStarterApplied}onRestoreDraftApplied={handleRestoreDraftApplied}uploadEnabled={!!activeAgent && !isAgentAccessRevoked}onStop={handleStop}diff --git a/packages/views/chat/components/starter-prompt-list.tsx b/packages/views/chat/components/conversation-starter-list.tsxsimilarity index 69%rename from packages/views/chat/components/starter-prompt-list.tsxrename to packages/views/chat/components/conversation-starter-list.tsxindex 0e956980e0..dfdef4bb53 100644--- a/packages/views/chat/components/starter-prompt-list.tsx+++ b/packages/views/chat/components/conversation-starter-list.tsx@@ -1,6 +1,6 @@"use client";-import type { AgentStarterPrompt } from "@multica/core/types";+import type { AgentConversationStarter } from "@multica/core/types";import { cn } from "@multica/ui/lib/utils";import { useT } from "../../i18n";@@ -10,20 +10,20 @@ import { useT } from "../../i18n";* renders the same hook, so an author configuring an agent sees exactly what* a real new chat will show rather than a hand-maintained mock of it.*/-export function useFallbackStarterPrompts(): AgentStarterPrompt[] {+export function useFallbackConversationStarters(): AgentConversationStarter[] {const { t } = useT("chat");return [{- label: t(($) => $.starter_prompts.capabilities.label),- prompt: t(($) => $.starter_prompts.capabilities.prompt),+ label: t(($) => $.conversation_starters.capabilities.label),+ prompt: t(($) => $.conversation_starters.capabilities.prompt),},{- label: t(($) => $.starter_prompts.first_task.label),- prompt: t(($) => $.starter_prompts.first_task.prompt),+ label: t(($) => $.conversation_starters.first_task.label),+ prompt: t(($) => $.conversation_starters.first_task.prompt),},{- label: t(($) => $.starter_prompts.recommend.label),- prompt: t(($) => $.starter_prompts.recommend.prompt),+ label: t(($) => $.conversation_starters.recommend.label),+ prompt: t(($) => $.conversation_starters.recommend.prompt),},];}@@ -38,19 +38,19 @@ const ROW_CLASS =* settings preview, which must look like the real thing without offering a* second, non-functional way to "send" a prompt from a settings page.*/-export function StarterPromptList({- prompts,+export function ConversationStarterList({+ starters,onPick,className,}: {- prompts: AgentStarterPrompt[];+ starters: AgentConversationStarter[];onPick?: (prompt: string) => void;className?: string;}) {if (!onPick) {return (<div className={cn("w-full space-y-2", className)} aria-hidden="true">- {prompts.map((item, index) => (+ {starters.map((item, index) => (<div key={index} className={cn(ROW_CLASS, "truncate")}>{item.label}</div>@@ -61,7 +61,7 @@ export function StarterPromptList({return (<div className={cn("w-full space-y-2", className)}>- {prompts.map((item, index) => (+ {starters.map((item, index) => (<buttonkey={index}type="button"diff --git a/packages/views/chat/components/use-chat-controller.test.tsx b/packages/views/chat/components/use-chat-controller.test.tsxindex f2f434d454..12dbe37eeb 100644--- a/packages/views/chat/components/use-chat-controller.test.tsx+++ b/packages/views/chat/components/use-chat-controller.test.tsx@@ -126,7 +126,7 @@ 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" }),- useCustomizeStarterPromptsHref: () => null,+ 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.tsindex 509464dd95..541bc584b9 100644--- a/packages/views/chat/components/use-chat-controller.ts+++ b/packages/views/chat/components/use-chat-controller.ts@@ -16,7 +16,7 @@ import { api, dispatchReasonCode } from "@multica/core/api";import {isAgentRuntimeBound as hasAgentRuntime,useAgentPresenceDetail,- useCustomizeStarterPromptsHref,+ useCustomizeConversationStartersHref,useWorkspaceAgentAvailability,} from "@multica/core/agents";import {@@ -278,23 +278,23 @@ export function useChatController(opts?: { isActive?: boolean }) {() => setFocusInputRequest((n) => n + 1),[],);- const [starterPromptRequest, setStarterPromptRequest] = useState<{+ const [conversationStarterRequest, setConversationStarterRequest] = useState<{id: number;content: string;} | null>(null);- const nextStarterPromptRequestIdRef = useRef(0);- const prefillStarterPrompt = useCallback(+ const nextConversationStarterRequestIdRef = useRef(0);+ const prefillConversationStarter = useCallback((prompt: string) => {- setStarterPromptRequest({- id: ++nextStarterPromptRequestIdRef.current,+ setConversationStarterRequest({+ id: ++nextConversationStarterRequestIdRef.current,content: prompt,});requestInputFocus();},[requestInputFocus],);- const handleStarterPromptApplied = useCallback(- () => setStarterPromptRequest(null),+ const handleConversationStarterApplied = useCallback(+ () => setConversationStarterRequest(null),[],);@@ -374,7 +374,7 @@ export function useChatController(opts?: { isActive?: boolean }) {// "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 customizeStarterPromptsHref = useCustomizeStarterPromptsHref(+ const customizeConversationStartersHref = useCustomizeConversationStartersHref(activeAgent,wsId,);@@ -843,7 +843,7 @@ export function useChatController(opts?: { isActive?: boolean }) {isAgentAccessRevoked,isAgentRuntimeBound,activeAgent,- customizeStarterPromptsHref,+ customizeConversationStartersHref,noAgent,availability,// messages@@ -861,9 +861,9 @@ export function useChatController(opts?: { isActive?: boolean }) {handleRestoreDraftApplied,// compose-box focus nonce (bumped on new chat)focusInputRequest,- starterPromptRequest,- handleStarterPromptApplied,- prefillStarterPrompt,+ conversationStarterRequest,+ handleConversationStarterApplied,+ prefillConversationStarter,// actionshandleSend,handleStop,diff --git a/packages/views/locales/en/agents.json b/packages/views/locales/en/agents.jsonindex 93f1a61ab6..be0aa4f617 100644--- a/packages/views/locales/en/agents.json+++ b/packages/views/locales/en/agents.json@@ -444,7 +444,7 @@"upload_failed_toast": "Avatar upload failed"}},- "starter_prompts": {+ "conversation_starters": {"label": "Conversation starters","hint": "Up to three examples, shown when someone opens a new chat with this agent. Selecting one fills the composer without sending it.","add": "Add suggestion",diff --git a/packages/views/locales/en/chat.json b/packages/views/locales/en/chat.jsonindex 6dc4bbb18f..f794772645 100644--- a/packages/views/locales/en/chat.json+++ b/packages/views/locales/en/chat.json@@ -150,7 +150,7 @@"returning_subtitle": "Try asking","chat_with_named": "Chat with {{name}}"},- "starter_prompts": {+ "conversation_starters": {"aria_label": "Conversation starters","capabilities": {"label": "What can you help with?",diff --git a/packages/views/locales/ja/agents.json b/packages/views/locales/ja/agents.jsonindex 32dbb1b1b5..abda317d15 100644--- a/packages/views/locales/ja/agents.json+++ b/packages/views/locales/ja/agents.json@@ -327,7 +327,7 @@"upload_failed_toast": "アバターのアップロードに失敗しました"}},- "starter_prompts": {+ "conversation_starters": {"label": "会話の開始例","hint": "このエージェントで新しいチャットを開いたときに表示される例(最大3件)。選ぶと送信せずに入力欄へ入ります。","add": "候補を追加",diff --git a/packages/views/locales/ja/chat.json b/packages/views/locales/ja/chat.jsonindex 6886531eb1..af77c793c5 100644--- a/packages/views/locales/ja/chat.json+++ b/packages/views/locales/ja/chat.json@@ -146,7 +146,7 @@"returning_subtitle": "こう聞いてみましょう","chat_with_named": "{{name}} とチャット"},- "starter_prompts": {+ "conversation_starters": {"aria_label": "会話の開始例","capabilities": {"label": "何を手伝えますか?",diff --git a/packages/views/locales/ko/agents.json b/packages/views/locales/ko/agents.jsonindex 98f69a181c..637dfebdcf 100644--- a/packages/views/locales/ko/agents.json+++ b/packages/views/locales/ko/agents.json@@ -335,7 +335,7 @@"upload_failed_toast": "아바타 업로드 실패"}},- "starter_prompts": {+ "conversation_starters": {"label": "대화 시작 예시","hint": "이 에이전트로 새 채팅을 열 때 표시되는 예시입니다(최대 3개). 선택하면 전송하지 않고 입력창에 채웁니다.","add": "추천 추가",diff --git a/packages/views/locales/ko/chat.json b/packages/views/locales/ko/chat.jsonindex 50bc716f57..fa51393d92 100644--- a/packages/views/locales/ko/chat.json+++ b/packages/views/locales/ko/chat.json@@ -146,7 +146,7 @@"returning_subtitle": "이렇게 요청해 보세요","chat_with_named": "{{name}}와 채팅"},- "starter_prompts": {+ "conversation_starters": {"aria_label": "대화 시작 예시","capabilities": {"label": "어떤 일을 도와줄 수 있나요?",diff --git a/packages/views/locales/zh-Hans/agents.json b/packages/views/locales/zh-Hans/agents.jsonindex dc26e54a40..cb060619e4 100644--- a/packages/views/locales/zh-Hans/agents.json+++ b/packages/views/locales/zh-Hans/agents.json@@ -434,7 +434,7 @@"upload_failed_toast": "头像上传失败"}},- "starter_prompts": {+ "conversation_starters": {"label": "对话开场建议","hint": "最多三条示例,出现在别人与该智能体开始新对话时。选择后只会填入输入框,不会立即发送。","add": "添加建议",diff --git a/packages/views/locales/zh-Hans/chat.json b/packages/views/locales/zh-Hans/chat.jsonindex a6b87e0061..a3cc58ddfa 100644--- a/packages/views/locales/zh-Hans/chat.json+++ b/packages/views/locales/zh-Hans/chat.json@@ -146,7 +146,7 @@"returning_subtitle": "试试问","chat_with_named": "与 {{name}} 对话"},- "starter_prompts": {+ "conversation_starters": {"aria_label": "对话开场建议","capabilities": {"label": "你能帮我做什么?",diff --git a/server/cmd/multica/cmd_agent_copy.go b/server/cmd/multica/cmd_agent_copy.goindex d5623267a5..eca30c5e81 100644--- a/server/cmd/multica/cmd_agent_copy.go+++ b/server/cmd/multica/cmd_agent_copy.go@@ -28,7 +28,7 @@ var agentCopyCmd = &cobra.Command{The source agent is left untouched. By default the copy lands on the sameruntime as the source; pass --runtime-id to fork it onto a different runtime.-Copied by default without a dedicated override flag: starter prompts.+Copied by default without a dedicated override flag: conversation starters.Copied by default, each overridable with the matching flag: name (suffixed" (copy)"), description, instructions, avatar, custom_args, max_concurrent_tasks,@@ -152,8 +152,8 @@ func runAgentCopy(cmd *cobra.Command, args []string) error {v, _ := cmd.Flags().GetString("instructions")body["instructions"] = v}- if starterPrompts, ok := src["starter_prompts"].([]any); ok {- body["starter_prompts"] = starterPrompts+ if conversationStarters, ok := src["conversation_starters"].([]any); ok {+ body["conversation_starters"] = conversationStarters}// Avatar reference travels with the copy (both agents point at the samediff --git a/server/cmd/multica/cmd_agent_copy_test.go b/server/cmd/multica/cmd_agent_copy_test.goindex e36a1e7846..209981b300 100644--- a/server/cmd/multica/cmd_agent_copy_test.go+++ b/server/cmd/multica/cmd_agent_copy_test.go@@ -31,7 +31,7 @@ func fullSourceAgent() map[string]any {"runtime_id": "runtime-1","description": "a description","instructions": "some instructions",- "starter_prompts": []any{+ "conversation_starters": []any{map[string]any{"label": "Review a PR", "prompt": "Review the open pull request."},},"avatar_url": "https://img.example/a.png",@@ -113,10 +113,10 @@ func TestAgentCopySameRuntimeCopiesPortableFields(t *testing.T) {if gotBody["instructions"] != "some instructions" {t.Errorf("instructions = %v", gotBody["instructions"])}- if !reflect.DeepEqual(gotBody["starter_prompts"], []any{+ if !reflect.DeepEqual(gotBody["conversation_starters"], []any{map[string]any{"label": "Review a PR", "prompt": "Review the open pull request."},}) {- t.Errorf("starter_prompts = %v", gotBody["starter_prompts"])+ t.Errorf("conversation_starters = %v", gotBody["conversation_starters"])}if gotBody["avatar_url"] != "https://img.example/a.png" {t.Errorf("avatar_url = %v", gotBody["avatar_url"])diff --git a/server/internal/handler/agent.go b/server/internal/handler/agent.goindex f09f425b62..5cadc877c2 100644--- a/server/internal/handler/agent.go+++ b/server/internal/handler/agent.go@@ -36,12 +36,12 @@ import (const maxAgentDescriptionLength = 255const (- maxAgentStarterPrompts = 3- maxAgentStarterPromptLabel = 80- maxAgentStarterPromptLength = 4000+ maxAgentConversationStarters = 3+ maxAgentConversationStarterLabel = 80+ maxAgentConversationStarterLength = 4000)-type AgentStarterPrompt struct {+type AgentConversationStarter struct {Label string `json:"label"`Prompt string `json:"prompt"`}@@ -65,9 +65,9 @@ type AgentResponse struct {// holds only the workspace's own notes — the product half lives in// SystemInstructions and is never stored on the row.Instructions string `json:"instructions"`- // StarterPrompts are optional, agent-specific first-turn suggestions. An+ // ConversationStarters are optional, agent-specific first-turn suggestions. An// empty list tells clients to render their localized fallback prompts.- StarterPrompts []AgentStarterPrompt `json:"starter_prompts"`+ ConversationStarters []AgentConversationStarter `json:"conversation_starters"`// SystemKey identifies a product-defined agent (e.g. "mika"). Empty for// every user- or template-created agent. The UI keys "this is maintained// by Multica" off this rather than off the display name, which owners may@@ -181,11 +181,11 @@ func (h *Handler) agentToResponse(a db.Agent) AgentResponse {mcpConfig = json.RawMessage(a.McpConfig)}- starterPrompts := []AgentStarterPrompt{}- if len(a.StarterPrompts) > 0 {- if err := json.Unmarshal(a.StarterPrompts, &starterPrompts); err != nil {- slog.Warn("failed to unmarshal agent starter_prompts", "agent_id", uuidToString(a.ID), "error", err)- starterPrompts = []AgentStarterPrompt{}+ conversationStarters := []AgentConversationStarter{}+ if len(a.ConversationStarters) > 0 {+ if err := json.Unmarshal(a.ConversationStarters, &conversationStarters); err != nil {+ slog.Warn("failed to unmarshal agent conversation_starters", "agent_id", uuidToString(a.ID), "error", err)+ conversationStarters = []AgentConversationStarter{}}}@@ -206,7 +206,7 @@ func (h *Handler) agentToResponse(a db.Agent) AgentResponse {Name: a.Name,Description: a.Description,Instructions: a.Instructions,- StarterPrompts: starterPrompts,+ ConversationStarters: conversationStarters,SystemKey: a.SystemKey.String,SystemInstructions: systemInstructionsFor(a),AvatarURL: h.resolveAvatarURLPtr(textToPtr(a.AvatarUrl)),@@ -1137,17 +1137,17 @@ func (h *Handler) GetAgent(w http.ResponseWriter, r *http.Request) {}type CreateAgentRequest struct {- Name string `json:"name"`- Description string `json:"description"`- Instructions string `json:"instructions"`- StarterPrompts []AgentStarterPrompt `json:"starter_prompts"`- AvatarURL *string `json:"avatar_url"`- RuntimeID string `json:"runtime_id"`- RuntimeConfig any `json:"runtime_config"`- CustomEnv map[string]string `json:"custom_env"`- CustomArgs []string `json:"custom_args"`- McpConfig json.RawMessage `json:"mcp_config"`- Visibility string `json:"visibility"`+ Name string `json:"name"`+ Description string `json:"description"`+ Instructions string `json:"instructions"`+ ConversationStarters []AgentConversationStarter `json:"conversation_starters"`+ AvatarURL *string `json:"avatar_url"`+ RuntimeID string `json:"runtime_id"`+ RuntimeConfig any `json:"runtime_config"`+ CustomEnv map[string]string `json:"custom_env"`+ CustomArgs []string `json:"custom_args"`+ McpConfig json.RawMessage `json:"mcp_config"`+ Visibility string `json:"visibility"`// PermissionMode + InvocationTargets are the new invocation-permission// inputs (MUL-3963). When permission_mode is present it is authoritative// and Visibility is ignored; when absent, legacy Visibility is mapped@@ -1196,26 +1196,26 @@ func decodeJSONBodyWithRawFields(body io.Reader, dst any) (map[string]json.RawMereturn raw, nil}-func normaliseAgentStarterPrompts(prompts []AgentStarterPrompt) ([]AgentStarterPrompt, error) {- if len(prompts) > maxAgentStarterPrompts {- return nil, fmt.Errorf("starter_prompts must contain at most %d items", maxAgentStarterPrompts)+func normaliseAgentConversationStarters(starters []AgentConversationStarter) ([]AgentConversationStarter, error) {+ if len(starters) > maxAgentConversationStarters {+ return nil, fmt.Errorf("conversation_starters must contain at most %d items", maxAgentConversationStarters)}- normalised := make([]AgentStarterPrompt, 0, len(prompts))- for i, item := range prompts {+ normalised := make([]AgentConversationStarter, 0, len(starters))+ for i, item := range starters {item.Label = strings.TrimSpace(item.Label)item.Prompt = strings.TrimSpace(item.Prompt)if item.Label == "" {- return nil, fmt.Errorf("starter_prompts[%d].label is required", i)+ return nil, fmt.Errorf("conversation_starters[%d].label is required", i)}if item.Prompt == "" {- return nil, fmt.Errorf("starter_prompts[%d].prompt is required", i)+ return nil, fmt.Errorf("conversation_starters[%d].prompt is required", i)}- if utf8.RuneCountInString(item.Label) > maxAgentStarterPromptLabel {- return nil, fmt.Errorf("starter_prompts[%d].label must be %d characters or fewer", i, maxAgentStarterPromptLabel)+ if utf8.RuneCountInString(item.Label) > maxAgentConversationStarterLabel {+ return nil, fmt.Errorf("conversation_starters[%d].label must be %d characters or fewer", i, maxAgentConversationStarterLabel)}- if utf8.RuneCountInString(item.Prompt) > maxAgentStarterPromptLength {- return nil, fmt.Errorf("starter_prompts[%d].prompt must be %d characters or fewer", i, maxAgentStarterPromptLength)+ if utf8.RuneCountInString(item.Prompt) > maxAgentConversationStarterLength {+ return nil, fmt.Errorf("conversation_starters[%d].prompt must be %d characters or fewer", i, maxAgentConversationStarterLength)}normalised = append(normalised, item)}@@ -1249,7 +1249,7 @@ func (h *Handler) CreateAgent(w http.ResponseWriter, r *http.Request) {writeError(w, http.StatusBadRequest, "runtime_id is required")return}- starterPrompts, err := normaliseAgentStarterPrompts(req.StarterPrompts)+ conversationStarters, err := normaliseAgentConversationStarters(req.ConversationStarters)if err != nil {writeError(w, http.StatusBadRequest, err.Error())return@@ -1356,7 +1356,7 @@ func (h *Handler) CreateAgent(w http.ResponseWriter, r *http.Request) {ca = []byte("[]")}- sp, _ := json.Marshal(starterPrompts)+ sp, _ := json.Marshal(conversationStarters)var mc []byteif rawMcpConfig, ok := rawFields["mcp_config"]; ok && !bytes.Equal(bytes.TrimSpace(rawMcpConfig), []byte("null")) {@@ -1420,7 +1420,7 @@ func (h *Handler) CreateAgent(w http.ResponseWriter, r *http.Request) {Model: pgtype.Text{String: req.Model, Valid: req.Model != ""},ThinkingLevel: pgtype.Text{String: req.ThinkingLevel, Valid: req.ThinkingLevel != ""},ServiceTier: pgtype.Text{String: req.ServiceTier, Valid: req.ServiceTier != ""},- StarterPrompts: sp,+ ConversationStarters: sp,ComposioToolkitAllowlist: allowlist,})if err != nil {@@ -1487,13 +1487,13 @@ func (h *Handler) CreateAgent(w http.ResponseWriter, r *http.Request) {}type UpdateAgentRequest struct {- Name *string `json:"name"`- Description *string `json:"description"`- Instructions *string `json:"instructions"`- StarterPrompts *[]AgentStarterPrompt `json:"starter_prompts"`- AvatarURL *string `json:"avatar_url"`- RuntimeID *string `json:"runtime_id"`- RuntimeConfig any `json:"runtime_config"`+ Name *string `json:"name"`+ Description *string `json:"description"`+ Instructions *string `json:"instructions"`+ ConversationStarters *[]AgentConversationStarter `json:"conversation_starters"`+ AvatarURL *string `json:"avatar_url"`+ RuntimeID *string `json:"runtime_id"`+ RuntimeConfig any `json:"runtime_config"`// custom_env is intentionally NOT updatable through this endpoint.// Use `PUT /api/agents/{id}/env` for env changes — that path admits// the agent owner or a workspace owner/admin, denies agent actors,@@ -1758,14 +1758,14 @@ func (h *Handler) UpdateAgent(w http.ResponseWriter, r *http.Request) {if req.Instructions != nil {params.Instructions = pgtype.Text{String: *req.Instructions, Valid: true}}- if req.StarterPrompts != nil {- starterPrompts, err := normaliseAgentStarterPrompts(*req.StarterPrompts)+ if req.ConversationStarters != nil {+ conversationStarters, err := normaliseAgentConversationStarters(*req.ConversationStarters)if err != nil {writeError(w, http.StatusBadRequest, err.Error())return}- encoded, _ := json.Marshal(starterPrompts)- params.StarterPrompts = encoded+ encoded, _ := json.Marshal(conversationStarters)+ params.ConversationStarters = encoded}if req.AvatarURL != nil {avatarURL, ok := h.acceptAvatarURL(w, r, *req.AvatarURL, existing.AvatarUrl.String)diff --git a/server/internal/handler/agent_builder.go b/server/internal/handler/agent_builder.goindex 3547df3f33..7f4ba0227b 100644--- a/server/internal/handler/agent_builder.go+++ b/server/internal/handler/agent_builder.go@@ -21,7 +21,7 @@ const agentBuilderInstructions = `You are Multica Agent Builder. Help the user dYour job is to propose and refine configuration, never to create resources yourself. Ask only questions that materially change behavior. Prefer making a reasonable draft immediately, then ask at most two focused questions per turn.Every response MUST end with exactly one <agent_draft> JSON block using this shape:-<agent_draft>{"name":"","description":"","instructions":"","starter_prompts":[],"model":"","skill_ids":[],"permission_scope":"private","member_ids":[]}</agent_draft>+<agent_draft>{"name":"","description":"","instructions":"","conversation_starters":[],"model":"","skill_ids":[],"permission_scope":"private","member_ids":[]}</agent_draft>Rules:- The JSON must be valid, compact JSON on one physical line. Do not wrap it in Markdown fences.@@ -30,7 +30,7 @@ Rules:- name is concise and suitable for a workspace list.- description is one sentence, at most 200 characters.- instructions are a complete Markdown system prompt describing role, workflow, output, and constraints.-- starter_prompts contains up to three objects with a concise label and a complete prompt. Each should demonstrate a useful first task for this specific agent; never include generic filler.+- conversation_starters contains up to three objects with a concise label and a complete prompt. Each should demonstrate a useful first task for this specific agent; never include generic filler.- model must be empty, preserve current_draft.model, or exactly match an id explicitly listed in AVAILABLE RUNTIME MODELS. Never use a model label as the id.- When AVAILABLE RUNTIME MODELS is null or empty, preserve current_draft.model and never invent a model id.- skill_ids may only contain IDs explicitly listed in AVAILABLE WORKSPACE SKILLS.diff --git a/server/internal/handler/agent_starter_prompts_test.go b/server/internal/handler/agent_conversation_starters_test.gosimilarity index 50%rename from server/internal/handler/agent_starter_prompts_test.gorename to server/internal/handler/agent_conversation_starters_test.goindex 0b2fea2c47..d4175e93df 100644--- a/server/internal/handler/agent_starter_prompts_test.go+++ b/server/internal/handler/agent_conversation_starters_test.go@@ -10,22 +10,22 @@ import ("github.com/multica-ai/multica/server/internal/testutil")-func TestNormaliseAgentStarterPrompts(t *testing.T) {+func TestNormaliseAgentConversationStarters(t *testing.T) {t.Run("trims complete prompts", func(t *testing.T) {- got, err := normaliseAgentStarterPrompts([]AgentStarterPrompt{{+ got, err := normaliseAgentConversationStarters([]AgentConversationStarter{{Label: " Review a PR ",Prompt: " Review the open pull request. ",}})if err != nil {- t.Fatalf("normaliseAgentStarterPrompts() error = %v", err)+ t.Fatalf("normaliseAgentConversationStarters() error = %v", err)}- want := []AgentStarterPrompt{{Label: "Review a PR", Prompt: "Review the open pull request."}}+ want := []AgentConversationStarter{{Label: "Review a PR", Prompt: "Review the open pull request."}}if len(got) != 1 || got[0] != want[0] {- t.Fatalf("normaliseAgentStarterPrompts() = %#v, want %#v", got, want)+ t.Fatalf("normaliseAgentConversationStarters() = %#v, want %#v", got, want)}})- for name, prompts := range map[string][]AgentStarterPrompt{+ for name, prompts := range map[string][]AgentConversationStarter{"too many": {{Label: "One", Prompt: "One"},{Label: "Two", Prompt: "Two"},@@ -34,59 +34,59 @@ func TestNormaliseAgentStarterPrompts(t *testing.T) {},"blank label": {{Label: " ", Prompt: "Prompt"}},"blank prompt": {{Label: "Label", Prompt: " "}},- "long label": {{Label: strings.Repeat("a", maxAgentStarterPromptLabel+1), Prompt: "Prompt"}},- "long prompt": {{Label: "Label", Prompt: strings.Repeat("a", maxAgentStarterPromptLength+1)}},+ "long label": {{Label: strings.Repeat("a", maxAgentConversationStarterLabel+1), Prompt: "Prompt"}},+ "long prompt": {{Label: "Label", Prompt: strings.Repeat("a", maxAgentConversationStarterLength+1)}},} {t.Run(name, func(t *testing.T) {- if _, err := normaliseAgentStarterPrompts(prompts); err == nil {- t.Fatal("normaliseAgentStarterPrompts() error = nil, want validation error")+ if _, err := normaliseAgentConversationStarters(prompts); err == nil {+ t.Fatal("normaliseAgentConversationStarters() error = nil, want validation error")}})}}-func TestAgentStarterPromptsRoundTrip(t *testing.T) {+func TestAgentConversationStartersRoundTrip(t *testing.T) {if testHandler == nil || testPool == nil {t.Skip("database not available")}var created AgentResponsetestutil.Call(t, testHandler.CreateAgent, newRequest(http.MethodPost, "/api/agents", map[string]any{- "name": fmt.Sprintf("starter-prompts-%d", time.Now().UnixNano()),+ "name": fmt.Sprintf("conversation-starters-%d", time.Now().UnixNano()),"runtime_id": handlerTestRuntimeID(t),- "starter_prompts": []map[string]string{{+ "conversation_starters": []map[string]string{{"label": " Review a PR ","prompt": " Review the most relevant open pull request. ",}},})).Want(http.StatusCreated).JSON(&created)dbfx.Cleanup(t, `DELETE FROM agent WHERE id = $1`, created.ID)- if len(created.StarterPrompts) != 1 ||- created.StarterPrompts[0].Label != "Review a PR" ||- created.StarterPrompts[0].Prompt != "Review the most relevant open pull request." {- t.Fatalf("created starter_prompts = %#v", created.StarterPrompts)+ if len(created.ConversationStarters) != 1 ||+ created.ConversationStarters[0].Label != "Review a PR" ||+ created.ConversationStarters[0].Prompt != "Review the most relevant open pull request." {+ t.Fatalf("created conversation_starters = %#v", created.ConversationStarters)}var preserved AgentResponsetestutil.Call(t, testHandler.UpdateAgent, withURLParam(newRequest(http.MethodPut, "/api/agents/"+created.ID, map[string]any{- "description": "starter prompts unchanged",+ "description": "conversation starters unchanged",}),"id",created.ID,)).Want(http.StatusOK).JSON(&preserved)- if len(preserved.StarterPrompts) != 1 {- t.Fatalf("omitted update starter_prompts = %#v, want preserved prompt", preserved.StarterPrompts)+ if len(preserved.ConversationStarters) != 1 {+ t.Fatalf("omitted update conversation_starters = %#v, want preserved prompt", preserved.ConversationStarters)}var clearedAgent AgentResponsetestutil.Call(t, testHandler.UpdateAgent, withURLParam(newRequest(http.MethodPut, "/api/agents/"+created.ID, map[string]any{- "starter_prompts": []AgentStarterPrompt{},+ "conversation_starters": []AgentConversationStarter{},}),"id",created.ID,)).Want(http.StatusOK).JSON(&clearedAgent)- if len(clearedAgent.StarterPrompts) != 0 {- t.Fatalf("cleared starter_prompts = %#v, want empty", clearedAgent.StarterPrompts)+ if len(clearedAgent.ConversationStarters) != 0 {+ t.Fatalf("cleared conversation_starters = %#v, want empty", clearedAgent.ConversationStarters)}}diff --git a/server/internal/handler/config.go b/server/internal/handler/config.goindex e6e5feb7e2..b5b210b5c8 100644--- a/server/internal/handler/config.go+++ b/server/internal/handler/config.go@@ -75,11 +75,11 @@ type AppConfig struct {// them, and only one of the two guesses is safe.LocalWorktreeSupported bool `json:"local_worktree_supported"`- // AgentStarterPromptsSupported tells independently deployed clients that- // agent create/update persists starter_prompts. Older handlers ignored the- // unknown JSON field and still returned success, so clients must fail closed- // when this declaration is absent.- AgentStarterPromptsSupported bool `json:"agent_starter_prompts_supported"`+ // AgentConversationStartersSupported tells independently deployed clients+ // that agent create/update persists conversation_starters. Older handlers+ // ignored the unknown JSON field and still returned success, so clients+ // must fail closed when this declaration is absent.+ AgentConversationStartersSupported bool `json:"agent_conversation_starters_supported"`// ServerVersion is the running API build version, so self-hosted// operators can confirm what's deployed and include it in bug reports.@@ -97,11 +97,11 @@ func (h *Handler) GetConfig(w http.ResponseWriter, r *http.Request) {config := AppConfig{// A property of this build, not of the deployment: if this code is// running, the save gate is running with it.- LocalWorktreeSupported: true,- AgentStarterPromptsSupported: true,- AllowSignup: os.Getenv("ALLOW_SIGNUP") != "false",- GoogleClientID: os.Getenv("GOOGLE_CLIENT_ID"),- WorkspaceCreationDisabled: os.Getenv("DISABLE_WORKSPACE_CREATION") == "true",+ LocalWorktreeSupported: true,+ AgentConversationStartersSupported: true,+ AllowSignup: os.Getenv("ALLOW_SIGNUP") != "false",+ GoogleClientID: os.Getenv("GOOGLE_CLIENT_ID"),+ WorkspaceCreationDisabled: os.Getenv("DISABLE_WORKSPACE_CREATION") == "true",}if h.Storage != nil {config.CdnDomain = h.Storage.CdnDomain()diff --git a/server/internal/handler/config_test.go b/server/internal/handler/config_test.goindex c4efc65e43..85c7c57cfb 100644--- a/server/internal/handler/config_test.go+++ b/server/internal/handler/config_test.go@@ -522,10 +522,10 @@ func TestGetConfigDeclaresLocalWorktreeSupport(t *testing.T) {}// Web/Desktop can run ahead of a manually deployed backend. Handlers that-// predate starter_prompts ignore the unknown JSON field and still answer 200,+// predate conversation_starters ignore the unknown JSON field and still answer 200,// so clients must see an explicit declaration before sending either create or// update writes that contain it.-func TestGetConfigDeclaresAgentStarterPromptsSupport(t *testing.T) {+func TestGetConfigDeclaresAgentConversationStartersSupport(t *testing.T) {req := httptest.NewRequest(http.MethodGet, "/api/config", nil)w := httptest.NewRecorder()testHandler.GetConfig(w, req)@@ -536,14 +536,14 @@ func TestGetConfigDeclaresAgentStarterPromptsSupport(t *testing.T) {if err := json.Unmarshal(w.Body.Bytes(), &cfg); err != nil {t.Fatalf("decode config: %v", err)}- if !cfg.AgentStarterPromptsSupported {- t.Fatal("this build persists starter_prompts but does not advertise the contract")+ if !cfg.AgentConversationStartersSupported {+ t.Fatal("this build persists conversation_starters but does not advertise the contract")}var raw map[string]anyif err := json.Unmarshal(w.Body.Bytes(), &raw); err != nil {t.Fatalf("decode raw config: %v", err)}- if _, ok := raw["agent_starter_prompts_supported"]; !ok {- t.Fatal("agent_starter_prompts_supported missing from the JSON body")+ if _, ok := raw["agent_conversation_starters_supported"]; !ok {+ t.Fatal("agent_conversation_starters_supported missing from the JSON body")}}diff --git a/server/internal/service/builtin_skills/multica-creating-agents/SKILL.md b/server/internal/service/builtin_skills/multica-creating-agents/SKILL.mdindex 97a0b29457..080993cdb4 100644--- a/server/internal/service/builtin_skills/multica-creating-agents/SKILL.md+++ b/server/internal/service/builtin_skills/multica-creating-agents/SKILL.md@@ -71,10 +71,16 @@ strings. `--max-concurrent-tasks` is validated as 1–50 before the request issent.The HTTP body (`CreateAgentRequest`) accepts: `name`, `description`,-`instructions`, `starter_prompts`, `avatar_url`, `runtime_id`, `runtime_config`, `custom_env`,+`instructions`, `conversation_starters`, `avatar_url`, `runtime_id`, `runtime_config`, `custom_env`,`custom_args`, `model`, `thinking_level`, `service_tier`, `visibility`,`max_concurrent_tasks`, `mcp_config`, `skill_ids`.+The body accepts more than the CLI exposes. `conversation_starters` has no+`agent create` / `agent update` flag — the CLI can only carry it across an+`agent copy`. Setting it for a new agent means either calling `/api/agents`+directly or telling the human to use the web UI; see below for where they+will find it.+## Copying an agent`multica agent copy <source-agent-id>` forks an existing agent's portable@@ -90,7 +96,7 @@ multica agent copy <source-agent-id> --name "My Agent (copy)" # same runtimemultica agent copy <source-agent-id> --runtime-id <target> --model <model> # cross-runtime fork```-- Copied by default without a dedicated override flag: `starter_prompts`.+- Copied by default without a dedicated override flag: `conversation_starters`.- Copied by default, each overridable with the matching flag: `name` (suffixed`" (copy)"`), `description`, `instructions`, avatar, `custom_args`,`max_concurrent_tasks`, invocation permission (`permission_mode` +@@ -117,7 +123,7 @@ multica agent copy <source-agent-id> --runtime-id <target> --model <model> # cr| `name` | `agent.name` | required, 400 if empty | listings, runtime payload || `description` | `agent.description` | 400 if > 255 code points | catalog/listing only — NOT the runtime prompt || `instructions` | `agent.instructions` | none | daemon → provider at claim time |-| `starter_prompts` | `agent.starter_prompts` (JSON array) | at most 3 items; each requires a label (≤80 code points) and prompt (≤4000 code points) | human-facing Chat empty state only; selecting one prefills the composer and does not start a run |+| `conversation_starters` | `agent.conversation_starters` (JSON array) | at most 3 items; each requires a label (≤80 code points) and prompt (≤4000 code points) | human-facing Chat empty state only; selecting one prefills the composer and does not start a run || `avatar_url` | `agent.avatar_url` | none; an explicit non-empty value is preserved, while omitted/empty creates a random `emoji:<glyph>` avatar | catalog/listing UI only — NOT the runtime prompt || `runtime_id` | `agent.runtime_id` (nullable) | required at create (400) + must resolve to a runtime in this workspace | selects runtime/provider; `NULL` means unbound — see below || `model` | `agent.model` (nullable) | none beyond runtime support | daemon reads; empty = runtime default |@@ -172,6 +178,22 @@ future Codex catalog IDs, while the daemon verifies the exact model/tier pairbefore execution and omits a stale incompatible override. Agents without anexplicit model fail closed because the effective config.toml model is unknown.+### conversation_starters++The product calls this feature **Conversation starters** (中文:对话开场建议).+Use that name when talking to a human — the wire field `conversation_starters`+is an implementation detail they never see. A human configures them on the+agent's **Instructions** tab; the deep link is+`/<workspace>/agents/<id>?view=instructions&focus=conversation_starters`.++They are up to three label + prompt pairs shown above the composer when+someone opens a new Chat with this agent. Selecting one **only fills the+composer** — it never starts a run, so they are suggestions, not actions.+Omitting the field on create defaults to `[]`; omitting it on update preserves+the stored value, and an explicit `[]` clears it. An agent with none+configured still shows three built-in generic defaults in that empty state, so+"the Chat shows suggestions" does not mean this agent has any of its own.+### model vs custom_args`model` is a first-class persisted column the daemon reads directly.@@ -337,6 +359,9 @@ State-changing (require an explicit instruction — do not run speculatively):clear; only `custom_env` is gated behind the dedicated env endpoint.- "`agent get` shows env values." It shows only `has_custom_env` and`custom_env_key_count`.+- "Every accepted body field has a CLI flag." `conversation_starters` does not+ — `agent create`/`agent update` cannot set it, and `agent copy` only carries+ an existing value forward.- "An invalid `thinking_level`/`model` combo is caught at create." Only anunknown provider-level literal is — model-specific gaps fail at run time.- "`set` and `add` are interchangeable for skills." `set` replaces alldiff --git a/server/internal/service/builtin_skills/multica-creating-agents/references/creating-agents-source-map.md b/server/internal/service/builtin_skills/multica-creating-agents/references/creating-agents-source-map.mdindex fa1d7bfaac..591d49062d 100644--- a/server/internal/service/builtin_skills/multica-creating-agents/references/creating-agents-source-map.md+++ b/server/internal/service/builtin_skills/multica-creating-agents/references/creating-agents-source-map.md@@ -40,7 +40,7 @@ go test ./internal/service -run TestBuiltinSkillsConformToTemplate|---|---|---|---|| `agentCopyCmd` (`copy <source-agent-id>`) + flag registrar | 21, 47, 54 | Own file with its own `init()` so `cmd_agent.go` line refs stay stable; `registerAgentCopyFlags` is shared with the tests | `multica agent copy --help` || Reads source via `GET /api/agents/<id>` | 95 | Composes over existing endpoints — no dedicated copy API | read `runAgentCopy` |-| Starter prompts copied without an override flag | `runAgentCopy` starter-prompt body assembly | Copies `starter_prompts` when the source response contains an array; `registerAgentCopyFlags` intentionally exposes no starter-prompt override | `multica agent copy --help` |+| Conversation starters copied without an override flag | `runAgentCopy` conversation-starter body assembly | Copies `conversation_starters` when the source response contains an array; `registerAgentCopyFlags` intentionally exposes no conversation-starter override | `multica agent copy --help` || Same-runtime vs cross-runtime rule | 114, 187 | `sameRuntime` copies `model`/`thinking_level`/`service_tier`; a different `--runtime-id` drops them and requires `--model` (empty allowed) | `multica agent copy --help` || Concurrency copy compatibility | `runAgentCopy`, `copiedAgentMaxConcurrentTasks` | Explicit `--max-concurrent-tasks` is validated before any request; valid source values are copied, while historical values outside 1–50 are omitted so create defaults to 6 | read the concurrency body assembly || Skills copied in the create transaction | 239 | Source skill ids sent as `skill_ids`, bound in the same `POST /api/agents` tx (267); `--no-skills` opts out | read `runAgentCopy` |@@ -53,7 +53,7 @@ go test ./internal/service -run TestBuiltinSkillsConformToTemplate| `maxAgentDescriptionLength = 255` | 31 | Cap is 255 **Unicode code points** (comment: counted via `utf8.RuneCountInString`, matches Postgres `char_length`) || `AgentResponse` omits plaintext `custom_env` | 33–53 | Exposes only `has_custom_env` (52) and `custom_env_key_count` (53); comment cites MUL-2600 || `CreateAgentRequest` fields | 930–970 | Includes `model`, `thinking_level`, and Codex `service_tier` alongside the profile/runtime/permission inputs |-| Starter-prompt request and validation | `AgentStarterPrompt`, `normaliseAgentStarterPrompts`, create/update paths | `starter_prompts` is trimmed and validated as at most three complete label/prompt pairs before JSONB persistence; omission defaults to `[]`, update omission preserves, and `[]` clears |+| Conversation-starter request and validation | `AgentConversationStarter`, `normaliseAgentConversationStarters`, create/update paths | `conversation_starters` is trimmed and validated as at most three complete label/prompt pairs before JSONB persistence; omission defaults to `[]`, update omission preserves, and `[]` clears || `name` required | 623–625 | 400 "name is required" || `description` ≤ 255 code points | 627–629 | `utf8.RuneCountInString(req.Description) > maxAgentDescriptionLength` → 400 || `runtime_id` required | 631–633 | `if req.RuntimeID == ""` → 400 "runtime_id is required" |@@ -72,7 +72,7 @@ go test ./internal/service -run TestBuiltinSkillsConformToTemplate| Workspace MCP library + assignment API | `internal/handler/workspace_mcp_api.go` | `GET /api/workspaces/{id}/mcp-servers` returns name / transport only, never the entry, for any role; `POST`/`PUT`/`DELETE` on the library are owner/admin; `GET`/`POST`/`PUT .../enabled`/`DELETE /api/agents/{id}/mcp-servers` manage one agent's assignments and admit the agent owner or a workspace owner/admin. Every write refuses agent actors. Deleting a library entry sweeps its bindings in the same transaction (no FK) || Effective-set regression guard | `internal/daemon/runtime_mcp_workspace_test.go` | Runs resolve -> `mergeRuntimeAndAgentMcpConfig` for OpenCode; catches a resolver that emits a container the daemon merge would not read || Random emoji avatar default | `agent_avatar.go` 11–32; `agent.go` 1127–1133 | Omitted, empty, or whitespace-only `avatar_url` becomes a cryptographically selected `emoji:<glyph>` sentinel; explicit values are preserved. |-| `CreateAgent` insert params | `agent.go` create path | Persists avatar_url, runtime_config, instructions, starter_prompts, custom_env, custom_args, model, thinking_level, service_tier, mcp_config, visibility, max_concurrent_tasks |+| `CreateAgent` insert params | `agent.go` create path | Persists avatar_url, runtime_config, instructions, conversation_starters, custom_env, custom_args, model, thinking_level, service_tier, mcp_config, visibility, max_concurrent_tasks || `UpdateAgent` rejects `custom_env` | 910–913 | if `custom_env` present in body → 400 "use PUT /api/agents/{id}/env (or `multica agent env set`)" || `UpdateAgent` persists / clears `mcp_config` | 944–948, 1060–1061 | Tri-state from the raw body: key omitted → no change; literal `null` → `ClearAgentMcpConfig`; object → replace. No 400 like `custom_env` — `mcp_config` IS updatable here || `description` ≤ 255 on update too | 921–924 | same cap re-checked on update |@@ -142,7 +142,7 @@ go test ./internal/service -run TestBuiltinSkillsConformToTemplate| Contract | Line | Behavior ||---|---|---|-| `CreateAgent` INSERT | generated from `queries/agent.sql` | columns include `runtime_config, runtime_id, instructions, starter_prompts, custom_env, custom_args, mcp_config, model, thinking_level, service_tier` |+| `CreateAgent` INSERT | generated from `queries/agent.sql` | columns include `runtime_config, runtime_id, instructions, conversation_starters, custom_env, custom_args, mcp_config, model, thinking_level, service_tier` || `CreateAgentParams` | generated from `queries/agent.sql` | typed params include nullable `Model`, `ThinkingLevel`, and `ServiceTier` || `UpdateAgent` SET | generated from `queries/agent.sql` | COALESCE updates include model/thinking/service tier; dedicated clear queries restore each nullable override || `UpdateAgentCustomEnv` (called by the `UpdateAgentEnv` handler) | 2652 | `SET custom_env = $2` — the only write path for env values |diff --git a/server/internal/service/builtin_skills_test.go b/server/internal/service/builtin_skills_test.goindex 3b303fa140..21145d727b 100644--- a/server/internal/service/builtin_skills_test.go+++ b/server/internal/service/builtin_skills_test.go@@ -373,7 +373,7 @@ func TestCreatingAgentsSkillCoversAgentCreationContracts(t *testing.T) {"not a parameter manual","`description` is a catalog summary","`instructions` is the runtime behavior contract",- "`starter_prompts`",+ "`conversation_starters`","`avatar_url` → a random `emoji:<glyph>`","multica agent create --name <name> --runtime-id <runtime-id>","`model` is a first-class persisted column",diff --git a/server/migrations/432_agent_conversation_starters_rename.down.sql b/server/migrations/432_agent_conversation_starters_rename.down.sqlnew file mode 100644index 0000000000..ee26cace0d--- /dev/null+++ b/server/migrations/432_agent_conversation_starters_rename.down.sql@@ -0,0 +1,8 @@+-- Reverse of 432. Rename the constraint back first so the column rename lands+-- on the same names migration 404 created.+ALTER TABLE agent+ RENAME CONSTRAINT agent_conversation_starters_check+ TO agent_starter_prompts_check;++ALTER TABLE agent+ RENAME COLUMN conversation_starters TO starter_prompts;diff --git a/server/migrations/432_agent_conversation_starters_rename.up.sql b/server/migrations/432_agent_conversation_starters_rename.up.sqlnew file mode 100644index 0000000000..f55b97e76a--- /dev/null+++ b/server/migrations/432_agent_conversation_starters_rename.up.sql@@ -0,0 +1,11 @@+-- Rename the agent starter-prompts column to the product name it ships under.+-- The feature is unreleased (the column arrived in migration 404, after the+-- last release tag), so this is a pure rename with no compatibility window:+-- no deployed client reads the old name. Both statements are sent in one+-- migration query and therefore commit atomically.+ALTER TABLE agent+ RENAME COLUMN starter_prompts TO conversation_starters;++ALTER TABLE agent+ RENAME CONSTRAINT agent_starter_prompts_check+ TO agent_conversation_starters_check;diff --git a/server/pkg/db/generated/agent.sql.go b/server/pkg/db/generated/agent.sql.goindex 524b4ad974..2e4d9e68bf 100644--- a/server/pkg/db/generated/agent.sql.go+++ b/server/pkg/db/generated/agent.sql.go@@ -110,7 +110,7 @@ func (q *Queries) AcknowledgeExhaustedDelegatedFailureRecovery(ctx context.Conteconst archiveAgent = `-- name: ArchiveAgent :oneUPDATE agent SET archived_at = now(), archived_by = $2, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type ArchiveAgentParams struct {@@ -150,7 +150,7 @@ func (q *Queries) ArchiveAgent(ctx context.Context, arg ArchiveAgentParams) (Age&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -159,7 +159,7 @@ const archiveAgentsByIDs = `-- name: ArchiveAgentsByIDs :manyUPDATE agentSET archived_at = now(), archived_by = $1, updated_at = now()WHERE id = ANY($2::uuid[]) AND archived_at IS NULL-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type ArchiveAgentsByIDsParams struct {@@ -213,7 +213,7 @@ func (q *Queries) ArchiveAgentsByIDs(ctx context.Context, arg ArchiveAgentsByIDs&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -230,7 +230,7 @@ UPDATE agentSET archived_at = now(), archived_by = $1, updated_at = now()WHERE runtime_id = ANY($2::uuid[]) AND archived_at IS NULLAND (system_key IS NULL OR system_key = '')-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type ArchiveAgentsByRuntimeParams struct {@@ -287,7 +287,7 @@ func (q *Queries) ArchiveAgentsByRuntime(ctx context.Context, arg ArchiveAgentsB&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -1785,7 +1785,7 @@ func (q *Queries) ClaimChatFinalizeDeferred(ctx context.Context, id pgtype.UUID)const clearAgentComposioToolkitAllowlist = `-- name: ClearAgentComposioToolkitAllowlist :oneUPDATE agent SET composio_toolkit_allowlist = NULL, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`// Explicit NULL-clear for composio_toolkit_allowlist. The COALESCE-based@@ -1826,7 +1826,7 @@ func (q *Queries) ClearAgentComposioToolkitAllowlist(ctx context.Context, id pgt&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -1834,7 +1834,7 @@ func (q *Queries) ClearAgentComposioToolkitAllowlist(ctx context.Context, id pgtconst clearAgentMcpConfig = `-- name: ClearAgentMcpConfig :oneUPDATE agent SET mcp_config = NULL, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`func (q *Queries) ClearAgentMcpConfig(ctx context.Context, id pgtype.UUID) (Agent, error) {@@ -1869,7 +1869,7 @@ func (q *Queries) ClearAgentMcpConfig(ctx context.Context, id pgtype.UUID) (Agen&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -1877,7 +1877,7 @@ func (q *Queries) ClearAgentMcpConfig(ctx context.Context, id pgtype.UUID) (Agenconst clearAgentServiceTier = `-- name: ClearAgentServiceTier :oneUPDATE agent SET service_tier = NULL, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`// Explicit NULL-clear for service_tier. COALESCE-based UpdateAgent cannot@@ -1914,7 +1914,7 @@ func (q *Queries) ClearAgentServiceTier(ctx context.Context, id pgtype.UUID) (Ag&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -1922,7 +1922,7 @@ func (q *Queries) ClearAgentServiceTier(ctx context.Context, id pgtype.UUID) (Agconst clearAgentThinkingLevel = `-- name: ClearAgentThinkingLevel :oneUPDATE agent SET thinking_level = NULL, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`// Explicit NULL-clear for thinking_level. COALESCE-based UpdateAgent cannot@@ -1960,7 +1960,7 @@ func (q *Queries) ClearAgentThinkingLevel(ctx context.Context, id pgtype.UUID) (&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -2110,7 +2110,7 @@ INSERT INTO agent (workspace_id, name, description, avatar_url, runtime_mode,runtime_config, runtime_id, visibility, max_concurrent_tasks, owner_id,instructions, custom_env, custom_args, mcp_config, model, thinking_level,- service_tier, starter_prompts,+ service_tier, conversation_starters,composio_toolkit_allowlist, permission_mode) VALUES ($1, $2, $3, $4, $5,@@ -2120,7 +2120,7 @@ INSERT INTO agent ($19::text[],COALESCE($20, 'private'))-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type CreateAgentParams struct {@@ -2141,7 +2141,7 @@ type CreateAgentParams struct {Model pgtype.Text `json:"model"`ThinkingLevel pgtype.Text `json:"thinking_level"`ServiceTier pgtype.Text `json:"service_tier"`- StarterPrompts []byte `json:"starter_prompts"`+ ConversationStarters []byte `json:"conversation_starters"`ComposioToolkitAllowlist []string `json:"composio_toolkit_allowlist"`PermissionMode interface{} `json:"permission_mode"`}@@ -2165,7 +2165,7 @@ func (q *Queries) CreateAgent(ctx context.Context, arg CreateAgentParams) (Agentarg.Model,arg.ThinkingLevel,arg.ServiceTier,- arg.StarterPrompts,+ arg.ConversationStarters,arg.ComposioToolkitAllowlist,arg.PermissionMode,)@@ -2199,7 +2199,7 @@ func (q *Queries) CreateAgent(ctx context.Context, arg CreateAgentParams) (Agent&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -2214,7 +2214,7 @@ INSERT INTO agent ('private', 'private', 1, $5, $6,'{}'::jsonb, '[]'::jsonb, $7, 'system', $8)-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type CreateAgentBuilderParams struct {@@ -2273,7 +2273,7 @@ func (q *Queries) CreateAgentBuilder(ctx context.Context, arg CreateAgentBuilder&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -3179,7 +3179,7 @@ INSERT INTO agent ($6, $7, $8, $9, $10,$11, '', '{}'::jsonb, '[]'::jsonb, 'user', $12)-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type CreateSystemUserAgentParams struct {@@ -3254,7 +3254,7 @@ func (q *Queries) CreateSystemUserAgent(ctx context.Context, arg CreateSystemUse&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -3928,7 +3928,7 @@ func (q *Queries) FailStaleTasks(ctx context.Context, arg FailStaleTasksParams)}const getAgent = `-- name: GetAgent :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE id = $1`@@ -3964,13 +3964,13 @@ func (q *Queries) GetAgent(ctx context.Context, id pgtype.UUID) (Agent, error) {&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}const getAgentBySystemKey = `-- name: GetAgentBySystemKey :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE workspace_id = $1 AND system_key = $2 AND archived_at IS NULLORDER BY created_at ASC, id ASCLIMIT 1@@ -4016,13 +4016,13 @@ func (q *Queries) GetAgentBySystemKey(ctx context.Context, arg GetAgentBySystemK&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}const getAgentForClaimUpdate = `-- name: GetAgentForClaimUpdate :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE id = $1FOR UPDATE`@@ -4059,13 +4059,13 @@ func (q *Queries) GetAgentForClaimUpdate(ctx context.Context, id pgtype.UUID) (A&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}const getAgentForUpdate = `-- name: GetAgentForUpdate :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE id = $1FOR UPDATE`@@ -4104,13 +4104,13 @@ func (q *Queries) GetAgentForUpdate(ctx context.Context, id pgtype.UUID) (Agent,&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}const getAgentInWorkspace = `-- name: GetAgentInWorkspace :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE id = $1 AND workspace_id = $2 AND kind = 'user'`@@ -4151,7 +4151,7 @@ func (q *Queries) GetAgentInWorkspace(ctx context.Context, arg GetAgentInWorkspa&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -4990,7 +4990,7 @@ func (q *Queries) LinkTaskToIssue(ctx context.Context, arg LinkTaskToIssueParams}const listActiveAgentsByRuntime = `-- name: ListActiveAgentsByRuntime :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE runtime_id = $1 AND archived_at IS NULL AND kind = 'user'ORDER BY name ASC`@@ -5039,7 +5039,7 @@ func (q *Queries) ListActiveAgentsByRuntime(ctx context.Context, runtimeID pgtyp&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -5052,7 +5052,7 @@ func (q *Queries) ListActiveAgentsByRuntime(ctx context.Context, runtimeID pgtyp}const listActiveAgentsByRuntimeForUpdate = `-- name: ListActiveAgentsByRuntimeForUpdate :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE runtime_id = $1 AND archived_at IS NULL AND kind = 'user'ORDER BY name ASCFOR UPDATE@@ -5103,7 +5103,7 @@ func (q *Queries) ListActiveAgentsByRuntimeForUpdate(ctx context.Context, runtim&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -5361,7 +5361,7 @@ func (q *Queries) ListAgentTasks(ctx context.Context, agentID pgtype.UUID) ([]Ag}const listAgents = `-- name: ListAgents :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE workspace_id = $1 AND archived_at IS NULL AND kind = 'user'ORDER BY created_at ASC`@@ -5404,7 +5404,7 @@ func (q *Queries) ListAgents(ctx context.Context, workspaceID pgtype.UUID) ([]Ag&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -5417,7 +5417,7 @@ func (q *Queries) ListAgents(ctx context.Context, workspaceID pgtype.UUID) ([]Ag}const listAllAgents = `-- name: ListAllAgents :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE workspace_id = $1 AND kind = 'user'ORDER BY created_at ASC`@@ -5460,7 +5460,7 @@ func (q *Queries) ListAllAgents(ctx context.Context, workspaceID pgtype.UUID) ([&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -5473,7 +5473,7 @@ func (q *Queries) ListAllAgents(ctx context.Context, workspaceID pgtype.UUID) ([}const listAllAgentsAnyKind = `-- name: ListAllAgentsAnyKind :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE workspace_id = $1ORDER BY created_at ASC`@@ -5526,7 +5526,7 @@ func (q *Queries) ListAllAgentsAnyKind(ctx context.Context, workspaceID pgtype.U&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -6110,7 +6110,7 @@ func (q *Queries) ListTasksByIssue(ctx context.Context, issueID pgtype.UUID) ([]}const listUserAgentsByRuntimeForUpdate = `-- name: ListUserAgentsByRuntimeForUpdate :many-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE runtime_id = $1 AND kind = 'user'ORDER BY idFOR UPDATE@@ -6159,7 +6159,7 @@ func (q *Queries) ListUserAgentsByRuntimeForUpdate(ctx context.Context, runtimeI&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}@@ -6468,7 +6468,7 @@ func (q *Queries) ListWorkspaceWorkingAgents(ctx context.Context, arg ListWorksp}const lockAgentForAutopilotAssignment = `-- name: LockAgentForAutopilotAssignment :one-SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts FROM agent+SELECT id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters FROM agentWHERE id = $1 AND workspace_id = $2 AND kind = 'user'FOR SHARE`@@ -6519,7 +6519,7 @@ func (q *Queries) LockAgentForAutopilotAssignment(ctx context.Context, arg LockA&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -7248,7 +7248,7 @@ SET runtime_id = $1,model = $3,updated_at = now()WHERE id = $4 AND kind = 'system' AND system_key LIKE 'agent_builder:%'-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type RebindAgentBuilderRuntimeParams struct {@@ -7311,7 +7311,7 @@ func (q *Queries) RebindAgentBuilderRuntime(ctx context.Context, arg RebindAgent&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -7676,7 +7676,7 @@ SET status = desired.status,updated_at = now()FROM desiredWHERE a.id = $1 AND a.status IS DISTINCT FROM desired.status-RETURNING a.id, a.workspace_id, a.name, a.avatar_url, a.runtime_mode, a.runtime_config, a.visibility, a.status, a.max_concurrent_tasks, a.owner_id, a.created_at, a.updated_at, a.description, a.runtime_id, a.instructions, a.archived_at, a.archived_by, a.custom_env, a.custom_args, a.mcp_config, a.model, a.thinking_level, a.composio_toolkit_allowlist, a.permission_mode, a.kind, a.system_key, a.disabled_runtime_skills, a.service_tier, a.starter_prompts+RETURNING a.id, a.workspace_id, a.name, a.avatar_url, a.runtime_mode, a.runtime_config, a.visibility, a.status, a.max_concurrent_tasks, a.owner_id, a.created_at, a.updated_at, a.description, a.runtime_id, a.instructions, a.archived_at, a.archived_by, a.custom_env, a.custom_args, a.mcp_config, a.model, a.thinking_level, a.composio_toolkit_allowlist, a.permission_mode, a.kind, a.system_key, a.disabled_runtime_skills, a.service_tier, a.conversation_starters`// Persisted agent.status has no queued/resource-wait bucket. Keep dispatched@@ -7716,7 +7716,7 @@ func (q *Queries) RefreshAgentStatusFromTasks(ctx context.Context, id pgtype.UUI&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -7880,7 +7880,7 @@ func (q *Queries) RequeueAgentTaskAfterClaimFailure(ctx context.Context, arg Reqconst restoreAgent = `-- name: RestoreAgent :oneUPDATE agent SET archived_at = NULL, archived_by = NULL, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`func (q *Queries) RestoreAgent(ctx context.Context, id pgtype.UUID) (Agent, error) {@@ -7915,7 +7915,7 @@ func (q *Queries) RestoreAgent(ctx context.Context, id pgtype.UUID) (Agent, erro&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -8172,11 +8172,11 @@ UPDATE agent SETmodel = COALESCE($16, model),thinking_level = COALESCE($17, thinking_level),service_tier = COALESCE($18, service_tier),- starter_prompts = COALESCE($19, starter_prompts),+ conversation_starters = COALESCE($19, conversation_starters),composio_toolkit_allowlist = COALESCE($20::text[], composio_toolkit_allowlist),updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type UpdateAgentParams struct {@@ -8198,7 +8198,7 @@ type UpdateAgentParams struct {Model pgtype.Text `json:"model"`ThinkingLevel pgtype.Text `json:"thinking_level"`ServiceTier pgtype.Text `json:"service_tier"`- StarterPrompts []byte `json:"starter_prompts"`+ ConversationStarters []byte `json:"conversation_starters"`ComposioToolkitAllowlist []string `json:"composio_toolkit_allowlist"`}@@ -8228,7 +8228,7 @@ func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agentarg.Model,arg.ThinkingLevel,arg.ServiceTier,- arg.StarterPrompts,+ arg.ConversationStarters,arg.ComposioToolkitAllowlist,)var i Agent@@ -8261,7 +8261,7 @@ func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agent&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -8270,7 +8270,7 @@ const updateAgentCustomEnv = `-- name: UpdateAgentCustomEnv :oneUPDATE agentSET custom_env = $2, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type UpdateAgentCustomEnvParams struct {@@ -8315,7 +8315,7 @@ func (q *Queries) UpdateAgentCustomEnv(ctx context.Context, arg UpdateAgentCusto&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -8324,7 +8324,7 @@ const updateAgentDisabledRuntimeSkills = `-- name: UpdateAgentDisabledRuntimeSkiUPDATE agentSET disabled_runtime_skills = $2, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type UpdateAgentDisabledRuntimeSkillsParams struct {@@ -8364,7 +8364,7 @@ func (q *Queries) UpdateAgentDisabledRuntimeSkills(ctx context.Context, arg Upda&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}@@ -8372,7 +8372,7 @@ func (q *Queries) UpdateAgentDisabledRuntimeSkills(ctx context.Context, arg Updaconst updateAgentStatus = `-- name: UpdateAgentStatus :oneUPDATE agent SET status = $2, updated_at = now()WHERE id = $1-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`type UpdateAgentStatusParams struct {@@ -8412,7 +8412,7 @@ func (q *Queries) UpdateAgentStatus(ctx context.Context, arg UpdateAgentStatusPa&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,)return i, err}diff --git a/server/pkg/db/generated/models.go b/server/pkg/db/generated/models.goindex 570d11ff8e..acc26c9f1f 100644--- a/server/pkg/db/generated/models.go+++ b/server/pkg/db/generated/models.go@@ -52,7 +52,7 @@ type Agent struct {SystemKey pgtype.Text `json:"system_key"`DisabledRuntimeSkills []byte `json:"disabled_runtime_skills"`ServiceTier pgtype.Text `json:"service_tier"`- StarterPrompts []byte `json:"starter_prompts"`+ ConversationStarters []byte `json:"conversation_starters"`}type AgentBuilderDraft struct {diff --git a/server/pkg/db/generated/runtime.sql.go b/server/pkg/db/generated/runtime.sql.goindex 5165d9c531..218f470fa9 100644--- a/server/pkg/db/generated/runtime.sql.go+++ b/server/pkg/db/generated/runtime.sql.go@@ -1277,7 +1277,7 @@ const unbindUserAgentsFromRuntime = `-- name: UnbindUserAgentsFromRuntime :manyUPDATE agentSET runtime_id = NULL, updated_at = now()WHERE runtime_id = $1 AND kind = 'user'-RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, starter_prompts+RETURNING id, workspace_id, name, avatar_url, runtime_mode, runtime_config, visibility, status, max_concurrent_tasks, owner_id, created_at, updated_at, description, runtime_id, instructions, archived_at, archived_by, custom_env, custom_args, mcp_config, model, thinking_level, composio_toolkit_allowlist, permission_mode, kind, system_key, disabled_runtime_skills, service_tier, conversation_starters`// MUL-5559: the runtime-delete replacement for archive-then-hard-delete. Every@@ -1328,7 +1328,7 @@ func (q *Queries) UnbindUserAgentsFromRuntime(ctx context.Context, runtimeID pgt&i.SystemKey,&i.DisabledRuntimeSkills,&i.ServiceTier,- &i.StarterPrompts,+ &i.ConversationStarters,); err != nil {return nil, err}diff --git a/server/pkg/db/queries/agent.sql b/server/pkg/db/queries/agent.sqlindex 1ae3df234a..5b6befe35a 100644--- a/server/pkg/db/queries/agent.sql+++ b/server/pkg/db/queries/agent.sql@@ -57,13 +57,13 @@ INSERT INTO agent (workspace_id, name, description, avatar_url, runtime_mode,runtime_config, runtime_id, visibility, max_concurrent_tasks, owner_id,instructions, custom_env, custom_args, mcp_config, model, thinking_level,- service_tier, starter_prompts,+ service_tier, conversation_starters,composio_toolkit_allowlist, permission_mode) VALUES ($1, $2, $3, $4, $5,$6, $7, $8, $9, $10,$11, $12, $13, $14, $15, $16,- $17, COALESCE(sqlc.narg('starter_prompts')::jsonb, '[]'::jsonb),+ $17, COALESCE(sqlc.narg('conversation_starters')::jsonb, '[]'::jsonb),sqlc.narg('composio_toolkit_allowlist')::text[],COALESCE(sqlc.narg('permission_mode'), 'private'))@@ -142,7 +142,7 @@ UPDATE agent SETmodel = COALESCE(sqlc.narg('model'), model),thinking_level = COALESCE(sqlc.narg('thinking_level'), thinking_level),service_tier = COALESCE(sqlc.narg('service_tier'), service_tier),- starter_prompts = COALESCE(sqlc.narg('starter_prompts'), starter_prompts),+ conversation_starters = COALESCE(sqlc.narg('conversation_starters'), conversation_starters),composio_toolkit_allowlist = COALESCE(sqlc.narg('composio_toolkit_allowlist')::text[], composio_toolkit_allowlist),updated_at = now()WHERE id = $1