// COMPLETE REFERENCE
Terminal
The suite console: a browser terminal attached to a virtual machine, for the
work that is easier to type than to click — inspecting files, running a build,
checking a service. It is a developer tool (registry category: "dev"), not a
task a suite user performs, which is why the app page lives in this reference
chapter rather than in the user guide.
Authority: botui/ui/suite/terminal/ (shell and modules),
botserver/src/api/terminal/routes/ (create/list/kill/WebSocket), and
botserver/src/apps/registry/entries_extra.rs:147-155.
What the window offers
| Control | Behaviour |
|---|---|
| Tabs | One terminal per tab; + opens another and each tab negotiates its own session |
| VM picker | Workspace VM, or a project VM the caller can access (/api/agent/vm/status, /api/vibe/projects/.../vms) |
| Clear | Empties the visible buffer |
| Find | Search inside the terminal (also Ctrl+Shift+F) |
| Status | Connection state and terminal size (WS, columns × rows) |
The window is opened from the launcher with hxGet: /suite/terminal/terminal.html
(js/sidebar_a_core.js:28); the registry also advertises
/suite/partials/terminal.html.
It is a VM shell, never the server’s shell
POST /api/terminal/create refuses to spawn a terminal without a container
(handlers.rs:15-56): a container-less session would be a PTY on the botserver
host itself. When the caller is allowed, the session runs:
- in the caller’s own agent VM (the workspace where conversation files live), opened by sending a message in chat first; or
- in a
vm_instancescontainer of a project the caller can access as viewer or above — arbitrary names such astables,vaultorsystemare refused.
The shell defaults to /bin/bash and the starting directory is the newest
conversation folder of that workspace unless a directory is given.
HTTP and WebSocket surface
| Method | Path | Purpose |
|---|---|---|
| POST | /api/terminal/create |
create a session; answers the session id and a capability token |
| GET | /api/terminal/list |
sessions of the caller |
| POST | /api/terminal/kill |
close a session |
| GET (upgrade) | /api/terminal/ws?id=&capability= |
the interactive stream |
/api/terminal/** is catalogued for GET and POST with an empty role list in
botsecurity-auth/src/rbac_middleware/routes_user/app_routes.rs:78-79 — any
authenticated caller — while the per-container authorization above decides what
the session may attach to. /api/terminal/ws is also a registered capability
route, so the upgrade may carry its token in the query string.
Not implemented
| Claim that appears elsewhere | Reality |
|---|---|
| Split panes, rename tab, copy/paste-as-block actions | the shell has tabs, VM picker, Clear and Find only |
A REST endpoint per terminal operation (/sessions, /exec, /output, …) |
there are four routes, listed above |
| Chat commands become terminal sessions | the assistant runs commands through its own API path, not through this window |
Related
- Agent Mode & Snapshots — the VM the terminal attaches to
- Editor — the file/code editor for the same workspace
- CLI Reference — the server-side command line
- Vibe API — project and VM endpoints the picker calls