The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Setup cards name the pick, skip an empty apps or plugins list, and wait for the intro (#129383)
Siddharth Balyan59cbf85cca7d
diff --git a/apps/desktop/src/app/chat/index.tsx b/apps/desktop/src/app/chat/index.tsxindex 2b6519261da..e66dc0a96c3 100644--- a/apps/desktop/src/app/chat/index.tsx+++ b/apps/desktop/src/app/chat/index.tsx@@ -14,6 +14,7 @@ import { TranscriptWindowProvider } from '@/components/assistant-ui/thread/transimport { Backdrop } from '@/components/Backdrop'import { COMPOSER_HEART_CONFIG, HeartField } from '@/components/chat/vibe-hearts'import { useSetupChatView } from '@/components/onboarding-chat/assembly'+import { $introHoldsThread } from '@/components/onboarding-chat/intro'import { IntroCopy } from '@/components/onboarding-chat/intro-copy'import { usePaneGroup, usePaneVisible } from '@/components/pane-shell/pane-visibility'import { $hoveredTreeGroup, $sessionTileDragging, $sessionTileEdgeHover } from '@/components/pane-shell/tree/store'@@ -519,6 +520,7 @@ const ChatViewContent = memo(function ChatViewContent({const composerSurfaceId = useComposerSurfaceId()const isPrimary = view.kind === 'primary'const guideOpening = useStore($guideOpening) && isPrimary+ const introHoldsThread = useStore($introHoldsThread) && isPrimary && isMainWindow()const guideStarted = useStoreSelector($onboardingGate, gate => gate.guideKickoff === 'started')const activeSessionId = useStore(view.$runtimeId)@@ -838,6 +840,7 @@ const ChatViewContent = memo(function ChatViewContent({><divclassName="relative min-h-0 max-w-full flex-1 overflow-hidden bg-(--ui-chat-surface-background) contain-[layout_paint]"+ data-intro-holding={introHoldsThread ? '' : undefined}data-slot="composer-bounds"{...dropHandlers}>diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsxindex 96ca2a1e3c6..9f7802e1a5e 100644--- a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx@@ -17,6 +17,7 @@ import {commitSetupChoose,EMPTY_SETUP_STAGE,SETUP_CHOOSE_QID,+ setupChooseAnswer,setupChooseStage,skipClarify,stageSetupChoose@@ -76,15 +77,16 @@ export function SetupChoosePending({const stages = useStore($setupChooseStages)const { draft, picked } = (requestId && stages[requestId]) || EMPTY_SETUP_STAGEconst preselected = setup?.preselected+ const rowLabels = useMemo(() => Object.fromEntries((rows ?? []).map(row => [row.id, row.label])), [rows])// Start the card with the rows the scan saw in use, once its list is known; the card may not list them all.useEffect(() => {if (requestId && rows && preselected?.length && !$setupChooseStages.get()[requestId]) {const ids = new Set(rows.map(row => row.id))- stageSetupChoose(requestId, { picked: preselected.filter(id => ids.has(id)) })+ stageSetupChoose(requestId, { labels: rowLabels, picked: preselected.filter(id => ids.has(id)) })}- }, [preselected, requestId, rows])+ }, [preselected, requestId, rowLabels, rows])const question: ClarifyQuestion = useMemo(() => ({@@ -119,6 +121,7 @@ export function SetupChoosePending({const live = removing ? undefined : LIVE_LOOK[kind]stageSetupChoose(requestId, {+ labels: rowLabels,picked: question.multiSelect? removing? current.picked.filter(value => value !== id)@@ -129,7 +132,7 @@ export function SetupChoosePending({})live?.apply(id, setMode)},- [kind, mode, question.multiSelect, requestId, setMode]+ [kind, mode, question.multiSelect, requestId, rowLabels, setMode])const toggle = useCallback(@@ -157,7 +160,7 @@ export function SetupChoosePending({return}- if (!respondToServerRequest(request.requestId, { picked: answer })) {+ if (!respondToServerRequest(request.requestId, setupChooseAnswer(answer, rowLabels))) {notifyError(new Error(copy.notReady), copy.sendFailed)return@@ -167,7 +170,7 @@ export function SetupChoosePending({onAnswered()commitSetupChoose(request.requestId)clearClarifyRequest(request.requestId, request.sessionId)- }, [answer, copy, onAnswered, request])+ }, [answer, copy, onAnswered, request, rowLabels])const skip = useCallback(() => {if (!request) {diff --git a/apps/desktop/src/components/assistant-ui/thread/index.tsx b/apps/desktop/src/components/assistant-ui/thread/index.tsxindex a1a27da760f..2bd09fb3a4b 100644--- a/apps/desktop/src/components/assistant-ui/thread/index.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/index.tsx@@ -180,7 +180,10 @@ export const Thread = memo(function Thread({return (<ThreadEditContext.Provider value={editContext}>- <div className="relative grid h-full min-h-0 max-w-full grid-rows-[minmax(0,1fr)] overflow-hidden bg-transparent contain-[layout_paint]">+ <div+ className="relative grid h-full min-h-0 max-w-full grid-rows-[minmax(0,1fr)] overflow-hidden bg-transparent contain-[layout_paint]"+ data-slot="thread"+ ><ThreadMessageListclampToComposer={clampToComposer}components={messageComponents}diff --git a/apps/desktop/src/components/onboarding-chat/intro-copy.css b/apps/desktop/src/components/onboarding-chat/intro-copy.cssindex e5fc8df699e..47b9200a27f 100644--- a/apps/desktop/src/components/onboarding-chat/intro-copy.css+++ b/apps/desktop/src/components/onboarding-chat/intro-copy.css@@ -12,6 +12,11 @@background: var(--ui-chat-surface-background);}+/* The thread waits under the copy until the spring settles (`$introHoldsThread`). */+[data-intro-holding] > [data-slot='thread'] {+ visibility: hidden;+}+/* Same column as the thread content, so the risen copy sits where the first message lands. */.intro-copy-text {position: absolute;diff --git a/apps/desktop/src/components/onboarding-chat/intro.ts b/apps/desktop/src/components/onboarding-chat/intro.tsindex 43fc9b9c441..08a216c2754 100644--- a/apps/desktop/src/components/onboarding-chat/intro.ts+++ b/apps/desktop/src/components/onboarding-chat/intro.ts@@ -1,4 +1,4 @@-import { atom } from 'nanostores'+import { atom, computed } from 'nanostores'import { DEMO_LAYOUT_ID } from '@/app/contrib/layout-presets'import { PANE_TOGGLE_REVEAL_EVENT } from '@/components/pane-shell'@@ -34,6 +34,10 @@ export type IntroCopyStage = 'hidden' | 'landed' | 'playing'export const $introCopy = atom<IntroCopyStage>('hidden')+/** While the copy types and springs up, the thread under it stays hidden: the backend's first row and the+ * card after it can land early, and a see-through chat surface (glass) would show them mid-motion. */+export const $introHoldsThread = computed($introCopy, stage => stage === 'playing')+/** The hidden `/initiate-setup` turn has been handed to the backend (or failed to be). */export const $introTurnSent = atom(false)diff --git a/apps/desktop/src/store/clarify.ts b/apps/desktop/src/store/clarify.tsindex b4b11a4ac49..9c138beb300 100644--- a/apps/desktop/src/store/clarify.ts+++ b/apps/desktop/src/store/clarify.ts@@ -245,11 +245,32 @@ export function clearClarifyRequest(requestId?: string, sessionId?: string | nulexport interface SetupChooseStage {draft: string+ /** The name each staged row showed, by id, so a typed answer still names the rows staged with it. */+ labels: Record<string, string>picked: string[]revert: (() => void) | null}-export const EMPTY_SETUP_STAGE: SetupChooseStage = { draft: '', picked: [], revert: null }+export const EMPTY_SETUP_STAGE: SetupChooseStage = { draft: '', labels: {}, picked: [], revert: null }++/**+ * A card's answer: the picked ids, and the names the user saw for them when any id is a row. The backend+ * hands both to the model, which would otherwise guess a name from an id such as `#8a2be2`.+ */+export function setupChooseAnswer(+ picked: string | string[],+ labels: Record<string, string>+): { label?: string | string[]; picked: string | string[] } {+ const ids = Array.isArray(picked) ? picked : [picked]++ if (!ids.some(id => Object.hasOwn(labels, id))) {+ return { picked }+ }++ const named = ids.map(id => (Object.hasOwn(labels, id) ? labels[id] : id))++ return { label: Array.isArray(picked) ? named : named[0], picked }+}export const $setupChooseStages = atom<Record<string, SetupChooseStage>>({})@@ -348,9 +369,10 @@ export function answerClarifyRequest(sessionId: string | null | undefined, text:if (request.setup) {// A multi-select picker keeps the rows already staged on the card, the// same as its own Confirm: the typed words are one more pick.- const picked = request.setup.multiSelect ? [...setupChooseStage(request.requestId).picked, text] : text+ const stage = setupChooseStage(request.requestId)+ const answer = setupChooseAnswer(request.setup.multiSelect ? [...stage.picked, text] : text, stage.labels)- if (!respondToServerRequest(request.requestId, { picked })) {+ if (!respondToServerRequest(request.requestId, answer)) {return false}@@ -359,7 +381,7 @@ export function answerClarifyRequest(sessionId: string | null | undefined, text:}clearClarifyRequest(request.requestId, request.sessionId)- settleClarify(request, { outcome: 'submitted', picked })+ settleClarify(request, { outcome: 'submitted', ...answer })return true}diff --git a/apps/desktop/src/store/connector-catalog.ts b/apps/desktop/src/store/connector-catalog.tsindex 00d09577af2..ea0b9b3c958 100644--- a/apps/desktop/src/store/connector-catalog.ts+++ b/apps/desktop/src/store/connector-catalog.ts@@ -78,12 +78,14 @@ export function useConnectorCatalog(storedId: null | string): ConnectorCatalog {enabled: Boolean(storedId),queryFn: () => readConnectorCatalog(storedId!),queryKey: catalogKey(storedId),- staleTime: Infinity+ // Only a list is kept: an `unavailable` read from before the setup card minted a guest identity is read+ // again when the card mounts, and shows as loading meanwhile, not as the dead end it was.+ staleTime: ({ state }) => (state.data?.status === 'ready' ? Infinity : 0)})if (!storedId) {return { status: 'unavailable' }}- return query.data ?? { status: 'loading' }+ return query.data && !(query.data.status === 'unavailable' && query.isFetching) ? query.data : { status: 'loading' }}diff --git a/apps/shared/src/gateway-contract.generated.ts b/apps/shared/src/gateway-contract.generated.tsindex 2cd286d8755..25692f7f3a9 100644--- a/apps/shared/src/gateway-contract.generated.ts+++ b/apps/shared/src/gateway-contract.generated.ts@@ -4396,6 +4396,7 @@ export interface SetupChooseOption {}export interface SetupChooseResult {picked?: string | string[] | null+ label?: string | string[] | null}/** ``tui_gateway/server.py::_approval_request_payload`` — the command is redacted server-side. */export interface ApprovalRequestParams {diff --git a/apps/shared/src/gateway-contract.openrpc.json b/apps/shared/src/gateway-contract.openrpc.jsonindex 1c384768e16..0f756251bfd 100644--- a/apps/shared/src/gateway-contract.openrpc.json+++ b/apps/shared/src/gateway-contract.openrpc.json@@ -32453,6 +32453,24 @@],"default": null,"title": "Picked"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "title": "Label"}},"title": "SetupChooseResult",diff --git a/hermes_cli/anon_auth.py b/hermes_cli/anon_auth.pyindex 919ff0d7a72..6b748bb6652 100644--- a/hermes_cli/anon_auth.py+++ b/hermes_cli/anon_auth.py@@ -534,7 +534,8 @@ def ensure_portal_identity(store has none. Returns the ``providers.nous`` state, or None (disabled / failed once already).``explicit`` is required and must be True: the only callers are the boot bootstrap- (``free_tier_bootstrap.run_bootstrap``), the desktop's ``free_tier.provision`` retry, and the+ (``free_tier_bootstrap.run_bootstrap``), the desktop's ``free_tier.provision`` retry, the setup+ chat's apps card (``setup_choose_tool._connectors_closed``, one attempt), and thedead-credential replacements (``auth_nous.resolve_nous_runtime_credentials``,``managed_tool_gateway._replace_dead_guest_token``). Nothing creates an identity as a side effectof reading status, resolving a provider or fetching a connector bearer (NS-845 Q1.2).diff --git a/optional-skills/productivity/initiate-setup/SKILL.md b/optional-skills/productivity/initiate-setup/SKILL.mdindex 48ca4ec40ae..a392cad39a1 100644--- a/optional-skills/productivity/initiate-setup/SKILL.md+++ b/optional-skills/productivity/initiate-setup/SKILL.md@@ -26,7 +26,7 @@ Do not use it inside a task chat. When `setup_completed_at` is set, or `start_chThe setup profile's tools on desktop (setup never uses `tool_search`, `tool_describe` or `tool_call`):-- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` names a picked row; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.+- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` is the name the user saw for each pick, so name the pick by its `label`, never by its id; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.- `start_chat` starts a visible chat whose first user message is your `message`, in `profile`. Returns `{status: "started", session_id, profile, title}` or `{status: "rejected", reason}`. Each call starts one more chat.- `apply_layout` applies a layout preset by id.- `gui_tour` highlights parts of the app.@@ -103,7 +103,7 @@ Tool rules, always:- One `setup_choose` at a time.- Before a card: the acknowledgment of the last answer, then the beat's own sentence or one light opinion, and nothing else. Every sentence is a statement ending in a full stop. The card shows its question under your text, so ask nothing, never name the next card's topic, start with no lead-in word (Now, Next, Right, Let's, One more thing), never write "next", and never list or describe the options. Bad: "Blender, noted. The layout next; you can change it any time." Good: "Blender, noted." then the card.-- Acknowledge a result with the pick's name and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."+- Acknowledge a result with the pick's name (its `label`) and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."- Options you write yourself suit pills: at most six, labels of a few words, a `detail` only when the label cannot carry the point.- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded, except to re-send the pending card after an off-flow answer.@@ -138,13 +138,15 @@ If they give no name, never invent one, and leave "Call me" out of the handoff.Acknowledge the colour by its name, then say in the same message that you would read and act inside these apps for them, not message them there, and set them up when you start on something: "Violet, done. I'd read and act inside these apps for you, your inbox, your calendar, your repos, not message you there, and I set them up when we start on something." When `guest_free_tier` is true, the next sentence is this one, once, word for word: "Wiring these up later wants a model provider: a free Nous account works, free tier, no card, or you can bring your own." Then card `apps`.+When card `apps` returns `no_answer` with a `notice`, no card was shown: connecting apps needs a Nous account and there is none here. Say one line in your own words that connecting apps needs a Nous account, which is free, and that it can be set up later, then follow `next`.+The picks go into the handoff; the task chat connects the ones the task needs. If they ask to connect an app right now, connect it here: one `manage_connections` connect call with every app they asked for, then one line on what came back. Never connect an app they did not ask for, never paste links, never describe a settings page (there is no Connectors page).Chat apps like Discord or Telegram are how people reach Hermes: say they live in Messaging in the app's settings.### Beat 2: plugins for this computer-The acknowledgment, then one sentence: "Plugins are tools I install and run on this <signals.machine_kind>; picking one only records it." Then card `plugins`.+The acknowledgment, then one sentence: "Plugins are tools I install and run on this <signals.machine_kind>; picking one only records it." Then card `plugins`. When it returns `no_answer` with a `notice`, no card was shown because no plugin fits this computer: say nothing about plugins and follow `next`.### Beat 3: layout@@ -199,7 +201,7 @@ One short sentence: the work gets its own chat so it has room, and this one stay### Failure handling-- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.+- A card returns no pick or fails: take the default and move on (card `apps` with a `notice` gets its one line, see beat 1). Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.- A beat skipped in words: move on without comment. When they stop setup, say only "It's all yours, and this chat stays here if you want a hand."- Off the flow, even when their message cancelled a card: answer in a sentence or two, then re-send the card they left, once. For light or dark, send `{"kind":"theme","question":"Light or dark?","options":[],"multi_select":false}`.- Every path ends in `start_chat` or that sentence; never end a turn on an open question with no card.diff --git a/tools/setup_choose_tool.py b/tools/setup_choose_tool.pyindex b341a21577c..1bfaa05ba8e 100644--- a/tools/setup_choose_tool.py+++ b/tools/setup_choose_tool.py@@ -1,8 +1,11 @@import json+import loggingfrom typing import Callable, Optionalfrom tools.registry import registry, tool_error+logger = logging.getLogger(__name__)+KINDS = ("question", "accent", "theme", "layout", "connectors", "plugins", "tour", "fork", "machine_use")MAX_OPTIONS = 12# The skill branches on the ids of these rows, so they are filled here and any rows the model sent are dropped.@@ -36,6 +39,10 @@ _SKIP_LADDER = ("they pick it, hand off with start_chat.","Stop setup: say only \"It's all yours, and this chat stays here if you want a hand.\" No card and no handoff.",)+# Why an app-owned list has nothing to offer; the card is not shown and the call returns at once.+_NO_CONNECTORS = ("Connecting apps needs a Nous account (free) and none is signed in here, so no card was shown; "+ "it can be set up later.")+_NO_PLUGINS = "No plugins on the list run on this computer, so no card was shown."_MACHINE_USE_SKIPPED = "Hand off with the machine-setup plan and leave their use out."_RESEND = ("If this text does not answer the card, answer it in a sentence or two, then send this card again in ""the same turn: {card}")@@ -92,12 +99,19 @@ def _result(reply: Optional[dict], options: Optional[list]) -> dict:if picked is None:return {"outcome": "cancelled", "picked": None}result = {"outcome": "submitted", "picked": picked}- # The settled card and the model read the pick by name; rows the backend filled are not in the call's args.+ # The settled card and the model read the pick by the name the user saw. Rows the backend filled are named+ # here; the app's own lists (accent, layout, connectors...) are named by the card that answered.labels = {option["id"]: option["label"] for option in options or ()}+ named = reply.get("label")if isinstance(picked, list) and any(value in labels for value in picked):result["label"] = [labels.get(value, value) for value in picked]elif isinstance(picked, str) and picked in labels:result["label"] = labels[picked]+ elif isinstance(picked, str) and isinstance(named, str) and named.strip():+ result["label"] = named.strip()+ elif (isinstance(picked, list) and isinstance(named, list) and len(named) == len(picked)+ and all(isinstance(value, str) for value in named)):+ result["label"] = namedreturn result@@ -146,6 +160,35 @@ _APP_FILLED: dict[str, Callable[[dict], dict]] = {_APP_ROWS = frozenset({"tour", "machine_use", "fork"})+def _connectors_closed() -> Optional[str]:+ from tools.connectors.gateway.config import connectors_available, load_config++ if connectors_available():+ return None+ from hermes_cli.anon_auth import current_nous_state, ensure_portal_identity, guest_enabled++ # Connectors ride a Nous identity. A boot-time guest mint can be refused (rate limited) and stop retrying, so+ # the card makes one attempt of its own; the mint memo's cooldown still holds it back from the portal.+ if load_config().enabled and not current_nous_state() and guest_enabled():+ try:+ ensure_portal_identity(explicit=True)+ except Exception as exc:+ logger.info("setup_choose: no guest identity for connectors: %s", exc)+ if connectors_available():+ return None+ return _NO_CONNECTORS+++def _plugins_closed() -> Optional[str]:+ from hermes_cli.plugin_catalog_presence import onboarding_entries++ return None if onboarding_entries() else _NO_PLUGINS+++# App-owned lists that can come up empty for this session: the reason, checked before the card is shown.+_CLOSED: dict[str, Callable[[], Optional[str]]] = {"connectors": _connectors_closed, "plugins": _plugins_closed}++def setup_choose_tool(kind: str = "", question: str = "", options=None, multi_select=None,callback: Optional[Callable] = None, session_id: Optional[str] = None) -> str:if callback is None:@@ -167,6 +210,10 @@ def setup_choose_tool(kind: str = "", question: str = "", options=None, multi_seif kind == "fork" and "fork" not in cards:from agent.initiate_setup_prompt import collect_setup_cardscards = {**cards, **collect_setup_cards()}+ closed = _CLOSED[kind]() if kind in _CLOSED and normalized is None else None+ if closed:+ return json.dumps({"outcome": "no_answer", "picked": None, "notice": closed,+ "next": _THEN[kind](cards, None)}, ensure_ascii=False)payload.update(_APP_FILLED[kind](cards) if kind in _APP_FILLED else {})reply = callback(payload)fork = cards.get("fork") if kind == "fork" else None@@ -194,8 +241,10 @@ SETUP_CHOOSE_SCHEMA = {"for kind='question'. With options the user may still type an answer. ""multi_select lets the user pick several rows. Result: {outcome, picked, ""label?, next?, handoff?}. outcome is submitted, cancelled or no_answer (with "- "a notice saying why). picked is the chosen option id (or the typed text) as "- "a string, or a list of ids with multi_select; label names a picked row. "+ "a notice saying why; an app list with nothing to offer returns it at once, "+ "with no card). picked is the chosen option id (or the typed text) as a "+ "string, or a list of ids with multi_select; label is the name the user saw "+ "for each pick, so say the label, never the id. ""Do what `next` says. `handoff` holds the start_chat message's parts and plan."),"parameters": {diff --git a/tui_gateway/contracts/server_requests.py b/tui_gateway/contracts/server_requests.pyindex 22a2d4748ce..f1d9a9895c7 100644--- a/tui_gateway/contracts/server_requests.py+++ b/tui_gateway/contracts/server_requests.py@@ -83,6 +83,8 @@ class SetupChooseRequestParams(ServerRequestParams):class SetupChooseResult(Result):picked: str | list[str] | None = None+ # The name the card showed for each picked row (one per id in ``picked``); the model says it, not the id.+ label: str | list[str] | None = Noneserver_request("setup_choose", params=SetupChooseRequestParams, result=SetupChooseResult)diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.mdindex 1fcef43da34..bc6b83308e9 100644--- a/website/docs/reference/tools-reference.md+++ b/website/docs/reference/tools-reference.md@@ -194,7 +194,7 @@ Enabled by the desktop setup profile's own config (`platform_toolsets.cli`). Onl| Tool | Description | Requires environment ||------|-------------|----------------------|-| `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors`, `plugins`, `tour` or `fork`, and `question` is the card's heading. `options` is required: up to 12 `{id, label, detail?}` rows (unique ids) replace the app's own list, and `[]` shows the app's list for a picker or asks for free text for kind `question`. `tour` (Quick tour, Show me everything, Skip) and `fork` (the rows the `/initiate-setup` turn computed from host facts; "Something else" opens the rest in the same call) always show the backend's rows. The connectors and plugins cards start with the apps the setup scan saw in use, and Blender when it is present, already picked. A card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `cancelled` or `no_answer` with a `notice`), `picked` (an option id or typed text, or a list of ids with `multi_select`), and `label` when the pick is one of the card's rows. It stores nothing. Anywhere else the call returns an error. | — |+| `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors`, `plugins`, `tour` or `fork`, and `question` is the card's heading. `options` is required: up to 12 `{id, label, detail?}` rows (unique ids) replace the app's own list, and `[]` shows the app's list for a picker or asks for free text for kind `question`. `tour` (Quick tour, Show me everything, Skip) and `fork` (the rows the `/initiate-setup` turn computed from host facts; "Something else" opens the rest in the same call) always show the backend's rows. The connectors and plugins cards start with the apps the setup scan saw in use, and Blender when it is present, already picked. A card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `cancelled` or `no_answer` with a `notice`), `picked` (an option id or typed text, or a list of ids with `multi_select`), and `label` (the name the card showed for each pick, such as `Ultraviolet` for `#8a2be2`) when the pick is one of the card's rows. When the connectors list is unavailable (no Nous identity, after one guest sign-up attempt) or the plugins list is empty, the call returns `no_answer` with a `notice` at once and shows no card. It stores nothing. Anywhere else the call returns an error. | — |## `start_chat` toolsetdiff --git a/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md b/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.mdindex b4ae811a061..9f674ee61a6 100644--- a/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md+++ b/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md@@ -43,7 +43,7 @@ Do not use it inside a task chat. When `setup_completed_at` is set, or `start_chThe setup profile's tools on desktop (setup never uses `tool_search`, `tool_describe` or `tool_call`):-- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` names a picked row; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.+- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` is the name the user saw for each pick, so name the pick by its `label`, never by its id; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.- `start_chat` starts a visible chat whose first user message is your `message`, in `profile`. Returns `{status: "started", session_id, profile, title}` or `{status: "rejected", reason}`. Each call starts one more chat.- `apply_layout` applies a layout preset by id.- `gui_tour` highlights parts of the app.@@ -120,7 +120,7 @@ Tool rules, always:- One `setup_choose` at a time.- Before a card: the acknowledgment of the last answer, then the beat's own sentence or one light opinion, and nothing else. Every sentence is a statement ending in a full stop. The card shows its question under your text, so ask nothing, never name the next card's topic, start with no lead-in word (Now, Next, Right, Let's, One more thing), never write "next", and never list or describe the options. Bad: "Blender, noted. The layout next; you can change it any time." Good: "Blender, noted." then the card.-- Acknowledge a result with the pick's name and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."+- Acknowledge a result with the pick's name (its `label`) and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."- Options you write yourself suit pills: at most six, labels of a few words, a `detail` only when the label cannot carry the point.- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded, except to re-send the pending card after an off-flow answer.@@ -155,13 +155,15 @@ If they give no name, never invent one, and leave "Call me" out of the handoff.Acknowledge the colour by its name, then say in the same message that you would read and act inside these apps for them, not message them there, and set them up when you start on something: "Violet, done. I'd read and act inside these apps for you, your inbox, your calendar, your repos, not message you there, and I set them up when we start on something." When `guest_free_tier` is true, the next sentence is this one, once, word for word: "Wiring these up later wants a model provider: a free Nous account works, free tier, no card, or you can bring your own." Then card `apps`.+When card `apps` returns `no_answer` with a `notice`, no card was shown: connecting apps needs a Nous account and there is none here. Say one line in your own words that connecting apps needs a Nous account, which is free, and that it can be set up later, then follow `next`.+The picks go into the handoff; the task chat connects the ones the task needs. If they ask to connect an app right now, connect it here: one `manage_connections` connect call with every app they asked for, then one line on what came back. Never connect an app they did not ask for, never paste links, never describe a settings page (there is no Connectors page).Chat apps like Discord or Telegram are how people reach Hermes: say they live in Messaging in the app's settings.### Beat 2: plugins for this computer-The acknowledgment, then one sentence: "Plugins are tools I install and run on this <signals.machine_kind>; picking one only records it." Then card `plugins`.+The acknowledgment, then one sentence: "Plugins are tools I install and run on this <signals.machine_kind>; picking one only records it." Then card `plugins`. When it returns `no_answer` with a `notice`, no card was shown because no plugin fits this computer: say nothing about plugins and follow `next`.### Beat 3: layout@@ -216,7 +218,7 @@ One short sentence: the work gets its own chat so it has room, and this one stay### Failure handling-- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.+- A card returns no pick or fails: take the default and move on (card `apps` with a `notice` gets its one line, see beat 1). Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.- A beat skipped in words: move on without comment. When they stop setup, say only "It's all yours, and this chat stays here if you want a hand."- Off the flow, even when their message cancelled a card: answer in a sentence or two, then re-send the card they left, once. For light or dark, send `{"kind":"theme","question":"Light or dark?","options":[],"multi_select":false}`.- Every path ends in `start_chat` or that sentence; never end a turn on an open question with no card.