Skip to content

Several servers

If you run more than one ZumiBot server, for example Local mode on your computer, a VPS and a Mac that runs your routines, the desktop app can keep all of them open in one window. A strip of server icons, the rail, sits on the left edge. One click, or one key, shows another server, and the first server in your list, called home, shows what waits for you on all the others, so you can answer it without leaving.

This page is about the desktop app. A browser tab always shows one server, as before. With only one server the window looks as it always did: there is no rail.

  1. Open the server list. Choose the + at the bottom of the rail, or press Ctrl+Shift+S (Cmd+Shift+S on a Mac). With one server there is no rail yet, so open Settings, then Sync & server, and choose Switch server… in the Server group. You can also start zumibot --switch-server from a terminal if you installed the .deb package.
  2. Fill in Add server. Choose Local, which runs a server on this computer and has a Port field that starts at 4318, or VPS, then type the address in the “Server address” box, for example https://zumibot.example.com. It must start with https:// and have no path after the host name. Then choose Add server.
  3. Sign in if asked. The new server opens at once. A server you host shows its own sign-in page if it needs one.

Once there are two servers the rail appears, and Settings now says Servers… where it said Switch server….

Each server has a name, shown in the list and as a tooltip on the rail. A Local server is called “This PC”, and any other server takes the first part of its address, such as zumibot-mac. Change it in the Server name box in the list. A name is 1 to 24 characters, and if it is not, you see “Enter a name of 1 to 24 characters.”

You can have up to 9 servers, and only one of them can be Local. Adding past those limits is refused with “At most 9 servers.” or “Only one Local server can be added.”, and adding an address that is already in the list with “That server is already in the list.”

The rail shows one round icon per server, in list order, with the first letters of its name. The server you are looking at is marked. Hover over an icon to see the server’s name and address. Marks on an icon tell you what is going on there, even while you look at another server:

  • An amber number: that many things wait for you on that server, such as an approval card, a question or a plan. It reads 99+ past 99.
  • A blue dot: a reply you have not read yet.
  • An envelope: a new message in that server’s Inbox, such as the result of a workflow.
  • A ring: a reply is running there.
  • A lock: the server needs you to sign in. Its sign-in page shows when you open it.
  • A dim icon: the app is still connecting to that server.
  • A red slash: the server cannot be reached. Opening it shows the error page, and the app keeps retrying by itself.
  • No marks, and a tooltip that reads “Older server: update it to see its badges here.”: that server is a version that does not report to the app. Everything in it still works. Update it to get the marks.

The rail follows your light or dark theme. The + at its bottom opens the server list.

Click an icon, or press Ctrl+1 to Ctrl+9 (Cmd+1 to Cmd+9 on a Mac) for the first to the ninth server in the list. Ctrl+1 always goes home. These keys only work when there are two or more servers, so a single server keeps them for the page.

Switching is instant. Nothing reloads, so a draft you were typing, a scroll position and an open panel are still there when you come back. Nothing stops either: replies on every server keep running, and the Local server keeps working while you look at another one. The window’s title follows the server you are on.

Home, and why the most trusted server goes on top

Section titled “Home, and why the most trusted server goes on top”

The first server in the list is home. To change it, use the up and down buttons next to each server in the list; moving a server to the top makes it home. The top entry carries a Home tag, and the list says: “Home shows every server’s waiting items. Keep the server you trust most at the top.”

That line is a security choice, so it is worth a moment. To let you answer in one place, home’s page receives what waits on the other servers: the commands an agent wants to run, the files it wants to change, its questions and its plans. The other servers never receive anything from each other. Home can be any server in the list, so if home is a VPS, that VPS’s page, and the code it serves, sees the items waiting on your other servers and could try to answer one when you click in its window. The items stay in the app’s memory and no server stores them. Your own computer (Local mode), which only the app can reach, is the safest home. A server you host on the internet is better lower in the list. Home is also the server the island belongs to.

Open the Inbox on the home server. Under Waiting for you you see its own items and those of every other server, oldest first. A card from another server has a small tag with that server’s name before the agent’s name, such as “Mac”.

  1. Answer the card as usual. Allow once, Allow for this chat, a choice or an answer to a question, Approve or Keep planning on a plan, or the buttons on a workflow approval or a to-do question all work here. The card turns into an answered line while ZumiBot hands your answer to the server that asked.
  2. The server that asked carries on. The card disappears from home, and from that server’s own Inbox, once the server has taken your answer.
  3. If it did not work, the card comes back with the reason. “Already answered or gone” means someone answered it on that server first. “This answer does not fit its card” means the server did not recognize the answer, and “No answer from Mac” means the server did not reply within 15 seconds or went away.

Open chat →, Open run → and Open to-do → on such a card take you to that server and open the chat, run or to-do there.

Some things cannot show as a card. If a server is a different version of ZumiBot from home, or one of its items is too large to pass along, home shows one line instead, for example “2 waiting on Mac” with Open on Mac →, which opens that server’s own Inbox. The count in home’s sidebar adds up everything, lines included.

Two safeguards sit on top of this. An answer only goes through while you are in the home window and have just used the mouse or keyboard there, within the last few seconds, and the window must show home. And the other servers’ own Inboxes show only their own items, never another server’s.

The Messages section of each Inbox stays per server. A workflow result on the Mac shows an envelope on its icon, and you read it in the Mac’s Inbox.

The app shows desktop notifications from every server, not only the one on screen. With two or more servers the title starts with the server’s name, for example “Mac · deployer is waiting”. Click one to open that server in the window. Switching servers does not clear notifications.

In the server list, choose Remove next to a server. A server you host is dropped from the window at once, and its notifications close; nothing happens to the server itself or its replies. Removing the Local server asks first when something would be lost: unsaved edits to an agent, or replies and background processes that stop with it. The button then reads Stop & Remove, or Remove when nothing is running. Removing the last server brings back the first screen, “Connect to a server”.

There is no button that replaces one server with another. To move from one to another, add the new one and then remove the old one, so a click meant only to look at another server never stops your Local server.

  • Quitting only counts the Local server. The app asks about running replies and processes on the Local server, since only it stops when you quit. Replies on a VPS or a Mac keep going. Unsaved agent edits in any server’s window are asked about first, one server at a time.
  • A server that cannot be reached retries by itself. A server on its error page is tried again after 10 seconds, then 20, doubling up to 5 minutes, and it resets when the page loads. This suits a Mac on your network that is not up yet when you log in. The error page’s Retry button tries at once. A server that shows its sign-in page does not retry, because only you can sign in. This also applies to a Local server that stops while you use the app: it is restarted by itself.
  • Chats are not merged. The chat list, search, agents, routines and workflows of each server stay on that server.
  • One list, one app. The list is saved with the app, not on a server. If you later install an older desktop app, it does not find the list and shows the first screen, and adding a server there would replace your list.