The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor: delete the setup_choose and start_chat tools
alt-glitchba6cf55b22a6
diff --git a/agent/inline_tool_executors.py b/agent/inline_tool_executors.pyindex f7fac6f04e7..643f3e31603 100644--- a/agent/inline_tool_executors.py+++ b/agent/inline_tool_executors.py@@ -294,14 +294,6 @@ _RAW_INLINE_TOOL_EXECUTORS: dict[str, InlineToolExecutor] = {"tools.set_theme_tool", "set_theme_tool", "theme_callback",("accent", "accent"), ("mode", "mode"), ("layout", "layout"), ("picker", "picker"),),- # The session id keys the card facts its /initiate-setup turn recorded.- "setup_choose": _tool(- "tools.setup_choose_tool", "setup_choose_tool",- ("kind", "kind", ""), ("question", "question", ""), ("options", "options"),- ("multi_select", "multi_select"),- callback=lambda agent, ctx: getattr(agent, "setup_choose_callback", None),- session_id=lambda agent, ctx: getattr(agent, "session_id", None),- ),"setup_beat": _setup_beat,"manage_connections": _manage_connections,"manage_catalog": _manage_catalog,diff --git a/agent/tool_dispatch_helpers.py b/agent/tool_dispatch_helpers.pyindex 107635b237a..ec777417ad7 100644--- a/agent/tool_dispatch_helpers.py+++ b/agent/tool_dispatch_helpers.py@@ -27,8 +27,7 @@ from tools.threat_patterns import scan_for_threatslogger = logging.getLogger(__name__)# Interactive / user-facing tools never run concurrently: any of these in a batch is a barrier.-_NEVER_PARALLEL_TOOLS = frozenset({"clarify", "manage_connections", "manage_catalog", "setup_choose", "setup_beat",- "set_theme"})+_NEVER_PARALLEL_TOOLS = frozenset({"clarify", "manage_connections", "manage_catalog", "setup_beat", "set_theme"})# Read-only tools with no shared mutable session state._PARALLEL_SAFE_TOOLS = frozenset({diff --git a/tests/tools/test_setup_choose_name_card.py b/tests/tools/test_setup_choose_name_card.pydeleted file mode 100644index 0bd73061f4c..00000000000--- a/tests/tools/test_setup_choose_name_card.py+++ /dev/null@@ -1,55 +0,0 @@-"""The account's full name reaches the model only when the user picks it on the setup name card."""--import json--from agent import initiate_setup_facts-from agent.initiate_setup_prompt import NAME_QUESTION, _opening-from tools.setup_choose_tool import setup_choose_tool--NAME = "Ada Lovelace"---def _ask(monkeypatch, reply, session_id=None):- monkeypatch.setattr(initiate_setup_facts, "suggested_name", lambda: NAME)- shown = []-- def callback(payload):- shown.append(payload)- return reply-- result = setup_choose_tool(kind="question", question=NAME_QUESTION, options=[], callback=callback,- session_id=session_id)- return shown[0], json.loads(result)---def test_name_card_shows_the_account_name_and_returns_it_only_when_picked(monkeypatch):- shown, picked = _ask(monkeypatch, {"picked": "suggested"})- assert shown["options"] == [{"id": "suggested", "label": NAME}]- assert picked["label"] == NAME-- _, typed = _ask(monkeypatch, {"picked": "Ada"})- assert NAME not in json.dumps(typed)---def test_facts_and_the_scripted_card_leave_the_name_out(monkeypatch):- monkeypatch.setattr(initiate_setup_facts, "_account", lambda: ("ada", NAME))- assert NAME not in json.dumps(initiate_setup_facts.facts())-- opening = _opening(set(), {})- _text, _tool, card = next(opening)- assert NAME not in json.dumps(card)- line, _tool, _card = opening.send(json.dumps({"outcome": "submitted", "picked": "suggested", "label": NAME}))- assert line == f"Good to meet you, {NAME}."---def test_a_name_typed_in_the_composer_is_the_name_answer(monkeypatch):- from hermes_cli.setup_profile import read_cards-- _, typed = _ask(monkeypatch, {"said": "Ada"}, session_id="setup-typed-name")- assert (typed["outcome"], typed["picked"]) == ("submitted", "Ada")- assert read_cards("setup-typed-name")["picks"]["name"] == "Ada"-- opening = _opening(set(), {})- next(opening)- line, _tool, card = opening.send(json.dumps(typed))- assert (line, card["kind"]) == ("Good to meet you, Ada.", "accent")diff --git a/tests/tools/test_toolsets.py b/tests/tools/test_toolsets.pyindex c04d56fce17..1efbb9fd27b 100644--- a/tests/tools/test_toolsets.py+++ b/tests/tools/test_toolsets.py@@ -242,3 +242,16 @@ class TestResolveToolsetMemo:assert get_toolset_calls["n"] == 2, ("generation bump must invalidate the memo and re-resolve")+++def test_retired_onboarding_toolsets_in_a_saved_config_drop_quietly(capsys):+ """Old setup-profile configs list ``setup``/``start_chat``: no warning, no tools, the rest still resolves."""+ from hermes_cli.toolset_validation import saved_toolset_resolver, validate_platform_toolsets+ from model_tools import _select_tool_names++ config = {"platform_toolsets": {"cli": ["setup", "start_chat", "terminal"]}}+ assert validate_platform_toolsets(config["platform_toolsets"], saved_toolset_resolver(config)) == []++ tools = _select_tool_names(["setup", "start_chat", "terminal"], None, quiet_mode=False)+ assert "Unknown toolset" not in capsys.readouterr().out+ assert tools == set(resolve_toolset("terminal"))diff --git a/tools/AGENTS.md b/tools/AGENTS.mdindex 2da053c5951..4b3dda287e2 100644--- a/tools/AGENTS.md+++ b/tools/AGENTS.md@@ -133,7 +133,7 @@ completion by default; with `delegation.independent_completions` it is split inttask reports alone as it finishes. Units of one call share ONE pool slot (`slot_key` in`async_delegation._dispatch`) — never count units against capacity; the executor is sized by live UNITSand the stall clock arms when the runner starts, so a queued unit is never judged stalled. Roles: `leaf` (default;-no `delegate_task`, `clarify`, `memory`, `send_message`, `cronjob`, `start_chat`; keeps `execute_code`) and+no `delegate_task`, `clarify`, `memory`, `send_message`, `cronjob`; keeps `execute_code`) and`orchestrator` (keeps `delegate_task`; gated by `delegation.orchestrator_enabled`, bounded by`delegation.max_spawn_depth`, default 2). Config knobs under `delegation:`:`max_concurrent_children, independent_completions, max_spawn_depth, child_timeout_seconds, orchestrator_enabled,diff --git a/tools/delegate_tool_toolsets.py b/tools/delegate_tool_toolsets.pyindex 13d1613e8b9..25ec633153f 100644--- a/tools/delegate_tool_toolsets.py+++ b/tools/delegate_tool_toolsets.py@@ -18,7 +18,6 @@ DELEGATE_BLOCKED_TOOLS = frozenset("memory", # no writes to shared MEMORY.md"send_message", # no cross-platform side effects"cronjob_manage", # no scheduling more work in the parent's name- "start_chat",])DEFAULT_TOOLSETS = ["terminal", "file", "web"]diff --git a/tools/setup_choose_tool.py b/tools/setup_choose_tool.pydeleted file mode 100644index 7a6a8476423..00000000000--- a/tools/setup_choose_tool.py+++ /dev/null@@ -1,336 +0,0 @@-import json-import logging-from typing import Callable, Optional--from 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.-_TOUR_ROWS = [- {"id": "basics", "label": "Quick tour"},- {"id": "tour", "label": "Show me everything"},- {"id": "none", "label": "Skip, let's build something"},-]-_MACHINE_USE_ROWS = [- {"id": "work", "label": "Work"},- {"id": "gaming", "label": "Gaming"},- {"id": "school", "label": "School"},- {"id": "creative", "label": "Creative"},- {"id": "mix", "label": "A bit of everything"},-]-_NO_ANSWER = ("The card got no answer: it timed out, the turn was interrupted, or no Hermes desktop "- "window answered.")-# From the fork on, each skipped card steps down this ladder, so setup ends in a handoff or a stop.-_SKIP_LADDER = (- "No question: send a kind='question' card with three or four first tasks built from the scan and the apps they "- "picked.",- "Send a kind='question' card with ONE concrete first task built from the scan and the apps they picked; when "- "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."-# The task chat's first-task skill offers the options for a vague ask, so setup hands off at once.-_FIGURE = "Hand off now with start_chat; the ask is \"Let's figure out a first task together.\""-_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}")-# Composer text that names no row of a card with fixed rows: their words, not a pick.-_TYPED = ("They typed this instead of picking. Reply to it in a sentence or two, then send this card again in the "- "same turn so they can pick: {card}")-# On a first-task card typed words can be the task itself.-_TYPED_TASK = ("They typed this instead of picking. If it names a task, that is their first task: hand off with it. "- "Otherwise reply to it in a sentence or two, then send this card again in the same turn: {card}")---def _card(kind: str, question: str, multi_select: bool = False, options: Optional[list] = None) -> str:- return json.dumps({"kind": kind, "question": question, "options": options or [], "multi_select": multi_select},- ensure_ascii=False, separators=(",", ":"))---# The card that follows each of these in the flow, so the model cannot drop a beat.-_THEN: dict[str, Callable[[dict, object], str]] = {- "connectors": lambda cards, picked: "Send card plugins: " + _card("plugins", "Want any of these?", True),- "plugins": lambda cards, picked: "Send card layout: " + _card("layout", "Which layout?"),- "layout": lambda cards, picked: "Send card tour: " + _card("tour", "Want a look around first?"),- "tour": lambda cards, picked: (- ("After the gui_tour call, send" if picked in ("basics", "tour") else "No tour. Send")- + " card fork in this same turn: " + _card("fork", (cards.get("fork") or {}).get("question") or _fork_question())),-}---def _fork_question() -> str:- # The fork question when the /initiate-setup turn recorded none (host facts unknown). Imported late: tool- # discovery imports this module, and the facts module loads the host probes.- from agent.initiate_setup_facts import FORK_QUESTION-- return FORK_QUESTION---def _normalize_options(options) -> tuple:- if options is None or options == []:- return None, None- if not isinstance(options, list):- return None, "options must be an array of {id, label, detail?}; [] for the app's list or free text."- if len(options) > MAX_OPTIONS:- return None, f"options has {len(options)} entries; the limit is {MAX_OPTIONS}."- normalized, seen = [], set()- for index, item in enumerate(options):- if not isinstance(item, dict):- return None, f"options[{index}] must be an object with id and label."- option_id, label, detail = item.get("id"), item.get("label"), item.get("detail")- if not isinstance(option_id, str) or not option_id.strip():- return None, f"options[{index}].id must be non-empty text."- if not isinstance(label, str) or not label.strip():- return None, f"options[{index}].label must be non-empty text."- if detail is not None and not isinstance(detail, str):- return None, f"options[{index}].detail must be text."- if option_id.strip() in seen:- return None, f"options[{index}].id {option_id.strip()!r} repeats an earlier id."- seen.add(option_id.strip())- entry = {"id": option_id.strip(), "label": label.strip()}- if detail and detail.strip():- entry["detail"] = detail.strip()- normalized.append(entry)- return normalized, None---def _result(reply: Optional[dict], options: Optional[list]) -> dict:- if reply is None:- return {"outcome": "no_answer", "picked": None, "notice": _NO_ANSWER}- # The desktop sends `said` only after matching the text against the card's rows by id and label.- said = reply.get("said")- if isinstance(said, str) and said.strip():- return {"outcome": "typed", "picked": None, "said": said.strip()}- picked = reply.get("picked")- if picked is None:- return {"outcome": "cancelled", "picked": None}- result = {"outcome": "submitted", "picked": picked}- # 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"] = named- return result---def _follow_up(kind: str, card: str, result: dict, rows: Optional[list], cards: dict) -> tuple[dict, dict]:- """``next`` (and, from the fork, ``handoff``) for this answer, and the conversation's updated card state."""- state, extra = dict(cards), {}- outcome, picked = result["outcome"], result["picked"]- if outcome == "no_answer":- return extra, state- if kind == "fork":- plan = "machine" if picked == "machine" else "build"- handoff = cards.get("handoff")- if handoff and state.get("plan_sent") != plan:- extra["handoff"] = {"message": handoff["message"], "plan": handoff[plan]}- state["plan_sent"] = plan- state["fork_seen"] = True- if outcome == "typed":- task_card = kind == "fork" or (kind == "question" and state.get("fork_seen"))- return {**extra, "next": (_TYPED_TASK if task_card else _TYPED).format(card=card)}, state- step = state.get("step", -1)- skipped = outcome == "cancelled"- if skipped and kind == "machine_use":- extra["next"] = _MACHINE_USE_SKIPPED- elif skipped and (kind == "fork" or (kind == "question" and state.get("fork_seen"))):- # A skipped card of several first tasks steps to one task, and a skipped single task to the stop.- shape = 0 if kind == "fork" or not rows else 2 if len(rows) == 1 else 1- state["step"] = min(max(step + 1, shape), len(_SKIP_LADDER) - 1)- extra["next"] = _SKIP_LADDER[state["step"]]- elif kind == "fork" and picked == "figure":- extra["next"] = _FIGURE- elif outcome == "submitted" and isinstance(picked, str) and rows and picked not in {row["id"] for row in rows}:- extra["next"] = _RESEND.format(card=card)- elif kind in _THEN:- extra["next"] = _THEN[kind](cards, picked)- return extra, state---# The picks start_chat hands the task chat from the setup profile, keyed by card kind.-_REMEMBERED = frozenset({"connectors", "plugins", "layout"})---def _remember(kind: str, question: str, result: dict, state: dict) -> dict:- """Also the connector and plugin ids (the task chat connects and installs them first) and the fork pick (a- plugin task's plugins join those installs)."""- from agent.initiate_setup_prompt import NAME_QUESTION-- if result["outcome"] != "submitted":- return state- picked = result["picked"]- if kind == "fork":- return {**state, "fork_pick": picked}- key = "name" if kind == "question" and question == NAME_QUESTION else kind if kind in _REMEMBERED else None- if key is None:- return state- state = {**state, "picks": {**state.get("picks", {}), key: result.get("label") or picked}}- if kind in ("connectors", "plugins") and isinstance(picked, list):- state["pick_ids"] = {**state.get("pick_ids", {}), kind: picked}- return state---def _fork_rows(cards: dict) -> list:- # Built when the card is shown: the apps and plugins cards before it have been answered by then.- from agent.initiate_setup_facts import fork_card-- return fork_card(cards)["options"]---# App-owned parts of a card, filled here from the recorded facts so the model can neither drop nor edit them.-_APP_FILLED: dict[str, Callable[[dict], dict]] = {- "tour": lambda cards: {"options": _TOUR_ROWS, "multi_select": False},- "machine_use": lambda cards: {"options": _MACHINE_USE_ROWS, "multi_select": False},- "fork": lambda cards: {"options": _fork_rows(cards), "multi_select": False},- "connectors": lambda cards: {"preselected": (cards.get("preselected") or {}).get("connectors") or [],- "multi_select": True},- "plugins": lambda cards: {"preselected": (cards.get("preselected") or {}).get("plugins") or [],- "multi_select": True},-}-_APP_ROWS = frozenset({"tour", "machine_use", "fork"})---def _name_rows() -> Optional[list]:- # The account's full name stays on this computer: it is added here, after the model's call was saved, so the- # model sees it only in the result when the user picks it.- from agent.initiate_setup_facts import suggested_name-- name = suggested_name()- return [{"id": "suggested", "label": name}] if name else None---def _connectors_closed() -> Optional[str]:- from tools.connectors.gateway.config import connectors_available-- # A user with no Nous identity is open too: the first connect creates the guest.- return None if connectors_available() else _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:- return tool_error("setup_choose is only available in the Hermes desktop app.")- if kind not in KINDS:- return tool_error(f"kind must be one of: {', '.join(KINDS)}.")- text = str(question or "").strip()- if not text:- return tool_error("question must be non-empty text.")- normalized, error = (None, None) if kind in _APP_ROWS else _normalize_options(options)- if error:- return tool_error(error)- payload = {"kind": kind, "question": text, "options": normalized,- "multi_select": bool(multi_select) and (normalized is not None or kind != "question")}- card = _card(kind, text, payload["multi_select"], normalized)- from agent.initiate_setup_prompt import NAME_QUESTION- from hermes_cli.setup_profile import read_cards, record_cards- try:- cards = read_cards(session_id) if session_id else {}- if kind == "fork" and "fork" not in cards:- # Compression gave the conversation a new id, so its /initiate-setup turn recorded nothing here.- from agent.initiate_setup_facts import facts, setup_cards- cards = {**cards, **setup_cards(facts())}- 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 {})- if kind == "question" and text == NAME_QUESTION:- payload.update(options=_name_rows(), multi_select=False)- reply = callback(payload)- result = _result(reply, payload["options"])- if kind == "question" and text == NAME_QUESTION and result["outcome"] == "typed":- # The composer answers the name card like its free-text field: the words are the name, not a missed row.- result = {"outcome": "submitted", "picked": result["said"]}- extra, state = _follow_up(kind, card, result, payload["options"], cards)- state = _remember(kind, text, result, state)- if session_id and state != cards:- record_cards(session_id, state)- return json.dumps({**result, **extra}, ensure_ascii=False)- except Exception as exc:- logger.exception("setup_choose failed")- return tool_error(f"Failed to get user input: {exc}")---SETUP_CHOOSE_SCHEMA = {- "name": "setup_choose",- "description": (- "Ask the user one thing in the setup chat through a card: a question, a "- "picker for accent, theme, layout, connectors or plugins, or the app's own "- "tour offer, fork or machine_use rows. The card shows `question` itself, so "- "your message text must not repeat it. Always send `options`: [] shows the "- "app's own list for the pickers, tour, fork and machine_use, and free text "- "for kind='question'. With options the user may still type an answer. "- "multi_select lets the user pick several rows. Result: {outcome, picked, "- "label?, said?, next?, handoff?}. outcome is submitted, typed, cancelled or "- "no_answer (with a notice saying why; an app list with nothing to offer "- "returns it at once, with no card). typed means the user wrote words that "- "match no row: `said` holds them and nothing was picked. picked is the "- "chosen option id (or the free-text answer) 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 handoff message's parts and plan."- ),- "parameters": {- "type": "object",- "properties": {- "kind": {- "type": "string",- "enum": list(KINDS),- "description": "question, a picker, or the app's tour, fork or machine_use rows.",- },- "question": {- "type": "string",- "description": "The card's heading; do not repeat it in your message.",- },- "options": {- "type": "array",- "minItems": 0,- "maxItems": MAX_OPTIONS,- "description": "Rows to offer; [] for the app's own list (free text for kind='question').",- "items": {- "type": "object",- "properties": {- "id": {"type": "string"},- "label": {"type": "string"},- "detail": {"type": "string"},- },- "required": ["id", "label"],- },- },- "multi_select": {"type": "boolean", "description": "Let the user pick several rows."},- },- "required": ["kind", "question", "options"],- },-}---registry.register(- name="setup_choose", toolset="setup", schema=SETUP_CHOOSE_SCHEMA,- handler=lambda args, **kw: setup_choose_tool(- kind=args.get("kind", ""), question=args.get("question", ""), callback=kw.get("callback"),- **{k: args.get(k) for k in ("options", "multi_select")}),- emoji="🎛")diff --git a/tools/start_chat_tool.py b/tools/start_chat_tool.pydeleted file mode 100644index dc20a14f007..00000000000--- a/tools/start_chat_tool.py+++ /dev/null@@ -1,47 +0,0 @@-from tools.registry import registry--START_CHAT_SCHEMA = {- "name": "start_chat",- "description": (- "Start a new chat in the Hermes desktop app and send it its first message, so the task runs "- "there in view of the user while this chat stays where it is. Call it ONCE per task: every "- "call opens another chat, and nothing de-duplicates a repeated call. The new chat starts with "- "no history, so the message must carry everything the task needs. 'profile' must name an "- "existing profile; omit it to use this chat's own profile. The result is 'started' with the "- "new chat's session_id, or 'rejected' with a reason."- ),- "parameters": {- "type": "object",- "properties": {- "message": {- "type": "string",- "description": "The new chat's first user message: the whole task, self-contained.",- },- "title": {- "type": "string",- "maxLength": 40,- "description": "Sidebar title for the new chat, at most 40 characters. Omit it to let the chat title itself.",- },- "profile": {- "type": "string",- "description": "An existing profile to run the chat in. Omit it for this chat's own profile.",- },- },- "required": ["message"],- },-}---def _start_chat(args, **_kw):- from tui_gateway.start_chat import start_chat-- return start_chat(args)---registry.register(- name="start_chat",- toolset="start_chat",- schema=START_CHAT_SCHEMA,- handler=_start_chat,- emoji="💬",-)diff --git a/toolsets.py b/toolsets.pyindex 364f492aefc..b9eb685c05c 100644--- a/toolsets.py+++ b/toolsets.py@@ -143,12 +143,8 @@ TOOLSETS = {"annotate_preview", "read_window_below", "focus_pane", "react_to_message","gui_tour", "show_tip", "set_theme"],),- "setup": _ts("Onboarding-only surface for the setup profile: question and picker cards", ["setup_choose"],- platforms=frozenset({"desktop"})),"onboarding": _ts("First-run onboarding cards; folded in only for the onboarding chat (tui_gateway/methods_onboarding.py)",["setup_beat"], platforms=frozenset({"desktop"})),- "start_chat": _ts("Start a new visible desktop chat that runs a task in a chosen profile", ["start_chat"],- platforms=frozenset({"desktop"})),# ``platforms``: the session platforms this toolset exists for (TOOLSET_SESSION_PLATFORMS)."catalog": _ts("Desktop catalog plugin/skill install requests through the approval card (GUI sessions only)",@@ -475,8 +471,13 @@ def agent_tool_drops(agent: Any) -> frozenset:return side_agent_tool_drops(agent) | session_platform_tool_drops(getattr(agent, "platform", None))+# Toolsets the desktop's agentic onboarding added and then lost; old configs still list them. Accepted+# so they drop quietly (they resolve to no tools) instead of warning on every launch.+_RETIRED_TOOLSETS = frozenset({"setup", "start_chat"})++def validate_toolset(name: str) -> bool:- return (name in {"all", "*"} or name in TOOLSETS+ return (name in {"all", "*"} or name in TOOLSETS or name in _RETIRED_TOOLSETSor name in _get_plugin_toolset_names() or name in _get_registry_toolset_aliases())diff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex d7b3f73c665..1eecbcb0436 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -2061,10 +2061,6 @@ def _load_enabled_toolsets(platform: str | None = None) -> list[str] | None:from agent.coding_context import coding_selectionselection = coding_selection(platform=session_platform)if selection is not None:- from hermes_cli.config import load_config- from hermes_cli.tools_config import _get_platform_tools- from toolsets import TOOLSET_SESSION_PLATFORMS- selection += sorted(_get_platform_tools(load_config(), "cli") & TOOLSET_SESSION_PLATFORMS.keys())return sorted(_with_session_toolsets(selection, session_platform))try:from toolsets import validate_toolset@@ -2151,7 +2147,7 @@ def _tool_progress_enabled(sid: str) -> bool:# set (test_gateway_lifecycle_set_covers_desktop_card_tools pins the direction that matters)._TOOL_LIFECYCLE_UI_TOOLS = frozenset({"clarify", "manage_connections", "setup_mcp",- "image_generate", "manage_catalog", "delegate_task", "setup_choose", "setup_beat", "start_chat", "set_theme",+ "image_generate", "manage_catalog", "delegate_task", "setup_beat", "set_theme",# File edits are the turn's deliverable — the diff card the user reviews."edit_file", "patch", "write_file",})