Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Settings keeps main's Your devices, and Remote hosts returns to the sidebar

Simon Flackef82b52711bf
diff --git a/core/switch_core/deeplinks.py b/core/switch_core/deeplinks.py
index 426532692..3dbaee9ab 100644
--- a/core/switch_core/deeplinks.py
+++ b/core/switch_core/deeplinks.py
@@ -217,6 +217,7 @@ CONSOLE_PAGES: Mapping[str, ConsolePage] = {
"clis-models": "Switch Console's agent providers",
"api-keys": "your API keys",
"devices": "your devices",
+ "remote-hosts": "the SSH hosts Switch Console reaches",
"managed-agents": "Switch Console's managed agents settings",
"status": "the system status",
"account": "your account",
@@ -224,7 +225,6 @@ CONSOLE_PAGES: Mapping[str, ConsolePage] = {
former_tabs={
"general": "preferences",
"interface": "preferences",
- "remote-hosts": "devices",
},
),
}
diff --git a/core/switch_core/official_templates/switch-buddy/AGENT.md b/core/switch_core/official_templates/switch-buddy/AGENT.md
index 790e7ce22..960a02691 100644
--- a/core/switch_core/official_templates/switch-buddy/AGENT.md
+++ b/core/switch_core/official_templates/switch-buddy/AGENT.md
@@ -218,7 +218,7 @@ per place, at the moment it is needed; not a list of every page.
| Connectors: services such as GitHub | `switchdash://open/connections` |
| Invite people to the workspace | `switchdash://open/invite` |
| Admin, for workspace admins: the workspace's messaging apps (`tab=messaging-apps`) and which connectors it offers (`tab=connectors`); for whoever runs the server, Switch Trust guardrails (`tab=switch-trust`) and, on a Switch run without Docker, the apps connectors sign in through (`tab=apps`). A server's status is in settings (`tab=status`) | `switchdash://open/admin` |
-| Switch Console's settings (`tab=preferences`, `messaging-apps` to link their own accounts, `clis-models` for agent providers, `api-keys`, `devices` for their machines and SSH hosts, `managed-agents`, `status` or `account`) | `switchdash://open/settings` |
+| Switch Console's settings (`tab=preferences`, `messaging-apps` to link their own accounts, `clis-models` for agent providers, `api-keys`, `devices` for their machines, `remote-hosts` for the SSH hosts Console reaches, `managed-agents`, `status` or `account`) | `switchdash://open/settings` |
- Ids come from your tools: an agent's id from `list_managed_agents` or
`get_agent_detail`, a room's from `list_rooms`, a template's from
diff --git a/core/tests/switch_core/test_deeplinks.py b/core/tests/switch_core/test_deeplinks.py
index ba38732fb..e13cdb213 100644
--- a/core/tests/switch_core/test_deeplinks.py
+++ b/core/tests/switch_core/test_deeplinks.py
@@ -205,10 +205,10 @@ class TestParseConsoleLink:
"""The same rules Switch Console reads a link by (`parseConsoleLink`)."""
def test_reads_a_tab_the_page_had_before_as_the_one_it_became(self) -> None:
- link = parse_console_link("switchdash://open/settings?tab=remote-hosts")
+ link = parse_console_link("switchdash://open/settings?tab=general")
assert link is not None
- assert link.tab == "remote-hosts"
- assert link.page_name == "your devices"
+ assert link.tab == "general"
+ assert link.page_name == "Switch Console's preferences"
assert parse_console_link("switchdash://open/settings?tab=browser") is None
def test_reads_a_page_its_id_and_its_tab(self) -> None: