Skip to content

The agent that grows with you

fix(connectors): display costs fewer tokens, drops said, reports connections on timeout

alt-glitchaa915ec02a02
diff --git a/apps/desktop/src/components/assistant-ui/connector-tool.tsx b/apps/desktop/src/components/assistant-ui/connector-tool.tsx
index 52b5bccdb0d..a4fc8fcfe3b 100644
--- a/apps/desktop/src/components/assistant-ui/connector-tool.tsx
+++ b/apps/desktop/src/components/assistant-ui/connector-tool.tsx
@@ -187,16 +187,13 @@ function ConnectorDirectoryTool({ live, part, request }: ConnectorDirectoryToolP
)
}
+// A timed-out card still names what the user connected before walking away.
function receiptText(copy: ConnectorCopy['directory'], outcome: ReturnType<typeof recordOf>, added: string[]): string {
- if (outcome.timed_out === true) {
- return copy.receiptTimedOut
+ if (added.length > 0) {
+ return copy.receiptConnected(added.map(connectorTitle).join(', '))
}
- if (connectorText(outcome.said) !== undefined) {
- return copy.receiptSaid
- }
-
- return added.length > 0 ? copy.receiptConnected(added.map(connectorTitle).join(', ')) : copy.receiptNone
+ return outcome.timed_out === true ? copy.receiptTimedOut : copy.receiptNone
}
export function ConnectorDirectoryReceipt({ result }: { result: unknown }) {
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 9d06d09def3..3a65f6f92f1 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -18,7 +18,6 @@ export const arOverrides = {
allApps: 'كل التطبيقات',
receiptConnected: apps => `متصلة: ${apps}`,
receiptNone: 'لم يتم ربط تطبيقات جديدة',
- receiptSaid: 'تمت الإجابة في الدردشة',
receiptTimedOut: 'أُغلقت بعد 5 دقائق'
}
},
diff --git a/apps/desktop/src/i18n/de_connector_card.ts b/apps/desktop/src/i18n/de_connector_card.ts
index f352efdd723..2f0813d74cb 100644
--- a/apps/desktop/src/i18n/de_connector_card.ts
+++ b/apps/desktop/src/i18n/de_connector_card.ts
@@ -38,7 +38,6 @@ export const deConnectorCard: TranslationOverrides['connectors'] = {
allApps: 'Alle Apps',
receiptConnected: apps => `Verbunden: ${apps}`,
receiptNone: 'Keine neuen Apps verbunden',
- receiptSaid: 'Im Chat beantwortet',
receiptTimedOut: 'Nach 5 Minuten geschlossen'
}
}
diff --git a/apps/desktop/src/i18n/en_connector_card.ts b/apps/desktop/src/i18n/en_connector_card.ts
index 109207295d2..c9690f3c796 100644
--- a/apps/desktop/src/i18n/en_connector_card.ts
+++ b/apps/desktop/src/i18n/en_connector_card.ts
@@ -38,7 +38,6 @@ export const enConnectorCard: Translations['connectors'] = {
allApps: 'All apps',
receiptConnected: apps => `Connected: ${apps}`,
receiptNone: 'No new apps connected',
- receiptSaid: 'Answered in chat',
receiptTimedOut: 'Closed after 5 minutes'
}
}
diff --git a/apps/desktop/src/i18n/es_connector_card.ts b/apps/desktop/src/i18n/es_connector_card.ts
index 4937e9417ac..79ac8d54f18 100644
--- a/apps/desktop/src/i18n/es_connector_card.ts
+++ b/apps/desktop/src/i18n/es_connector_card.ts
@@ -38,7 +38,6 @@ export const esConnectorCard: TranslationOverrides['connectors'] = {
allApps: 'Todas las apps',
receiptConnected: apps => `Conectadas: ${apps}`,
receiptNone: 'Ninguna app nueva conectada',
- receiptSaid: 'Respondido en el chat',
receiptTimedOut: 'Cerrado tras 5 minutos'
}
}
diff --git a/apps/desktop/src/i18n/fr_connector_card.ts b/apps/desktop/src/i18n/fr_connector_card.ts
index b58845b5cab..f7cd5b3aaae 100644
--- a/apps/desktop/src/i18n/fr_connector_card.ts
+++ b/apps/desktop/src/i18n/fr_connector_card.ts
@@ -38,7 +38,6 @@ export const frConnectorCard: TranslationOverrides['connectors'] = {
allApps: 'Toutes les apps',
receiptConnected: apps => `Connectées : ${apps}`,
receiptNone: 'Aucune nouvelle app connectée',
- receiptSaid: 'Répondu dans le chat',
receiptTimedOut: 'Fermé après 5 minutes'
}
}
diff --git a/apps/desktop/src/i18n/ja_connectors.ts b/apps/desktop/src/i18n/ja_connectors.ts
index e72c7c5d5f2..72e05e25884 100644
--- a/apps/desktop/src/i18n/ja_connectors.ts
+++ b/apps/desktop/src/i18n/ja_connectors.ts
@@ -7,7 +7,6 @@ export const jaConnectors = {
allApps: 'すべてのアプリ',
receiptConnected: apps => `接続済み: ${apps}`,
receiptNone: '新しく接続したアプリはありません',
- receiptSaid: 'チャットで回答しました',
receiptTimedOut: '5 分後に閉じました'
}
},
diff --git a/apps/desktop/src/i18n/ru_connectors.ts b/apps/desktop/src/i18n/ru_connectors.ts
index 07b27145ddc..54e164bc1d1 100644
--- a/apps/desktop/src/i18n/ru_connectors.ts
+++ b/apps/desktop/src/i18n/ru_connectors.ts
@@ -7,7 +7,6 @@ export const ruConnectors = {
allApps: 'Все приложения',
receiptConnected: apps => `Подключены: ${apps}`,
receiptNone: 'Новые приложения не подключены',
- receiptSaid: 'Ответ дан в чате',
receiptTimedOut: 'Закрыто через 5 минут'
}
},
diff --git a/apps/desktop/src/i18n/types_connectors.ts b/apps/desktop/src/i18n/types_connectors.ts
index 2d53968ba4c..88a8b8cef64 100644
--- a/apps/desktop/src/i18n/types_connectors.ts
+++ b/apps/desktop/src/i18n/types_connectors.ts
@@ -40,7 +40,6 @@ export interface ConnectorDirectoryTranslations {
allApps: string
receiptConnected: (apps: string) => string
receiptNone: string
- receiptSaid: string
receiptTimedOut: string
}
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 68b7d924efa..7f2ed8971a1 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -19,7 +19,6 @@ export const zhHantOverrides = {
allApps: '全部應用程式',
receiptConnected: apps => `已連接:${apps}`,
receiptNone: '未連接新的應用程式',
- receiptSaid: '已在聊天中回覆',
receiptTimedOut: '5 分鐘後已關閉'
}
},
diff --git a/apps/desktop/src/i18n/zh_connector_card.ts b/apps/desktop/src/i18n/zh_connector_card.ts
index 413c16758c6..138cc4d2563 100644
--- a/apps/desktop/src/i18n/zh_connector_card.ts
+++ b/apps/desktop/src/i18n/zh_connector_card.ts
@@ -37,7 +37,6 @@ export const zhConnectorCard: TranslationOverrides['connectors'] = {
allApps: '全部应用',
receiptConnected: apps => `已连接:${apps}`,
receiptNone: '未连接新应用',
- receiptSaid: '已在聊天中回复',
receiptTimedOut: '5 分钟后已关闭'
}
}
diff --git a/apps/desktop/src/store/connection-request.ts b/apps/desktop/src/store/connection-request.ts
index 098f2e2d2cd..a488116debf 100644
--- a/apps/desktop/src/store/connection-request.ts
+++ b/apps/desktop/src/store/connection-request.ts
@@ -513,19 +513,6 @@ export const skipConnectionTarget = (request: ConnectionRequest, name: string):
export const continueConnectionRequest = (request: ConnectionRequest): Promise<boolean> =>
respondToConnectionRequest(request, { settled_by: 'continue' })
-/** The composer's words answer an open display card: the tool returns them as `said`. True when a card took them. */
-export function answerConnectorDirectory(sessionId: string, text: string): boolean {
- const request = $connectionRequests.get()[keyFor(sessionId)]
-
- if (!request?.display || request.settled || !text.trim()) {
- return false
- }
-
- void respondToConnectionRequest(request, { said: text.trim(), settled_by: 'continue' }).catch(() => undefined)
-
- return true
-}
-
// Typing a message while the card is open ends the operation, otherwise the typed message waits behind
// the blocked tool until the deadline.
export async function skipConnectionRequest(sessionId: string | null | undefined): Promise<boolean> {
diff --git a/apps/shared/src/gateway-contract.generated.ts b/apps/shared/src/gateway-contract.generated.ts
index 6f24a8fa689..7e852135f57 100644
--- a/apps/shared/src/gateway-contract.generated.ts
+++ b/apps/shared/src/gateway-contract.generated.ts
@@ -1115,7 +1115,6 @@ export interface ConnectionRespondParams {
export interface ConnectionAnswer {
targets?: ConnectionAnswerTarget[]
settled_by?: ConnectionSettleReason | null
- said?: string | null
}
/** One row's answer from the card. ``env`` carries the credential values an install asked for through ``required_env``. */
export interface ConnectionAnswerTarget {
diff --git a/apps/shared/src/gateway-contract.openrpc.json b/apps/shared/src/gateway-contract.openrpc.json
index 32d12d05efc..8fa3884dd54 100644
--- a/apps/shared/src/gateway-contract.openrpc.json
+++ b/apps/shared/src/gateway-contract.openrpc.json
@@ -9243,18 +9243,6 @@
}
],
"default": null
- },
- "said": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Said"
}
},
"title": "ConnectionAnswer",
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index de4602fe4aa..a296e995cda 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -1023,7 +1023,6 @@
"connectors.directory.allApps",
"connectors.directory.receiptConnected",
"connectors.directory.receiptNone",
- "connectors.directory.receiptSaid",
"connectors.directory.receiptTimedOut",
"connectors.directory.suggested",
"connectors.disabled",
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.json
index c95339e704f..c7c231bf330 100644
--- a/tests/fixtures/prompt_surface/surfaces.json
+++ b/tests/fixtures/prompt_surface/surfaces.json
@@ -5,7 +5,7 @@
"stable": 1935,
"volatile": 1813
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -48,7 +48,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -91,7 +91,7 @@
"stable": 1866,
"volatile": 1811
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -134,7 +134,7 @@
"stable": 2640,
"volatile": 1809
},
- "tool_tokens": 13557,
+ "tool_tokens": 13491,
"tools": [
"browser_back",
"browser_cdp",
@@ -177,7 +177,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -220,7 +220,7 @@
"stable": 1317,
"volatile": 1813
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -263,7 +263,7 @@
"stable": 1579,
"volatile": 1814
},
- "tool_tokens": 14038,
+ "tool_tokens": 13972,
"tools": [
"browser_back",
"browser_cdp",
@@ -307,7 +307,7 @@
"stable": 1349,
"volatile": 1814
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
@@ -350,7 +350,7 @@
"stable": 1382,
"volatile": 1814
},
- "tool_tokens": 13402,
+ "tool_tokens": 13336,
"tools": [
"browser_back",
"browser_cdp",
diff --git a/tests/fixtures/prompt_surface/tools/manage_connections.json b/tests/fixtures/prompt_surface/tools/manage_connections.json
index 870709d5374..09e8e95772b 100644
--- a/tests/fixtures/prompt_surface/tools/manage_connections.json
+++ b/tests/fixtures/prompt_surface/tools/manage_connections.json
@@ -1,10 +1,10 @@
{
- "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'display' (desktop app) shows the user a card with every connector, most used apps first, clicking one starts its sign-in, and waits until they press Continue or 300 s pass; slugs in 'connectors' are pinned at the top as Suggested. It returns connected, newly_connected and suggested slugs, or 'said' when the user typed an answer instead, or timed_out. Use it when the user wants to browse apps; use 'connect' when they name one. Outside the desktop app it returns the status list. 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). A second account of one app is 'connect' with a new 'alias': pick a short lowercase name from the user's words (e.g. 'work'), and ask the user if unsure. 'status' lists each connector's accounts; 'rename' names or renames one. Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.",
+ "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector, 'connectors' pinned as Suggested, waits for Continue (300 s); returns connected/newly_connected, plus timed_out on the deadline. Use it to browse; use 'connect' when the user names an app. 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). A second account of one app is 'connect' with a new 'alias': pick a short lowercase name from the user's words (e.g. 'work'), and ask the user if unsure. 'status' lists each connector's accounts; 'rename' names or renames one. Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.",
"name": "manage_connections",
"parameters": {
"properties": {
"action": {
- "description": "Defaults to status. display, connect, reconnect and rename take hosted connector slugs only. install, enable and authorize take mcp:true targets only.",
+ "description": "Defaults to status. connect, reconnect and rename take hosted connector slugs only. install, enable and authorize take mcp:true targets only.",
"enum": [
"display",
"status",
@@ -18,7 +18,7 @@
"type": "string"
},
"connectors": {
- "description": "Targets. REQUIRED for every action but status and display (e.g. [\"gmail\", {\"name\": \"linear\", \"mcp\": true}]); optional filter for status and the Suggested rows for display. A bare slug is a hosted connector, so an MCP server needs the object form with \"mcp\": true.",
+ "description": "Targets. REQUIRED for every action but status and display (e.g. [\"gmail\", {\"name\": \"linear\", \"mcp\": true}]); optional filter for status. A bare slug is a hosted connector, so an MCP server needs the object form with \"mcp\": true.",
"items": {
"anyOf": [
{
diff --git a/tests/tools/test_connectors_display.py b/tests/tools/test_connectors_display.py
index cf4570b332d..259e50c9363 100644
--- a/tests/tools/test_connectors_display.py
+++ b/tests/tools/test_connectors_display.py
@@ -1,13 +1,14 @@
"""``manage_connections`` action ``display``: the desktop directory card.
Contracts:
-- on desktop the call emits a card with no targets, waits for Continue, and reports what is connected,
- computed from the gateway list read at the start and at settle
+- on desktop the call emits a card with no targets, waits for Continue or the deadline, and reports what is
+ connected, computed from the gateway list read at the start and at settle; the deadline adds timed_out
- without a card surface it returns at once with the status list and where to connect
"""
import json
import threading
+from unittest.mock import patch
import pytest
@@ -38,24 +39,28 @@ def _display(gw, *, callback, card_surface):
))
-def test_display_waits_for_continue_and_reports_what_the_user_connected():
[email protected]("ending", ["continue", "deadline"])
+def test_display_waits_for_the_user_and_reports_what_they_connected(ending):
gw = ListFake({"gmail"})
seen = []
def card(payload):
seen.append(payload)
- def user_connects_slack_then_continues():
+ def user_connects_slack():
gw.connected.add("slack")
- apply_answer(live.get("s1", payload["op_id"]), json.dumps({"settled_by": "continue"}))
+ if ending == "continue":
+ apply_answer(live.get("s1", payload["op_id"]), json.dumps({"settled_by": "continue"}))
- threading.Timer(0.05, user_connects_slack_then_continues).start()
+ threading.Timer(0.05, user_connects_slack).start()
- out = _display(gw, callback=card, card_surface=True)
+ with patch("tools.connectors.operation.OPERATION_DEADLINE_SECONDS", 0.5 if ending == "deadline" else 60):
+ out = _display(gw, callback=card, card_surface=True)
(payload,) = seen
assert payload["targets"] == [] and payload["display"] == {"suggested": ["slack", "linear"]}
- assert out == {"connected": ["gmail", "slack"], "newly_connected": ["slack"], "suggested": ["slack", "linear"]}
+ expected = {"connected": ["gmail", "slack"], "newly_connected": ["slack"], "suggested": ["slack", "linear"]}
+ assert out == ({**expected, "timed_out": True} if ending == "deadline" else expected)
assert live.current("s1") is None
diff --git a/tools/connectors/display.py b/tools/connectors/display.py
index aa232454ce5..7793da08bc0 100644
--- a/tools/connectors/display.py
+++ b/tools/connectors/display.py
@@ -1,7 +1,6 @@
"""``manage_connections`` action ``display``: the desktop's browsable connector card.
-The card is an operation with no targets, so only Continue, a typed answer, the deadline or /stop
-settles it. Connecting from the card runs the Connectors page's own account operation, never this one."""
+The card is an operation with no targets, so only Continue, the deadline or /stop settles it. Connecting from the card runs the Connectors page's own account operation, never this one."""
from __future__ import annotations
@@ -22,19 +21,13 @@ OFF_DESKTOP_NOTE = (
@dataclass
class DisplayOperation(ConnectionOperation):
suggested: list[str] = field(default_factory=list)
- # The user's typed words when they answered the card in the composer instead of pressing Continue.
- said: Optional[str] = None
def request_payload(self) -> dict[str, Any]:
return {**super().request_payload(), "display": {"suggested": list(self.suggested)}}
def apply_answer(operation: DisplayOperation, raw: str) -> None:
- answer = json.loads(raw)
- said = answer.get("said")
- if said:
- operation.said = str(said)
- if said or answer.get("settled_by") == SettleReason.continue_.value:
+ if json.loads(raw).get("settled_by") == SettleReason.continue_.value:
operation.settle(SettleReason.continue_)
@@ -44,12 +37,10 @@ def connected_slugs(client: Any) -> set[str]:
def _result(client: Any, before: set[str], operation: DisplayOperation) -> dict[str, Any]:
- if operation.settled_by == SettleReason.deadline:
- return {"timed_out": True}
- if operation.settled_by == SettleReason.continue_ and operation.said is not None:
- return {"said": operation.said}
after = connected_slugs(client)
- return {"connected": sorted(after), "newly_connected": sorted(after - before), "suggested": operation.suggested}
+ result = {"connected": sorted(after), "newly_connected": sorted(after - before), "suggested": operation.suggested}
+ # A user who connected an app and walked away still gets it reported.
+ return {**result, "timed_out": True} if operation.settled_by == SettleReason.deadline else result
def _unchanged(_operation: Any) -> None:
diff --git a/tools/connectors/tool.py b/tools/connectors/tool.py
index 97fe83fb0f6..e356878bfd7 100644
--- a/tools/connectors/tool.py
+++ b/tools/connectors/tool.py
@@ -60,12 +60,10 @@ MANAGE_CONNECTIONS_SCHEMA = {
"catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted "
"actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side "
"owns is refused with the call that does work. "
- "Hosted actions: 'display' (desktop app) shows the user a card with every connector, most used apps "
- "first, clicking one starts its sign-in, and waits until they press Continue or 300 s pass; slugs in "
- "'connectors' are pinned at the top as Suggested. It returns connected, newly_connected and "
- "suggested slugs, or 'said' when the user typed an answer instead, or timed_out. Use it when the "
- "user wants to browse apps; use 'connect' when they name one. Outside the desktop app it returns "
- "the status list. 'status' lists connectors and whether each is connected; 'connect' "
+ "Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector, "
+ "'connectors' pinned as Suggested, waits for Continue (300 s); returns connected/newly_connected, "
+ "plus timed_out on the deadline. Use it to browse; use 'connect' when the user names an app. "
+ "'status' lists connectors and whether each is connected; 'connect' "
"starts an authorization for the given connectors; 'reconnect' checks each one and "
"repairs only what is not connected ('force': true restarts even a working one, for an "
"account switch). A second account of one app is 'connect' with a new 'alias': pick a short "
@@ -96,7 +94,7 @@ MANAGE_CONNECTIONS_SCHEMA = {
"type": "string",
"enum": list(ALL_ACTIONS),
"description": (
- "Defaults to status. display, connect, reconnect and rename take hosted connector slugs only. "
+ "Defaults to status. connect, reconnect and rename take hosted connector slugs only. "
"install, enable and authorize take mcp:true targets only."
),
},
@@ -138,7 +136,7 @@ MANAGE_CONNECTIONS_SCHEMA = {
"description": (
"Targets. REQUIRED for every action but status and display "
"(e.g. [\"gmail\", {\"name\": \"linear\", \"mcp\": true}]); optional filter for "
- "status and the Suggested rows for display. A bare slug is a hosted connector, so an MCP server needs the object "
+ "status. A bare slug is a hosted connector, so an MCP server needs the object "
"form with \"mcp\": true."
),
},
diff --git a/tui_gateway/contracts/connectors_operation.py b/tui_gateway/contracts/connectors_operation.py
index 1efa8a595e6..47199755765 100644
--- a/tui_gateway/contracts/connectors_operation.py
+++ b/tui_gateway/contracts/connectors_operation.py
@@ -262,8 +262,6 @@ class ConnectionAnswer(Params):
targets: list[ConnectionAnswerTarget] = Field(default_factory=list)
settled_by: ConnectionSettleReason | None = None
- # A display card answered by the user's typed words; it settles the card like Continue.
- said: str | None = None
class ConnectionRespondParams(ConnectionOperationParams):
diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.md
index 863c1d851d9..8db7d9e7d38 100644
--- a/website/docs/reference/tools-reference.md
+++ b/website/docs/reference/tools-reference.md
@@ -64,7 +64,7 @@ One tool for both kinds of external app. A target is a managed connector (`"gmai
| Tool | Description | Requires environment |
|------|-------------|----------------------|
-| `manage_connections` | Managed actions: `display` (desktop app only: a card of every hosted connector, most used apps first, where clicking an app starts its sign-in; any `connectors` slugs are pinned at the top as Suggested; it waits until the user presses Continue or 300 seconds pass and returns `connected`, `newly_connected` and `suggested` slugs, `said` when the user typed an answer instead, or `timed_out`; on other surfaces it returns the `status` list and tells the user to connect from the desktop app or the portal), `status` (each connector lists its `accounts`: alias, label, status, active), `connect`, `reconnect` (repairs only what is not connected; `force: true` restarts a working one), `rename`. A connect or reconnect target may carry an account name (`{"name": "gmail", "alias": "work"}`): connect with a new name adds another account, and reconnect with a name repairs only that account and deletes nothing. `rename` takes one target, `{"name": "gmail", "alias": "work", "to": "office"}`; `alias` may be the app label of an unnamed account. MCP actions, for `mcp: true` targets only: `install` a catalog entry, `enable` a disabled configured server, `authorize` (OAuth). In the desktop app, the terminal UI and the classic CLI every action shows a card and blocks until each target is connected, skipped, or the 300-second deadline passes; the result lists targets as `connected`, `skipped` or `not_connected` and carries no link. An MCP `install` collects the entry's setup values in the card, runs the entry's OAuth from the card when it has one (the user opens the link; nothing opens by itself), and saves configuration, tokens and values together when the server accepts the token. A connected MCP target carries `tools` (the registered names) and `tools_listing`, and those tools are callable through `tool_describe`/`tool_call` in the same turn. A target with `discovery_error` is authorized but its tools could not be listed; call `install` or `authorize` for it again to retry discovery without new consent. On surfaces with no card (messaging, scripted dispatch) managed targets return a `connect_url` per app for the user to open, and an MCP target runs at once: `authorize` and an OAuth `install` return the authorization URL, other installs and `enable` report the outcome, and a missing credential comes back as `failed` naming the variable to set. Cannot disconnect, remove or revoke an account; the user does that. | — |
+| `manage_connections` | Managed actions: `display` (desktop app only: a card of every hosted connector, most used apps first, where clicking an app starts its sign-in; any `connectors` slugs are pinned at the top as Suggested; it waits until the user presses Continue or 300 seconds pass and returns `connected`, `newly_connected` and `suggested` slugs, and adds `timed_out: true` when the deadline ended it; on other surfaces it returns the `status` list and tells the user to connect from the desktop app or the portal), `status` (each connector lists its `accounts`: alias, label, status, active), `connect`, `reconnect` (repairs only what is not connected; `force: true` restarts a working one), `rename`. A connect or reconnect target may carry an account name (`{"name": "gmail", "alias": "work"}`): connect with a new name adds another account, and reconnect with a name repairs only that account and deletes nothing. `rename` takes one target, `{"name": "gmail", "alias": "work", "to": "office"}`; `alias` may be the app label of an unnamed account. MCP actions, for `mcp: true` targets only: `install` a catalog entry, `enable` a disabled configured server, `authorize` (OAuth). In the desktop app, the terminal UI and the classic CLI every action shows a card and blocks until each target is connected, skipped, or the 300-second deadline passes; the result lists targets as `connected`, `skipped` or `not_connected` and carries no link. An MCP `install` collects the entry's setup values in the card, runs the entry's OAuth from the card when it has one (the user opens the link; nothing opens by itself), and saves configuration, tokens and values together when the server accepts the token. A connected MCP target carries `tools` (the registered names) and `tools_listing`, and those tools are callable through `tool_describe`/`tool_call` in the same turn. A target with `discovery_error` is authorized but its tools could not be listed; call `install` or `authorize` for it again to retry discovery without new consent. On surfaces with no card (messaging, scripted dispatch) managed targets return a `connect_url` per app for the user to open, and an MCP target runs at once: `authorize` and an OAuth `install` return the authorization URL, other installs and `enable` report the outcome, and a missing credential comes back as `failed` naming the variable to set. Cannot disconnect, remove or revoke an account; the user does that. | — |
The deadline for one call is five minutes, fixed by the backend when the call starts;
reopening the chat or restarting the desktop never extends it. The tool is present only when the