Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Your other computers: findable in Simple mode, correct wording, address in the pairing dialog (#6090)

Milind Soni48bc8c85f374
diff --git a/README.md b/README.md
index 9eb918d3f7..0bb6bcbeeb 100644
--- a/README.md
+++ b/README.md
@@ -350,7 +350,7 @@ See [Run OpenMausBot from scripts and CI](docs/headless-cli.md).
| **Ubuntu 24.04** (x64) | [OpenMausBot-amd64.deb](https://github.com/milind-soni/OpenMausBot/releases/latest/download/OpenMausBot-amd64.deb) · [OpenMausBot.AppImage](https://github.com/milind-soni/OpenMausBot/releases/latest/download/OpenMausBot.AppImage) | Install the `.deb` with APT (recommended), or make the AppImage executable and run it. Beta; GNOME is the supported desktop. |
See the [Ubuntu Desktop guide](docs/linux-desktop.md) for installation, capabilities, and troubleshooting.
-Any desktop build can also pair as a client to another Windows, macOS, or Ubuntu host over Tailscale; see [desktop-to-desktop companion mode](docs/desktop-companion.md).
+Any desktop build can also open the bots of another Windows, macOS, or Ubuntu computer over Tailscale; see [open one computer's bots from another computer](docs/desktop-companion.md).
**From source:**
diff --git a/docs/desktop-companion.md b/docs/desktop-companion.md
index a2052f3462..4363618587 100644
--- a/docs/desktop-companion.md
+++ b/docs/desktop-companion.md
@@ -1,88 +1,76 @@
-# Desktop-to-desktop companion mode
+# Open one computer's bots from another computer
-Every OpenMausBot desktop build can play either role:
+A desktop app can share itself with your other computers over Tailscale. The computer that has the bots is the
+**host**. The computer you sit at is the **client**: it opens the host's bots in its own window, from **Connect to a
+server**. The bots, their conversations, keys and routines stay on the host.
-- **Host mode** is the normal app. It owns the agents, conversations, credentials, routines, and computers.
-- **Client mode** controls a paired host through the same authenticated, default-deny companion API used by the phone app.
+Any desktop build can be the host or the client: Windows, macOS or Ubuntu. Both computers need Tailscale, signed in to
+the same Tailscale account, with MagicDNS on. Nothing here is reachable from outside your Tailscale network.
-The roles are platform-independent. A Windows, macOS, or Ubuntu build can host, and any other desktop build can be its client. One app installation uses one role at a time; disconnecting a client returns that installation to host mode without deleting its local host data.
+A phone uses a different path: **Settings → Phone & devices → Pair a phone**. A phone's code has six digits and only
+the phone app can use it. A computer needs the link below.
-This mode is separate from **Self-hosted server** in **Settings → Remote
-access → Connect to another computer** (also available through the **Server**
-menu). Self-hosted server connections load the remote server's web UI directly
-using that server's browser session. Use that option for a custom HTTPS domain
-or Cloudflare tunnel to a self-hosted server and its 12-character pairing link.
-Desktop companion mode instead keeps the bundled UI and native integrations on
-the client, sends API traffic through the default-deny companion boundary, and
-provides the per-device VPS viewer and client-local Mac voice behavior described
-below. The two connection types intentionally do not share credentials.
+## Share the host
-## Pair over secure HTTPS
+1. On the host, open **Settings → Phone & devices**. Settings search finds the row too: type "other computers" or
+ "tailscale".
+2. Turn on **Your other computers**. This turns Tailscale on in the app first, if it is off, and turning the share off
+ turns it off again unless you turned Tailscale on yourself or a phone is paired. The app never installs, starts or
+ signs in Tailscale itself: if Tailscale is not installed, not running, signed out or waiting for approval on your
+ Tailscale network, the row says so.
+3. Wait for the line under the row: `Ready at https://<name>.ts.net` when Tailscale's HTTPS Certificates are on, or
+ `Ready at http://<name>.ts.net:8799` when they are off. Both are private to your Tailscale network.
+4. Choose **Pair a computer**. The dialog shows the address and a 12-character code, with **Copy link**. The code works
+ once, and the dialog says until when.
-1. On the host, open **Settings → Phone & devices** and finish **Secure HTTPS pairing**.
-2. Open a pairing window so the host displays a six-digit code.
-3. On the client, open **Settings → Servers → Connect to another computer**
- and choose **Desktop companion**.
-4. Enter the host's managed companion address (`https://c-….openmausbot.com` or `https://c-….mausbot.si`) and the six-digit code.
-5. Choose **Pair and switch to client mode**. The client restarts and opens the host's bot UI.
+In Advanced mode the same page also has **More ways in → Tailscale**, the switch step 2 turns on for you.
-The HTTPS address uses the host's managed outbound tunnel. TLS is verified by the operating system, and the client does not need Tailscale. HTTPS is intentionally restricted to the names OpenMausBot issues (`c-` and 32 hexadecimal characters under `openmausbot.com` or `mausbot.si`) so a typo, or any other host in those domains, cannot receive the pairing code or a paired-device token. Desktop releases up to 0.1.103 accept only `openmausbot.com` names; update the client to pair with a host whose address is on `mausbot.si`, or pair over Tailscale.
+## Connect the client
-## Pair over Tailscale
+1. On the client, choose **+** at the end of the rail, then **Connect to a server**.
+2. Paste the link. Or type the address and the code in their two boxes.
+3. The sheet names the host it found and says it is on Tailscale. Choose **Connect to** and the host's name.
-1. Install Tailscale on both computers, sign into the same tailnet, and leave MagicDNS enabled.
-2. On the host, open **Settings → Phone & devices → More ways in**, turn **Tailscale** on (the app never runs Tailscale until you do), then **Pair a device → A computer** to display a six-digit code.
-3. On the client, open **Settings → Servers → Connect to another computer**
- and choose **Desktop companion**.
-4. Enter the host's full `.ts.net` MagicDNS name and the six-digit code.
-5. Choose **Pair and switch to client mode**. The client restarts and opens the host's bot UI.
+The host now sits on the client's rail beside This computer. To end a connection from the host's side, remove that
+device under **Paired** on the host's Phone & devices page. Turning **Your other computers** off stops the host
+answering every other computer at once.
-To switch that installation back, open **Settings → Servers** and choose **Disconnect and use this computer**.
+## Keep the host reachable
-## Control a VPS desktop remotely
+The host must be on, awake and connected to Tailscale. **Keep this computer awake** on the host's Phone & devices page
+holds it awake while a way in is on, and that includes **Your other computers**.
-A desktop client can open an agent's self-hosted VPS display through either paired transport. On the host, enable **Cloud desktop access** for that paired desktop in **Settings → Phone & devices**. On the client, open the bot's **Computer** panel and choose **Take control**.
+## What the client says when it can't connect
-The Computer panel also shows a periodically refreshed VPS screenshot. Preview and live control share the same per-device permission, which defaults off. The VPS still publishes no VNC port. The host opens its existing loopback-only SSH tunnel, the companion creates a random device-scoped viewer path, and the client relays noVNC HTTP and WebSocket traffic through its loopback Electron service. Closing the viewer removes the companion session, closes the SSH tunnel, and hands control back to the agent.
+| It says | Do this |
+|---|---|
+| "…is a MausBot desktop app. To open it from here, turn on Tailscale and Your other computers…" | The address reached the host's phone link or an app that is not shared. Share the host as above and use its link. |
+| "That code is for the phone app…" | A six-digit code was typed. Use **Pair a computer** on the host. |
+| "Tailscale isn't connected on this computer." | Open Tailscale on the client and sign in. |
+| "…isn't on this computer's tailnet." | The two computers are signed in to different Tailscale accounts. |
+| "…is on your tailnet but didn't answer." | The host is asleep, offline, or **Your other computers** is off. |
+| "macOS blocked the connection…" | On the client, allow the app in System Settings → Privacy & Security → Local Network. |
-Remote clients can preview, open, and close the viewer only. VPS provisioning, replacement, sleep, removal, SSH aliases, Local VM controls, and host browser surfaces remain available only on the host.
+## Security
-The client Calendar supports scheduled routines end to end: create, edit, move, resize, pause, delete, run now, cancel an active run, and acknowledge failures. Scheduled calls and webhooks remain host-only and are omitted from client mode.
+- The share is off until you turn it on, and an organization's policy that turns remote access off disables it.
+- With HTTPS Certificates on, `tailscale serve` fronts the host's server on port 443 of its `.ts.net` name. With them
+ off, the server listens on the host's own Tailscale addresses on port 8799. It never listens on every interface, so
+ a device on the same Wi-Fi that is not on your Tailscale network gets no answer.
+- A request that names another host is refused, and so is one that names the loopback address from outside.
+- Being on the Tailscale network is not enough: every client pairs with a one-time code and gets its own session,
+ which the host lists and can sign out.
-The remote Computer panel includes the host panel's per-agent **Scheduled tasks** card. It lists that agent's next routines and active run, opens the full schedule view, and creates a new schedule already assigned to the agent.
+[docs/verification/tailscale.md](verification/tailscale.md) has the script that proves this on two real computers.
-A Mac remote client supports dictation and live calls against any host: Apple Speech runs locally on the Mac, and only the transcript crosses the paired connection. When a Mac client selects a built-in system voice, reply speech is synthesized and played locally on that Mac; ElevenLabs and Fish Audio reply audio is synthesized by the host and relayed byte for byte. A Windows or Linux desktop listens through Fish Audio speech-to-text with its own saved Fish Audio key; a remote client's page has no dictation.
+## Without Tailscale
-Voice-note attachments stream through the same relay: the mp3 serving route is on the companion allowlist, the audio crosses byte for byte, and `Range` requests are forwarded so a player can seek inside a clip without re-downloading it.
+Share the computer with **My Cloud** from its own app, and open My Cloud from the other computer. A server of
+your own (`openmausbot serve`) is the other choice: see [self-hosting](self-hosting.md).
-The host must be running and awake. Cleartext HTTP is accepted only for a `.ts.net` MagicDNS hostname because that connection is encrypted inside Tailscale's WireGuard tunnel. Raw IP addresses, LAN hostnames, URL credentials, paths, queries, and fragments are rejected.
+## The earlier desktop companion connection
-## Security model
-
-Pairing creates an independent device identity on the host. The resulting bearer token is:
-
-- stored only in Electron's OS-encrypted credential document on the client;
-- never returned through the preload bridge, inserted into the page, placed in a URL, or written to browser storage;
-- injected by a loopback-only Electron relay after browser `Origin` headers are removed;
-- sent only to the exact saved managed HTTPS or `.ts.net` origin; absolute-form request targets cannot redirect it elsewhere.
-
-The host companion remains the authorization boundary. Its route list defaults to deny, strips sensitive response fields, and can revoke the desktop client from **Settings → Phone & devices** like any other paired device. Interactive desktop access is a separate per-device capability that defaults off. Client mode does not expose host-only settings, local browser surfaces, Local VM controls, plugin credentials, destructive account revocation, or the event inspector. Connected Apps may be viewed and authorized remotely while their tokens and execution remain on the host.
-
-The desktop client matches the reviewed companion feature surface: chats, rooms, streamed responses, approvals, inline Connected Apps authorization, search, routines, attachments, and a narrowly scoped cloud/VPS viewer the host explicitly grants to that paired device. Expanding the desktop client must be done by explicitly reviewing and adding companion routes; it must not bypass the companion API or proxy the full harness.
-
-## Runtime shape
-
-```text
-desktop renderer
- │ same-origin HTTP/SSE, no bearer
- ▼
-Electron relay 127.0.0.1:8798 (fallbacks: 18798, 28798)
- │ bearer injection over verified managed HTTPS or Tailscale/WireGuard
- ▼
-host companion :8810
- │ authentication + route allowlist + response scrubbing
- ▼
-host harness 127.0.0.1:8799
-```
-
-While client mode is active, Electron does not start its local harness, companion sidecar, computer-use daemon, or browser engine host. The renderer still uses ordinary same-origin API calls and `EventSource`, so the existing UI and streaming store do not learn or handle a second transport.
+Older versions paired one desktop app to another with a six-digit code and a managed `https://c-….` address, and the
+client restarted into a client mode. No new connection of that kind can be made. An installation still connected that
+way sees a notice in **Settings → This app** (Advanced mode) with **Disconnect and use this computer**; after disconnecting, connect again
+with the steps above.
diff --git a/docs/self-hosting.md b/docs/self-hosting.md
index 5fdde594ea..972ef371cd 100644
--- a/docs/self-hosting.md
+++ b/docs/self-hosting.md
@@ -171,7 +171,7 @@ npx openmausbot pair
| "Can't reach 192.168.1.20:8799. Check the server is running and reachable from this computer." | Nothing answers there. | Start it with a way in (`serve --lan` for this network), and check a firewall allows the port. |
| "maus.example.com doesn't exist yet." / "…certificate isn't valid yet." | DNS or the certificate isn't ready. | Wait for the DNS record, or give a new server a minute. |
| "That address answers, but it isn't a MausBot server." | Something else answers there, often a proxy pointing at the wrong port. | Point it at `http://127.0.0.1:8799`. |
-| "That's a sign-in code from an email…" / "That's a code from an older MausBot…" / "That's a script key…" | The wrong kind of code. | On the server, run `openmausbot pair` for a 12-character pairing code. |
+| "That's a sign-in code from an email…" / "That code is for the phone app…" / "That's a script key…" | The wrong kind of code. | On the server, run `openmausbot pair` for a 12-character pairing code. |
| "Too many wrong codes. Try again at 11:19." | Five wrong codes in five minutes from one address. | Wait until then, or make a new code. |
| `Reach ✗ https://… doesn't reach this server (connection refused).` | Your tunnel or proxy doesn't reach port 8799. | Point it at `http://127.0.0.1:8799`, then run `openmausbot status`. |
| `Reach ✗ https://… answers as a different server.` | The address leads to another MausBot server. | Point the tunnel at this machine's port. |
diff --git a/docs/verification/tailscale.md b/docs/verification/tailscale.md
index 9272e24063..3153b80c44 100644
--- a/docs/verification/tailscale.md
+++ b/docs/verification/tailscale.md
@@ -49,11 +49,15 @@ Use a disposable workspace on the host.
### The desktop app as host, without HTTPS certificates
1. Leave HTTPS Certificates off at https://login.tailscale.com/admin/dns.
-2. On the host, open Settings → Phone & devices → More ways in. Turn on **Tailscale**, then **Your other computers**.
- Expect `Ready at http://$NAME:8799`.
+2. On the host, open Settings → Phone & devices and turn on **Your other computers**. With Tailscale off in the app,
+ that one switch turns it on first. Turn it off again with nothing paired: expect Tailscale under More ways in to go
+ off with it. Then turn Tailscale on yourself, turn the share on and off: expect Tailscale to stay on. Leave the
+ share on. Expect `Ready at http://$NAME:8799`. Do this once in Simple mode: the row is
+ there without Advanced mode.
3. On the host, run `lsof -nP -iTCP:8799 -sTCP:LISTEN`. Expect `127.0.0.1:8799` and the tailnet addresses, and never
`*:8799`.
-4. On the host, create a code on the card under the switch. Expect its link to start with `http://$NAME:8799/pair#code=`.
+4. On the host, choose **Pair a computer** under the switch. Expect the dialog to show the address `http://$NAME:8799`
+ with the code, and **Copy link** to copy a link that starts with `http://$NAME:8799/pair#code=`.
5. On the client, choose + → Connect to a server and paste the link. Expect the found line to say Tailscale. Connect,
then send a message and wait for a reply.
6. From the client, check the refusals:
@@ -64,7 +68,8 @@ Use a disposable workspace on the host.
### With HTTPS certificates
-1. Turn on HTTPS Certificates, then press **Check again** on the host. Expect `Ready at https://$NAME`.
+1. Turn on HTTPS Certificates, then press **Check again** on the host (More ways in → Tailscale). Expect
+ `Ready at https://$NAME`.
2. On the host, `tailscale serve status` lists 443 → `http://127.0.0.1:8799`, and `lsof` shows only `127.0.0.1:8799`.
3. Connect the client to `https://$NAME` with a new code. The first request can take several seconds while the
certificate is issued.
@@ -95,6 +100,12 @@ says it listens on `http://$NAME:8799`, and connect a client with the printed li
### The phone and the Cloud
1. Pair the phone with the Tailscale route, then move it from Wi-Fi to cellular with Tailscale on. Chats keep working.
-2. Turn off **Your other computers** on the host. The client's page stops answering, and the phone keeps working.
-3. A MausBot Cloud is not on your tailnet. Lend the host to the Cloud with Tailscale on and confirm it still works over
+2. Turn off **Your other computers** on the host. The client's page stops answering, and the phone keeps working:
+ with a phone paired, Tailscale stays on in the app.
+3. With nothing else on, turn **Your other computers** on and then **Keep this computer awake**. Expect the switch to
+ be usable, and the host to stay reachable from the client after its usual sleep time.
+4. On a computer without Tailscale installed, turn **Your other computers** on. Expect the switch to stay off and the
+ row to say Tailscale isn't installed, with **Get Tailscale**. On a tailnet with device approval, do the same on a
+ computer not yet approved: expect the row to say it is waiting for approval.
+5. A MausBot Cloud is not on your tailnet. Lend the host to the Cloud with Tailscale on and confirm it still works over
the host's own outbound connection.
diff --git a/electron/companion-settings.mjs b/electron/companion-settings.mjs
index 7583aa940d..2ac06f4be9 100644
--- a/electron/companion-settings.mjs
+++ b/electron/companion-settings.mjs
@@ -4,7 +4,8 @@ import path from "node:path";
/** `companion-settings.json` in the app's user data: each way into this computer and whether the person turned it on.
* `wifi` is Same Wi-Fi (the device port on the LAN, and Bonjour), `relay` is Anywhere, through MausBot, `tailscale`
- * the tailnet address (with `computers` when the person's other computers may open this one's server over it), `https`
+ * the tailnet address (with `computers` when the person's other computers may open this one's server over it, and
+ * `forShare` when turning that share on is what turned this route on, so turning the share off turns it off again), `https`
* the HTTPS address (the managed tunnel). `notices` lists routes kept on by the update that the person has not seen yet. */
export const COMPANION_SETTINGS_VERSION = 2;
export const ROUTES = Object.freeze(["wifi", "relay", "tailscale", "https"]);
@@ -20,7 +21,7 @@ export function defaultCompanionSettings() {
function readRoute(value, route) {
if (!value || typeof value !== "object" || value.on !== true) return off();
const since = Number.isSafeInteger(value.since) ? value.since : null;
- if (route === "tailscale") return { on: true, since, name: typeof value.name === "string" && /\.ts\.net$/i.test(value.name) ? value.name : null, ...(value.computers === true ? { computers: true } : {}) };
+ if (route === "tailscale") return { on: true, since, name: typeof value.name === "string" && /\.ts\.net$/i.test(value.name) ? value.name : null, ...(value.computers === true ? { computers: true } : {}), ...(value.forShare === true ? { forShare: true } : {}) };
return { on: true, since };
}
@@ -62,10 +63,10 @@ export const anyRouteOn = (settings) => ROUTES.some((route) => settings?.routes?
/** Same Wi-Fi and Tailscale are what the sidecar itself listens for; the relay and the HTTPS address reach it otherwise. */
export const directRoutesOn = (settings) => ({ wifi: settings?.routes?.wifi?.on === true, tailscale: settings?.routes?.tailscale?.on === true });
-export function setRoute(settings, route, on, { now = Date.now(), name, computers } = {}) {
+export function setRoute(settings, route, on, { now = Date.now(), name, computers, forShare } = {}) {
if (!ROUTES.includes(route)) return settings;
const current = settings.routes[route];
- const next = on ? { on: true, since: current.on ? current.since : now, ...(route === "tailscale" ? { name: name !== undefined ? name : current.name ?? null, ...((computers ?? current.computers) === true ? { computers: true } : {}) } : {}) } : off();
+ const next = on ? { on: true, since: current.on ? current.since : now, ...(route === "tailscale" ? { name: name !== undefined ? name : current.name ?? null, ...((computers ?? current.computers) === true ? { computers: true } : {}), ...((forShare ?? current.forShare) === true ? { forShare: true } : {}) } : {}) } : off();
return { ...settings, routes: { ...settings.routes, [route]: next }, notices: on ? settings.notices : settings.notices.filter((notice) => notice !== route) };
}
diff --git a/electron/companion-settings.node-test.mjs b/electron/companion-settings.node-test.mjs
index 793955b822..b03427634d 100644
--- a/electron/companion-settings.node-test.mjs
+++ b/electron/companion-settings.node-test.mjs
@@ -114,3 +114,13 @@ test("the switch for other computers lives on the Tailscale route and goes with
const read = readCompanionSettings({ version: COMPANION_SETTINGS_VERSION, routes: { tailscale: { on: true, since: 5, name: "mac.tail1.ts.net", computers: "yes" } } });
assert.equal(read.routes.tailscale.computers, undefined, "anything but true is off: this opens a listener");
});
+
+test("a Tailscale route the share turned on is marked, keeps the mark through a name refresh, and loses it when the person turns the route on or off", () => {
+ const shared = setRoute(defaultCompanionSettings(), "tailscale", true, { now: 5, name: "mac.tail1.ts.net", computers: true, forShare: true });
+ assert.deepEqual(shared.routes.tailscale, { on: true, since: 5, name: "mac.tail1.ts.net", computers: true, forShare: true });
+ assert.equal(setRoute(shared, "tailscale", true, { now: 6, name: "mac.tail1.ts.net" }).routes.tailscale.forShare, true);
+ assert.equal(setRoute(shared, "tailscale", true, { now: 6, forShare: false }).routes.tailscale.forShare, undefined);
+ assert.deepEqual(setRoute(shared, "tailscale", false).routes.tailscale, { on: false, since: null });
+ assert.equal(readCompanionSettings({ version: COMPANION_SETTINGS_VERSION, routes: shared.routes }).routes.tailscale.forShare, true);
+ assert.equal(readCompanionSettings({ version: COMPANION_SETTINGS_VERSION, routes: { tailscale: { on: true, since: 5, forShare: "yes" } } }).routes.tailscale.forShare, undefined);
+});
diff --git a/electron/keep-awake.mjs b/electron/keep-awake.mjs
new file mode 100644
index 0000000000..77701f4c13
--- /dev/null
+++ b/electron/keep-awake.mjs
@@ -0,0 +1,5 @@
+/** Keep this computer awake applies while something can reach it: the phone link is running without an error, or the
+ * person's other computers may open it over Tailscale. */
+export function reachableForKeepAwake(state, share) {
+ return (state?.enabled === true && !state.error) || share?.on === true;
+}
diff --git a/electron/keep-awake.node-test.mjs b/electron/keep-awake.node-test.mjs
new file mode 100644
index 0000000000..e4f3fe6614
--- /dev/null
+++ b/electron/keep-awake.node-test.mjs
@@ -0,0 +1,13 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { reachableForKeepAwake } from "./keep-awake.mjs";
+
+test("Keep this computer awake applies while the phone link runs or the person's other computers may open this one", () => {
+ assert.equal(reachableForKeepAwake({ enabled: true }, { on: false }), true);
+ assert.equal(reachableForKeepAwake({ enabled: false }, { on: true }), true, "the share alone: nothing paired, the phone link asleep");
+ assert.equal(reachableForKeepAwake({ enabled: true, error: "port in use" }, { on: true }), true);
+ assert.equal(reachableForKeepAwake({ enabled: true, error: "port in use" }, { on: false }), false);
+ assert.equal(reachableForKeepAwake({ enabled: false }, { on: false }), false);
+ assert.equal(reachableForKeepAwake({ enabled: false }, undefined), false);
+});
diff --git a/electron/main.mjs b/electron/main.mjs
index 95f9f31a28..3667db3793 100644
--- a/electron/main.mjs
+++ b/electron/main.mjs
@@ -452,7 +452,7 @@ import { companionAdvertisedHostedUrl, companionEnabledAtRest, companionOriginTa
companionBrowserControlAccess, companionRevoke, companionRunning, companionSettings, companionState, rememberCompanionKeepAwake, setCompanionHostedUrl, setCompanionLifecycleListener, startCompanion, stopCompanion } from "./companion.mjs";
import { createDesktopCompanionE2E, deviceCounts } from "./companion-e2e-desktop.mjs"; import { startCheckedManagedConnection } from "./managed-companion-start.mjs";
import { autoStartCompanion } from "./companion-autostart.mjs";
-import { createPhoneLinkRoutes } from "./phone-link-routes.mjs";
+import { createPhoneLinkRoutes } from "./phone-link-routes.mjs"; import { reachableForKeepAwake } from "./keep-awake.mjs";
import { createRoutineWakeHold, rememberRoutineWake, routineWakeSettings } from "./routine-wake.mjs";
import { CREDENTIAL_PATCH, credentialSaveError } from "./credential-patch.mjs";
@@ -568,7 +568,7 @@ function publicManagedCompanionState() {
}
function decorateDesktopCompanionState(state) {
- syncCompanionKeepAwake(state.enabled && !state.error, state.keepAwake === true);
+ syncCompanionKeepAwake(reachableForKeepAwake(state, tailnetShare.state()), state.keepAwake === true);
return { ...state, managedConnection: publicManagedCompanionState(), tailnetShare: tailnetShare.state(), relayToken: companionE2E?.relayToken ?? null };
}
@@ -677,7 +677,7 @@ async function stopDesktopCompanion({ remember = true } = {}) {
return desktopCompanionState();
}
-const tailnetShare = createTailnetShare({ check: checkTailscale, allowed: () => remotePolicyAllows({ managed: app.isPackaged && !desktopRemoteAccess, client: managedDesktop }), markerFile: () => path.join(app.getPath("userData"), "tailnet-serve.marker"), log: slog }); const phoneLinkRoutes = createPhoneLinkRoutes({ shareChanged: () => tailnetShare.apply(companionSettings().routes.tailscale), rememberRoute: rememberCompanionRoute, routeOn: companionRouteOn, dismissNotice: dismissCompanionNotice, state: () => desktopCompanionState(), running: companionRunning, log: slog, changed: (route, on) => (route !== "https" ? companionE2E?.reconcile() : on ? startManagedCompanionConnection({ waitForVerification: false }) : stopManagedCompanionEndpointLocally()),
+const tailnetShare = createTailnetShare({ check: checkTailscale, allowed: () => remotePolicyAllows({ managed: app.isPackaged && !desktopRemoteAccess, client: managedDesktop }), markerFile: () => path.join(app.getPath("userData"), "tailnet-serve.marker"), log: slog }); const phoneLinkRoutes = createPhoneLinkRoutes({ shareChanged: () => tailnetShare.apply(companionSettings().routes.tailscale), rememberRoute: rememberCompanionRoute, routeOn: companionRouteOn, tailscaleRoute: () => companionSettings().routes.tailscale, dismissNotice: dismissCompanionNotice, state: () => desktopCompanionState(), running: companionRunning, log: slog, changed: (route, on) => (route !== "https" ? companionE2E?.reconcile() : on ? startManagedCompanionConnection({ waitForVerification: false }) : stopManagedCompanionEndpointLocally()),
wake: () => (!companionRunning() && companionStartsAtLaunch({ remoteClient: Boolean(desktopRemoteAccess), serverReady }) ? startDesktopCompanion({ waitForHosted: false, remember: false }) : null), sleep: () => stopDesktopCompanion({ remember: false }) });
setCompanionMigrationFacts(() => ({ managedAddress: Boolean(managedCompanionTunnelAccess(secureCredentials)) }));
diff --git a/electron/phone-link-routes.mjs b/electron/phone-link-routes.mjs
index e8cb99ef19..5d1ef637af 100644
--- a/electron/phone-link-routes.mjs
+++ b/electron/phone-link-routes.mjs
@@ -11,7 +11,7 @@ const SLEEP_CHECK_MS = 60_000;
*
* `wake()` starts the sidecar when the launch rule now holds (a way in is on and something is paired).
*/
-export function createPhoneLinkRoutes({ rememberRoute, routeOn, dismissNotice, state, running, wake, sleep, changed = () => {}, check = checkTailscale, shareChanged = async () => {}, now = Date.now, setTimer = setInterval, log = () => {} }) {
+export function createPhoneLinkRoutes({ rememberRoute, routeOn, tailscaleRoute = () => null, dismissNotice, state, running, wake, sleep, changed = () => {}, check = checkTailscale, shareChanged = async () => {}, now = Date.now, setTimer = setInterval, log = () => {} }) {
let activeSince = 0;
let timer = null;
@@ -23,18 +23,32 @@ export function createPhoneLinkRoutes({ rememberRoute, routeOn, dismissNotice, s
}
const result = await check();
if (result.state !== "ready") return { ...(await state()), tailscaleProblem: result.state };
- await rememberRoute("tailscale", true, { name: result.name });
+ await rememberRoute("tailscale", true, { name: result.name, forShare: false });
await shareChanged();
await wake();
return state();
}
- /** Whether the person's other computers may open this one over Tailscale; a share needs the Tailscale route on. */
+ /**
+ * Whether the person's other computers may open this one over Tailscale. The share needs the Tailscale route: turning
+ * the share on turns an off route on, marked as the share's, and turning the share off turns a route so marked off
+ * again unless a device is paired, which may be using it. A route the person turned on themselves is never turned off here.
+ */
async function setTailscaleComputers(on) {
- if (routeOn("tailscale")) {
- await rememberRoute("tailscale", true, { computers: on });
- await shareChanged();
+ if (on && !routeOn("tailscale")) {
+ const result = await check();
+ if (result.state !== "ready") return { ...(await state()), tailscaleProblem: result.state };
+ await rememberRoute("tailscale", true, { name: result.name, computers: true, forShare: true });
+ } else if (on) {
+ await rememberRoute("tailscale", true, { computers: true });
+ } else if (!routeOn("tailscale")) {
+ return state();
+ } else if (tailscaleRoute()?.forShare === true && !((await state().catch(() => null))?.devices?.length > 0)) {
+ await rememberRoute("tailscale", false);
+ } else {
+ await rememberRoute("tailscale", true, { computers: false });
}
+ await shareChanged();
return state();
}
diff --git a/electron/phone-link-routes.node-test.mjs b/electron/phone-link-routes.node-test.mjs
index f9746be4c5..6a258ffe7a 100644
--- a/electron/phone-link-routes.node-test.mjs
+++ b/electron/phone-link-routes.node-test.mjs
@@ -5,9 +5,13 @@ import { createPhoneLinkRoutes, PHONE_LINK_SLEEP_GRACE_MS } from "./phone-link-r
import { checkTailscale, magicDnsName, readTailscaleStatus, TAILSCALE_CLI_PATHS, tailscaleEnvironment, tailscaleInstall } from "./tailscale-check.mjs";
function world({ check = async () => ({ state: "ready", name: "mac.tail1.ts.net" }), tailscaleOn = false, sidecar = null } = {}) {
- const w = { routes: { tailscale: tailscaleOn }, names: [], computers: [], shares: 0, checks: 0, wakes: 0, sleeps: 0, changed: [], clock: 1_000_000, sidecar, running: sidecar !== null };
+ const w = { routes: { tailscale: tailscaleOn }, forShare: false, marks: [], names: [], computers: [], shares: 0, checks: 0, wakes: 0, sleeps: 0, changed: [], clock: 1_000_000, sidecar, running: sidecar !== null };
w.links = createPhoneLinkRoutes({
- rememberRoute: async (route, on, extra) => { w.routes[route] = on; if (extra?.name) w.names.push(extra.name); if (extra?.computers !== undefined) w.computers.push(extra.computers); },
+ tailscaleRoute: () => ({ on: w.routes.tailscale === true, forShare: w.forShare }),
+ rememberRoute: async (route, on, extra) => {
+ w.routes[route] = on; if (extra?.name) w.names.push(extra.name); if (extra?.computers !== undefined) w.computers.push(extra.computers);
+ if (route === "tailscale") { if (!on) w.forShare = false; else if (extra?.forShare !== undefined) { w.forShare = extra.forShare; w.marks.push(extra.forShare); } }
+ },
shareChanged: async () => { w.shares++; },
routeOn: (route) => w.routes[route] === true,
dismissNotice: () => {},
@@ -59,17 +63,54 @@ test("turning Tailscale off runs nothing", async () => {
assert.equal(w.routes.tailscale, false);
});
-test("the switch for other computers needs the Tailscale route, and every Tailscale change reaches the share", async () => {
- const off = world();
- await off.links.setTailscaleComputers(true);
- assert.deepEqual([off.computers, off.shares, off.routes.tailscale], [[], 0, false], "no route, no share");
+test("the switch for other computers changes only the share while the person's Tailscale route is on, and every Tailscale change reaches the share", async () => {
const on = world({ tailscaleOn: true });
await on.links.setTailscaleComputers(true);
- assert.deepEqual([on.computers, on.shares], [[true], 1]);
+ assert.deepEqual([on.computers, on.shares, on.checks, on.wakes], [[true], 1, 0, 0]);
await on.links.checkTailscale();
assert.equal(on.shares, 2);
+ await on.links.setTailscaleComputers(false);
+ assert.deepEqual([on.computers, on.routes.tailscale], [[true, false], true], "a route the person had on stays on");
await on.links.setTailscale(false);
- assert.equal(on.shares, 3);
+ assert.equal(on.shares, 4);
+});
+
+test("turning the share on with Tailscale off turns the route on as the share's, without waking the phone link; turning it off turns that route off again", async () => {
+ const w = world();
+ await w.links.setTailscaleComputers(true);
+ assert.deepEqual([w.routes.tailscale, w.marks, w.names, w.checks, w.wakes, w.shares], [true, [true], ["mac.tail1.ts.net"], 1, 0, 1]);
+ await w.links.setTailscaleComputers(false);
+ assert.deepEqual([w.routes.tailscale, w.shares], [false, 2]);
+});
+
+test("a route the share turned on stays on when a device is paired, which may be using it", async () => {
+ const w = world({ sidecar: { enabled: true, devices: [{ id: "a" }], pairing: null } });
+ await w.links.setTailscaleComputers(true);
+ await w.links.setTailscaleComputers(false);
+ assert.deepEqual([w.routes.tailscale, w.computers], [true, [true, false]]);
+});
+
+test("a route the person turned on themselves after the share is no longer the share's", async () => {
+ const w = world();
+ await w.links.setTailscaleComputers(true);
+ await w.links.setTailscale(false);
+ await w.links.setTailscale(true);
+ assert.deepEqual(w.marks, [true, false]);
+ await w.links.setTailscaleComputers(true);
+ await w.links.setTailscaleComputers(false);
+ assert.equal(w.routes.tailscale, true);
+});
+
+test("the share stays off and says why when Tailscale can't start, and off with no route does nothing", async () => {
+ for (const state of ["not-installed", "signed-out", "needs-approval"]) {
+ const w = world({ check: async () => ({ state }) });
+ const reply = await w.links.setTailscaleComputers(true);
+ assert.equal(reply.tailscaleProblem, state);
+ assert.deepEqual([w.routes.tailscale, w.computers, w.shares], [false, [], 0]);
+ }
+ const off = world();
+ await off.links.setTailscaleComputers(false);
+ assert.deepEqual([off.checks, off.shares, off.routes.tailscale], [0, 0, false]);
});
test("other routes switch on their own, tell main which changed, and wake only when turned on", async () => {
@@ -149,3 +190,8 @@ test("one status reading tells ready, signed out, not running and not allowed ap
assert.ok(!TAILSCALE_CLI_PATHS.some((cli) => /Tailscale\.app/.test(cli)), "no app executable among the candidates");
assert.equal(tailscaleEnvironment({ PATH: "" }).TAILSCALE_BE_CLI, "1");
});
+
+test("a computer waiting for its tailnet's approval is told apart from one signed out", () => {
+ assert.deepEqual(readTailscaleStatus(JSON.stringify({ BackendState: "NeedsMachineAuth", Self: { DNSName: "mac.tail1.ts.net." } })), { state: "needs-approval" });
+ assert.deepEqual(readTailscaleStatus(JSON.stringify({ BackendState: "NeedsLogin" })), { state: "signed-out" });
+});
diff --git a/electron/tailscale-check.mjs b/electron/tailscale-check.mjs
index b075962912..729a23506b 100644
--- a/electron/tailscale-check.mjs
+++ b/electron/tailscale-check.mjs
@@ -45,7 +45,8 @@ const runStatus = (cli) =>
});
/** What one `tailscale status --json` says, in the row's words: ready (with this computer's MagicDNS name, its tailnet
- * addresses and whether the tailnet hands out HTTPS certificates), signed out, not running, or not allowed to ask. */
+ * addresses and whether the tailnet hands out HTTPS certificates), signed out, not running, waiting for the tailnet's
+ * admin to approve this computer, or not allowed to ask. */
export function readTailscaleStatus(stdout, stderr = "") {
const read = readTailscaleStatusJson(stdout);
if (!read) {
@@ -53,7 +54,7 @@ export function readTailscaleStatus(stdout, stderr = "") {
if (/access denied|permission denied|operator|not permitted/.test(text)) return { state: "needs-permission" };
return { state: "not-running" };
}
- if (read.state === "not-running") return { state: "not-running" };
+ if (read.state === "not-running" || read.state === "needs-approval") return { state: read.state };
if (read.state !== "ready" || !read.name) return { state: "signed-out" };
return { state: "ready", name: read.name, addresses: read.addresses, https: read.https };
}
diff --git a/packages/phone-protocol/src/pairing-code.ts b/packages/phone-protocol/src/pairing-code.ts
index 5c8129b9fe..5293b14868 100644
--- a/packages/phone-protocol/src/pairing-code.ts
+++ b/packages/phone-protocol/src/pairing-code.ts
@@ -30,7 +30,7 @@ export type PairingInputProblem = "emailCode" | "oldCode" | "scriptKey" | "notAC
/** English for each problem; src/locales/en.json carries the same sentences under the same keys. */
export const PAIRING_INPUT_PROBLEM_TEXT = {
"serverError.pair.emailCode": "That's a sign-in code from an email. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "That's a code from an older MausBot. Make a new one on the other computer: Phone & devices → Pair a device.",
+ "serverError.pair.oldCode": "That code is for the phone app. Pairing here needs a 12-character code like 7KQ2-M9XD-H4TP, made in Settings → Phone & devices on the computer or server you are connecting to.",
"serverError.pair.scriptKey": "That's a script key. Pairing needs a pairing code.",
"serverError.pair.notACode": "That isn't a pairing code. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
} as const;
diff --git a/src/components/PhoneDevicesSection.page.test.ts b/src/components/PhoneDevicesSection.page.test.ts
index eae2247e54..35ff6a7e75 100644
--- a/src/components/PhoneDevicesSection.page.test.ts
+++ b/src/components/PhoneDevicesSection.page.test.ts
@@ -4,19 +4,19 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
import type { CompanionState, PhoneSetupController } from "./PhoneSetupFlow";
-const f = vi.hoisted(() => ({ state: null as object | null }));
+const f = vi.hoisted(() => ({ state: null as object | null, bridge: {} as object, account: null as object | null }));
vi.mock("@/state/store", () => ({ useStore: () => ({ state: { config: {} } }) }));
vi.mock("./PhonesList", () => ({ PhonesList: () => null }));
vi.mock("./PhoneSetupFlow", () => ({
- companionBridge: () => ({}),
+ companionBridge: () => f.bridge,
companionAccountBridge: () => null,
- usePhoneSetupController: () => ({ state: f.state, busy: false, accountBusy: false, account: null, accountAct: () => undefined, act: vi.fn(), accountError: null, error: null, useLocal: vi.fn(), start: vi.fn(), cancel: vi.fn(), refreshTailscale: vi.fn() }),
+ usePhoneSetupController: () => ({ state: f.state, busy: false, accountBusy: false, account: f.account, accountAct: () => undefined, act: vi.fn(), accountError: null, error: null, useLocal: vi.fn(), start: vi.fn(), cancel: vi.fn(), refreshTailscale: vi.fn() }),
PhoneSetupFlowView: () => "PAIRING_CODE_VIEW",
companionAccountActionError: () => null,
loadCompanionBridgeState: () => null,
shouldHydrateCompanionEmail: () => false,
}));
-import { OpenCodeRow, PairDeviceDialog, PhoneDevicesSection, reachLine, routeStateText } from "./PhoneDevicesSection";
+import { OpenCodeRow, PairDeviceDialog, PhoneDevicesSection, reachLine, routeStateText, showHttpsAddressRow } from "./PhoneDevicesSection";
const off = { on: false, since: null };
const NOV_7 = new Date(2026, 10, 7).getTime();
@@ -32,6 +32,8 @@ const c = () => ({ busy: false, act: vi.fn(), useLocal: vi.fn(), start: vi.fn(),
const page = (simple = false) => renderToStaticMarkup(createElement(PhoneDevicesSection, { simple })).replaceAll("&#x27;", "'");
beforeEach(() => {
+ f.bridge = {};
+ f.account = null;
f.state = state();
});
@@ -83,6 +85,74 @@ describe("Phone & devices", () => {
});
});
+describe("Your other computers", () => {
+ it("shows in Simple mode with nothing on, outside More ways in, and in Advanced the same", () => {
+ for (const simple of [true, false]) {
+ const html = page(simple);
+ expect(html, String(simple)).toMatch(/data-settings-block="computers"[\s\S]*?Your other computers[\s\S]*?Needs Tailscale on both\.[\s\S]*?data-route-row="tailscale-computers"[\s\S]*?role="switch"/);
+ expect(html, String(simple)).not.toContain("More ways in");
+ }
+ });
+
+ it("stays its own row once Tailscale is on, after the ways a phone reaches this computer", () => {
+ f.state = state({ routes: routes({ tailscale: true }) });
+ const html = page(true);
+ expect(html).toMatch(/data-settings-block="reach"[\s\S]*?data-route-row="tailscale"[\s\S]*?data-settings-block="computers"[\s\S]*?data-route-row="tailscale-computers"/);
+ expect(html.match(/data-route-row="tailscale-computers"/g)).toHaveLength(1);
+ });
+});
+
+describe("Keep this computer awake", () => {
+ const awake = (html: string) => html.match(/<div role="group"[^>]*>(?:(?!<div role="group").)*?Keep this computer awake[\s\S]*?<button[^>]*role="switch"[^>]*>/)![0];
+
+ it("can be turned on when Your other computers is the only way in that is on", () => {
+ f.state = state({ routes: { ...routes({ tailscale: true }), tailscale: { on: true, since: NOV_7, name: "mac.tail1.ts.net", computers: true } } });
+ const row = awake(page(true));
+ expect(row).not.toContain("data-settings-inert");
+ expect(row).not.toContain('disabled=""');
+ f.state = state();
+ expect(page(true)).not.toContain("Keep this computer awake");
+ });
+});
+
+describe("the HTTPS address row", () => {
+ const current = { renewPairing: async () => state() };
+ const held = { available: true, status: "ready", endpoint: "https://c-0123456789abcdef0123456789abcdef.mausbot.si" };
+
+ it("is hidden on a build with the encrypted connection that holds no web address, whether or not the phone link is running", () => {
+ expect(showHttpsAddressRow({ routes: routes({ wifi: true }) }, null, current)).toBe(false);
+ expect(showHttpsAddressRow({ routes: routes() }, { }, current)).toBe(false);
+ f.bridge = current;
+ f.account = { available: true, status: "ready" };
+ for (const enabled of [false, true]) {
+ f.state = state({ enabled, routes: routes({ wifi: true, tailscale: true }) });
+ const html = page(false);
+ expect(html).toMatch(/data-settings-disclosure="more-ways"[\s\S]*?aria-expanded="true"[\s\S]*?data-route-row="tailscale"/);
+ expect(html).not.toContain('data-route-row="https"');
+ expect(html).not.toContain("HTTPS address");
+ }
+ });
+
+ it("stays while the account still holds an address, with Set up when the route is off", () => {
+ expect(showHttpsAddressRow({ routes: routes() }, held, current)).toBe(true);
+ f.bridge = current;
+ f.account = held;
+ f.state = state({ routes: routes({ wifi: true, tailscale: true }) });
+ expect(page(false)).toMatch(/HTTPS address[\s\S]*?data-route-row="https"[\s\S]*?>Set up</);
+ });
+
+ it("stays while the route is on, and on a build before the encrypted connection", () => {
+ expect(showHttpsAddressRow({ routes: routes({ https: true }) }, null, current)).toBe(true);
+ expect(showHttpsAddressRow({ routes: routes() }, null, {})).toBe(true);
+ expect(showHttpsAddressRow({ routes: routes() }, null, null)).toBe(true);
+ f.bridge = current;
+ f.state = state({ routes: routes({ https: true }), endpoints: [{ url: held.endpoint, kind: "hosted", priority: 0 }] });
+ const html = page(true);
+ expect(html).toMatch(/HTTPS address[\s\S]*?data-route-row="https"[\s\S]*?>Turn off</);
+ expect(html).toContain("On · c-0123456789abcdef0123456789abcdef.mausbot.si");
+ });
+});
+
describe("Pair a device", () => {
const dialog = (overrides: Partial<CompanionState> = {}, props: Record<string, unknown> = {}) =>
renderToStaticMarkup(createElement(PairDeviceDialog, { c: c(), state: state(overrides), onClose: () => {}, ...props })).replaceAll("&#x27;", "'");
diff --git a/src/components/PhoneDevicesSection.tsx b/src/components/PhoneDevicesSection.tsx
index bd5484f2d6..6f1928bee8 100644
--- a/src/components/PhoneDevicesSection.tsx
+++ b/src/components/PhoneDevicesSection.tsx
@@ -60,6 +60,7 @@ export function deriveTailscalePairingStatus(
if (state.tailscaleProblem === "no-cli") return { kind: "signed-out", title: t("remote.tailscale.noCli"), detail: "" };
if (state.tailscaleProblem === "not-running") return { kind: "signed-out", title: t("remote.tailscale.notRunning"), detail: "" };
if (state.tailscaleProblem === "needs-permission") return { kind: "signed-out", title: t("remote.tailscale.needsPermission", { app: productName() }), detail: "" };
+ if (state.tailscaleProblem === "needs-approval") return { kind: "signed-out", title: t("remote.tailscale.needsApproval"), detail: "" };
if (state.tailscaleProblem === "signed-out") return { kind: "signed-out", title: t("remote.tailscale.signIn"), detail: "" };
if (state.error) return { kind: "error", title: t("remote.status.attention"), detail: state.error };
const route = state.routes?.tailscale;
@@ -71,6 +72,12 @@ export function deriveTailscalePairingStatus(
: { kind: "waiting", title, detail: t("remote.tailscale.linkOff") };
}
+/** The control plane gives a build with the encrypted connection no free web address (`relay_capable`): there the row
+ * shows only while the route is on or the account still holds an address. `renewPairing` is what such a build's bridge adds. */
+export function showHttpsAddressRow(state: Pick<CompanionState, "routes">, account: Pick<CompanionAccountState, "endpoint"> | null, bridge: Pick<CompanionBridge, "renewPairing"> | null): boolean {
+ return state.routes?.https?.on === true || Boolean(account?.endpoint) || typeof bridge?.renewPairing !== "function";
+}
+
/** Older app builds have no switch: on falls back to the check that turns it on, and off cannot be asked of them. */
export function setCompanionTailscale(companion: CompanionBridge, on: boolean): Promise<CompanionState> {
if (companion.setTailscale) return companion.setTailscale(on);
@@ -495,7 +502,7 @@ export function PhoneDevicesSection({ profileEmail = "", focusRequest = 0, simpl
onClick={() => void c.act((companion) => setCompanionTailscale(companion, !tailscaleOn))} />
</span>
</SettingRow>
- <SettingRow title={t("devices.route.https")} subtitle={t("devices.route.httpsDetail", { app: productName() })}
+ {showHttpsAddressRow(state, c.account, companionBridge()) && <SettingRow title={t("devices.route.https")} subtitle={t("devices.route.httpsDetail", { app: productName() })}
message={(httpsOn && hosted) || c.account?.status === "ready" || accountActionError ? <>
{httpsOn && hosted ? t("devices.route.httpsOn", { address: endpointHost(hosted.url) }) : null}
{c.account?.status === "ready" && <span className="block">{t("devices.route.httpsAccount", { app: productName() })}</span>}
@@ -508,13 +515,13 @@ export function PhoneDevicesSection({ profileEmail = "", focusRequest = 0, simpl
<button type="button" className="ui-button" disabled={c.busy || c.accountBusy || Boolean(managedBy)} onClick={() => setPairing("https")}>{t("devices.route.setUp")}</button>
)}
</span>
- </SettingRow>
+ </SettingRow>}
</SettingsFoldRow>
)}
</SettingsRows>
- {moreOpen && tailscaleOn && state.routes?.tailscale?.name && <TailnetComputers c={c} state={state} blocked={managedBy} simple={simple} />}
</SettingsGroup>
)}
+ <TailnetComputers c={c} state={state} blocked={managedBy} simple={simple} status={tailscaleStatus} />
<PhonesList />
{(c.error || state.error) && <div className="px-4 text-[12px] leading-4 text-danger">{c.error ?? state.error}</div>}
</div>
diff --git a/src/components/PlaceAddSheet.tsx b/src/components/PlaceAddSheet.tsx
index 3d8ae5c933..9b6165753a 100644
--- a/src/components/PlaceAddSheet.tsx
+++ b/src/components/PlaceAddSheet.tsx
@@ -11,6 +11,7 @@ import { track } from "@/lib/analytics";
import { cn } from "@/lib/cn";
import { CLOUD_LIST_NAME_LIMIT, CLOUD_SWATCH_ORDER, SWATCH_COLOR, swatchFill } from "@/lib/cloud-extra";
import { useCopyFeedback } from "@/lib/copy-text";
+import { productName } from "@/lib/brand";
import { t } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
import { computerName, createLocal, placeInitials, suggestedLocalName } from "@/lib/places";
@@ -115,6 +116,7 @@ export function OwnServerLink({ onBack, onConnected, connect = null, start = nul
placeholder={t("connect.addressPlaceholder")} autoCapitalize="none" autoCorrect="off" autoComplete="off" spellCheck={false} aria-invalid={Boolean(shownProblem) || undefined}
className="w-full rounded-lg border border-hairline/40 bg-inset px-3 py-2 text-[14px] font-normal text-ink outline-none focus:border-accent/50" />
</label>
+ {!connect && !start && <p data-connect-other-computer className="text-[12px] leading-4 text-ink-secondary">{t("connect.otherComputer", { app: productName() })}</p>}
{codeOnlyHint && <p data-connect-hint className="text-[13px] text-ink-secondary">{t("connect.addAddress", { example: EXAMPLE_ADDRESS })}</p>}
{found && <p data-connect-found className="text-[13px] text-ink-secondary">
✓ {found.version ? t("connect.found", { name: found.label, version: found.version }) : found.label} · {t(TRANSPORT_KEY[found.transport])}
diff --git a/src/components/PlacesRail.test.ts b/src/components/PlacesRail.test.ts
index 910e7fd19b..8419a170c2 100644
--- a/src/components/PlacesRail.test.ts
+++ b/src/components/PlacesRail.test.ts
@@ -263,7 +263,7 @@ it("Connect to a server never sits grey without saying why: it says it is lookin
expect(form.querySelector("[data-connect-problem]")?.textContent).toBe("Can't reach 192.168.1.21:8799. Check the server is running and reachable from this computer.");
});
-it("Connect to a server says plainly that another computer's desktop app can't be connected to, and points to My Cloud", async () => {
+it("Connect to a server says how another computer's desktop app is opened from here: its Your other computers link, or My Cloud", async () => {
const probe = vi.fn(async (address: string): Promise<unknown> => (address === "123456"
? { outcome: "problem", problem: "oldCode" }
: { outcome: "problem", problem: "desktopApp", host: "192.168.1.30:8799" }));
@@ -272,17 +272,20 @@ it("Connect to a server says plainly that another computer's desktop app can't b
await click(host.querySelector("[data-rail-add]"));
await click(document.querySelector('[data-place-add-choice="server"]'));
const form = document.querySelector('[data-place-add="own-server"]')!;
+ expect(form.querySelector("[data-connect-other-computer]")?.textContent).toBe("For another computer running the MausBot app: on that computer, open Settings → Phone & devices → Your other computers.");
await type(form.querySelector("[data-own-server-link]"), "192.168.1.30:8799");
await settle();
const line = form.querySelector("[data-connect-problem]")?.textContent ?? "";
- expect(line).toContain("192.168.1.30:8799 is a MausBot desktop app, and one desktop app can't connect to another");
+ expect(line).toContain("192.168.1.30:8799 is a MausBot desktop app. To open it from here, turn on Tailscale and Your other computers in its Settings → Phone & devices, then use the link shown there.");
expect(line).toContain("My Cloud");
- expect(line).not.toContain("isn't a MausBot server");
+ expect(line).not.toMatch(/can't connect to another|isn't a MausBot server/);
expect((form.querySelector("[data-own-server-connect]") as HTMLButtonElement).disabled).toBe(true);
- // The 6-digit code a desktop app shows for pairing a phone gets the same pointer, not "a code from an older MausBot".
await type(form.querySelector("[data-own-server-link]"), "123456");
await settle();
- expect(form.querySelector("[data-connect-problem]")?.textContent).toContain("That 6-digit code pairs a phone with a desktop app");
+ const code = form.querySelector("[data-connect-problem]")?.textContent ?? "";
+ expect(code).toContain("That code is for the phone app. To open that computer from here, turn on Tailscale and Your other computers in its Settings → Phone & devices, then use the link shown there.");
+ expect(code).toContain("My Cloud");
+ expect(code).not.toMatch(/can't connect to another|older MausBot/);
});
it("an address typed key by key stays in its box; a pasted one moves on to the code", async () => {
diff --git a/src/components/ServerPairingCard.computer.dom.test.ts b/src/components/ServerPairingCard.computer.dom.test.ts
index 4c6ed1a571..e9e63e22be 100644
--- a/src/components/ServerPairingCard.computer.dom.test.ts
+++ b/src/components/ServerPairingCard.computer.dom.test.ts
@@ -15,7 +15,7 @@ vi.mock("../lib/session", async (original) => ({
...await original<typeof import("../lib/session")>(),
readSessionState: async () => ({ kind: "loopback" }),
}));
-const { ServerPairingCard } = await import("./ServerPairingCard");
+const { ServerPairingCard, computerLink } = await import("./ServerPairingCard");
let host: HTMLDivElement;
let root: Root;
@@ -31,30 +31,48 @@ afterEach(() => {
});
async function openDialog(forComputer: boolean) {
- flushSync(() => root.render(createElement(ServerPairingCard, { simple: true, reveal: false, forComputer })));
+ flushSync(() => root.render(createElement(ServerPairingCard, { simple: true, reveal: false, forComputer, address: forComputer ? "http://macmini.tail1234.ts.net:8799" : null })));
const button = await vi.waitFor(() => {
const found = [...host.querySelectorAll("button")].find((b) => (b.textContent ?? "").startsWith("Pair a"));
expect(found).toBeDefined();
return found!;
});
const label = button.textContent;
+ const rowText = host.textContent ?? "";
button.click();
const dialog = await vi.waitFor(() => {
const found = document.querySelector("[data-pair-dialog='code']");
expect(found).not.toBeNull();
return found!;
});
- return { label, title: dialog.getAttribute("aria-label"), text: dialog.querySelector("[data-pair-instructions]")?.textContent ?? "", qr: dialog.querySelector("[data-pair-qr]") !== null, all: dialog.textContent ?? "" };
+ return {
+ label, rowText, dialog, title: dialog.getAttribute("aria-label"), text: dialog.querySelector("[data-pair-instructions]")?.textContent ?? "",
+ qr: dialog.querySelector("[data-pair-qr]") !== null, all: dialog.textContent ?? "",
+ buttons: [...dialog.querySelectorAll("button")].filter((b) => b.textContent).map((b) => ({ text: b.textContent, primary: b.classList.contains("ui-button-primary") })),
+ };
}
-it("tells the person to type the code on their other computer, not to install the phone app", async () => {
+it("shows another computer the address with the code, and makes Copy link the main button", async () => {
+ const writeText = vi.fn(async () => {});
+ Object.defineProperty(navigator, "clipboard", { value: { writeText }, configurable: true });
const computer = await openDialog(true);
expect(computer.label).toBe("Pair a computer");
+ expect(computer.rowText).toContain("Pair another computer");
+ expect(computer.rowText).not.toMatch(/phone/i);
expect(computer.title).toBe("Pair another computer");
- expect(computer.text).toContain("On your other computer, open Connect to a server");
- expect(computer.text).not.toMatch(/phone/i);
+ expect(computer.text).toBe("On your other computer, open Connect to a server in MausBot and paste the link you copy here. Or type this address and code there.");
+ expect(computer.dialog.querySelector("[data-pairing-address]")?.textContent).toBe("http://macmini.tail1234.ts.net:8799");
+ expect(computer.dialog.querySelector("[data-pairing-code]")?.textContent).toBe("ABCD-EFGH-IJKL");
expect(computer.qr).toBe(false);
expect(computer.all).not.toMatch(/phone|scan/i);
+ expect(computer.buttons).toEqual([{ text: "Done", primary: false }, { text: "Copy link", primary: true }]);
+ computer.dialog.querySelector<HTMLButtonElement>("[data-copy-link]")!.click();
+ await vi.waitFor(() => expect(writeText).toHaveBeenCalledWith("http://macmini.tail1234.ts.net:8799/pair#code=ABCD-EFGH-IJKL"));
+});
+
+it("makes the link from the shared address when the server gave none", () => {
+ expect(computerLink({ url: null, code: "ABCD-EFGH-IJKL" }, "https://macmini.tail1234.ts.net")).toEqual({ link: "https://macmini.tail1234.ts.net/pair#code=ABCD-EFGH-IJKL", address: "https://macmini.tail1234.ts.net" });
+ expect(computerLink({ url: null, code: "ABCD-EFGH-IJKL" }, null)).toBeNull();
});
it("keeps the phone wording for phones", async () => {
@@ -62,4 +80,6 @@ it("keeps the phone wording for phones", async () => {
expect(phone.label).toBe("Pair a phone");
expect(phone.text).toContain("on your phone");
expect(phone.qr).toBe(true);
+ expect(phone.dialog.querySelector("[data-pairing-address]")).toBeNull();
+ expect(phone.buttons).toEqual([{ text: "Copy link", primary: false }, { text: "Done", primary: true }]);
});
diff --git a/src/components/ServerPairingCard.tsx b/src/components/ServerPairingCard.tsx
index 3b80bc3fb2..e5f0d4bfe3 100644
--- a/src/components/ServerPairingCard.tsx
+++ b/src/components/ServerPairingCard.tsx
@@ -8,7 +8,7 @@ import { isOwnerOrAdmin, readSessionState, type SessionState } from "../lib/sess
import { readMembership } from "../lib/membership";
import { codeUntil, lastSeen } from "../lib/pairing-time";
import { revealPhonePairing, takePairOnOpen } from "../lib/phone-pairing";
-import { SettingsGroup, SettingsRows } from "./SettingsPrimitives";
+import { SettingRow, SettingsGroup, SettingsRows } from "./SettingsPrimitives";
import { Layer } from "./Layer";
import { DialogTitle, PairRow } from "./PhoneDevicesSection";
import { Smartphone } from "lucide-react";
@@ -69,12 +69,23 @@ export function sameWifiOnlyLink(url: string | null): boolean {
}
}
+/** The link another computer pastes into Connect to a server, and the address it names: the server's own link, else one made from the shared address. */
+export function computerLink(offer: Pick<PairingOffer, "url" | "code">, address: string | null): { link: string; address: string } | null {
+ const link = offer.url ?? (address ? `${address}/pair#code=${offer.code}` : null);
+ if (!link) return null;
+ try {
+ return { link, address: new URL(link).origin };
+ } catch {
+ return null;
+ }
+}
+
export function shownDevices(devices: PairedDevice[], cloudHome: boolean): PairedDevice[] {
return cloudHome ? devices.filter((device) => device.scopes.includes("admin")) : devices;
}
-export function ServerPairingCard({ initialSession = null, initialPairingCodes = true, cloudHome = false, focusRequest = 0, team, teamPhoneBlocked = null, simple = false, reveal = true, placeName = "", forComputer = false }: { placeName?: string; /** True under "Your other computers": the code is for another computer, not a phone. */ forComputer?: boolean; initialSession?: SessionState | null; initialPairingCodes?: boolean; cloudHome?: boolean; focusRequest?: number; team?: string; teamPhoneBlocked?: string | null; simple?: boolean; /** False where another pairing flow owns the page's focus. */ reveal?: boolean }) {
+export function ServerPairingCard({ initialSession = null, initialPairingCodes = true, cloudHome = false, focusRequest = 0, team, teamPhoneBlocked = null, simple = false, reveal = true, placeName = "", forComputer = false, address = null }: { placeName?: string; /** True under "Your other computers": the code is for another computer, not a phone. */ forComputer?: boolean; /** Where another computer reaches this one, shown beside its code. */ address?: string | null; initialSession?: SessionState | null; initialPairingCodes?: boolean; cloudHome?: boolean; focusRequest?: number; team?: string; teamPhoneBlocked?: string | null; simple?: boolean; /** False where another pairing flow owns the page's focus. */ reveal?: boolean }) {
const [session, setSession] = useState<SessionState | null>(initialSession);
const [pairingCodes, setPairingCodes] = useState(initialPairingCodes);
const [computerName, setComputerName] = useState<string | null>(null);
@@ -179,9 +190,11 @@ export function ServerPairingCard({ initialSession = null, initialPairingCodes =
}
}
+ const forOtherComputer = forComputer && offer ? computerLink(offer, address) : null;
+ const link = forOtherComputer?.link ?? offer?.url ?? null;
async function copyLink() {
- if (!offer?.url) return;
- const result = await copyText(offer.url);
+ if (!link) return;
+ const result = await copyText(link);
if (result !== "empty") setCopied(result);
}
@@ -211,7 +224,14 @@ export function ServerPairingCard({ initialSession = null, initialPairingCodes =
<p className="text-[12px] leading-4 text-ink-secondary">{t("phone.code.notCamera", { app: productName() })}</p>
</> : <p className="text-[14px] leading-5 text-ink">{t("phone.code.typeThis", { app: productName() })}</p>}
</div>
+ {forOtherComputer && (
+ <div className="flex flex-col gap-1">
+ <div className="text-[12px] leading-4 text-ink-secondary">{t("devices.computers.address")}</div>
+ <div className="select-text break-all text-[14px] leading-5 text-ink" data-pairing-address="">{forOtherComputer.address}</div>
+ </div>
+ )}
<div className="flex flex-col gap-1">
+ {forOtherComputer && <div className="text-[12px] leading-4 text-ink-secondary">{t("connect.code")}</div>}
<div className="text-[20px] font-medium leading-7 tracking-[0.08em] text-ink tabular-nums" data-pairing-code="">{offer.code}</div>
<div className="text-[12px] leading-4 text-ink-secondary">{codeUntil(offer.expiresAt)}</div>
</div>
@@ -221,13 +241,18 @@ export function ServerPairingCard({ initialSession = null, initialPairingCodes =
</div>
)}
<div className="flex items-center justify-end gap-2">
- {!expired && offer.url && (
+ {!expired && link && !forOtherComputer && (
<button type="button" onClick={() => void copyLink()} className="ui-button mr-auto">
{t(copied === "copied" ? "remote.serverPairing.copied" : copied === "failed" ? "common.copyFailed" : "remote.serverPairing.copyLink")}
</button>
)}
{expired && <button type="button" className="ui-button" onClick={() => void create()}>{t("remote.serverPairing.create")}</button>}
- <button type="button" className="ui-button ui-button-primary" onClick={() => setOffer(null)}>{t("devices.pair.done")}</button>
+ <button type="button" className={cn("ui-button", (expired || !forOtherComputer) && "ui-button-primary")} onClick={() => setOffer(null)}>{t("devices.pair.done")}</button>
+ {!expired && forOtherComputer && (
+ <button type="button" onClick={() => void copyLink()} className="ui-button ui-button-primary" data-copy-link="">
+ {t(copied === "copied" ? "remote.serverPairing.copied" : copied === "failed" ? "common.copyFailed" : "remote.serverPairing.copyLink")}
+ </button>
+ )}
</div>
</div>
</div>
@@ -248,7 +273,11 @@ export function ServerPairingCard({ initialSession = null, initialPairingCodes =
) : null;
const nameRow = !simple && pairingCodes && !cloudHome && computerName !== null
? <SettingsRows><ComputerNameRow saved={computerName} onSaved={setComputerName} className="px-4 py-3" /></SettingsRows> : null;
- const pairRow = (
+ const pairRow = forComputer ? (
+ <SettingRow title={t("devices.computers.pairTitle")} subtitle={t("devices.computers.pairLine")} message={pairingCodes ? undefined : t("remote.serverPairing.portalShort")}>
+ {choices}{pairButton}
+ </SettingRow>
+ ) : (
<PairRow reason={pairingCodes ? null : t("remote.serverPairing.portalShort")}>
{choices}{pairButton}
</PairRow>
diff --git a/src/components/TailnetComputers.test.ts b/src/components/TailnetComputers.test.ts
index 53743237ce..882ea06cfc 100644
--- a/src/components/TailnetComputers.test.ts
+++ b/src/components/TailnetComputers.test.ts
@@ -1,35 +1,40 @@
+// @vitest-environment happy-dom
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it, vi } from "vitest";
+import type { CompanionBridge } from "../lib/companion-types";
import type { CompanionState, PhoneSetupController } from "./PhoneSetupFlow";
-import { TailnetComputers, tailnetShareLine } from "./TailnetComputers";
+vi.mock("@/state/store", () => ({ useStore: () => ({ state: { config: {} } }) }));
+vi.mock("./PhonesList", () => ({ PhonesList: () => null }));
vi.mock("./ServerPairingCard", async () => {
const { createElement: h } = await import("react");
- return { ServerPairingCard: (props: { forComputer?: boolean }) => h("div", { "data-pairing-card": props.forComputer ? "computer" : "phone" }) };
+ return { ServerPairingCard: (props: { forComputer?: boolean; address?: string | null }) => h("div", { "data-pairing-card": props.forComputer ? "computer" : "phone", "data-address": props.address }) };
});
vi.mock("../lib/session", async (original) => ({ ...await original<typeof import("../lib/session")>(), readSessionState: async () => ({ kind: "loopback" }) }));
-const controller = { busy: false, accountBusy: false, act: async () => {} } as unknown as PhoneSetupController;
-const row = (computers: boolean, tailnetShare?: CompanionState["tailnetShare"], blocked: string | null = null) => renderToStaticMarkup(createElement(TailnetComputers, {
- c: controller, blocked, simple: true,
- state: { routes: { tailscale: { on: true, since: 1, name: "macmini.tail1234.ts.net", computers } }, tailnetShare } as unknown as CompanionState,
-}));
+const { deriveTailscalePairingStatus } = await import("./PhoneDevicesSection");
+const { TailnetComputers, tailnetShareLine } = await import("./TailnetComputers");
-const off = { on: false, origin: null, https: false, problem: null };
+const controller = { busy: false, accountBusy: false, act: async () => {} } as unknown as PhoneSetupController;
+const tailscale = (on: boolean, computers = false) => (on ? { on: true, since: 1, name: "macmini.tail1234.ts.net", computers } : { on: false, since: null });
+const row = (state: Partial<CompanionState>, blocked: string | null = null) => renderToStaticMarkup(createElement(TailnetComputers, {
+ c: controller, blocked, simple: true, state: state as CompanionState, status: deriveTailscalePairingStatus(state as CompanionState),
+})).replaceAll("&#x27;", "'");
+const shared = { on: true, origin: "http://macmini.tail1234.ts.net:8799", https: false, problem: null };
describe("the line under Your other computers", () => {
it("says nothing while the share is off", () => {
expect(tailnetShareLine(undefined)).toBeNull();
- expect(tailnetShareLine(off)).toBeNull();
+ expect(tailnetShareLine({ on: false, origin: null, https: false, problem: null })).toBeNull();
});
it("names the exact address another computer opens, and how it is protected", () => {
const https = tailnetShareLine({ on: true, origin: "https://macmini.tail1234.ts.net", https: true, problem: null });
expect(https).toContain("https://macmini.tail1234.ts.net");
expect(https).toContain("HTTPS certificate");
- const http = tailnetShareLine({ on: true, origin: "http://macmini.tail1234.ts.net:8799", https: false, problem: null });
+ const http = tailnetShareLine(shared);
expect(http).toContain("http://macmini.tail1234.ts.net:8799");
expect(http).toContain("WireGuard");
});
@@ -39,22 +44,76 @@ describe("the line under Your other computers", () => {
});
});
-describe("the row under the Tailscale route", () => {
- it("is off with a Turn on button until the person chooses, and an organization's policy disables it", () => {
- const off = row(false);
- expect(off).toContain("Turn on");
+describe("the Your other computers row", () => {
+ it("is there with Tailscale off: a switch that is off, and what it is for in plain words", () => {
+ const off = row({ routes: { tailscale: tailscale(false) } as CompanionState["routes"] });
+ expect(off).toContain('data-settings-block="computers"');
+ expect(off).toContain("Your other computers");
+ expect(off).toContain("Open this computer's bots from another computer signed in to the same Tailscale account. Needs Tailscale on both.");
+ expect(off).not.toContain("tailnet");
+ expect(off).toMatch(/role="switch"[^>]*aria-checked="false"/);
expect(off).not.toContain("data-tailnet-share");
- expect(row(false, undefined, "Managed by Acme")).toContain("disabled");
+ expect(off).not.toContain("data-pairing-card");
+ });
+
+ it("says Tailscale isn't installed in the Tailscale check's own words, with where to get it", () => {
+ const missing = row({ routes: { tailscale: tailscale(false) } as CompanionState["routes"], tailscaleProblem: "not-installed" });
+ expect(missing).toContain('data-tailnet-trouble="not-installed"');
+ expect(missing).toContain("Tailscale isn't installed on this computer.");
+ expect(missing).toContain(">Get Tailscale<");
});
- it("shows the address and Turn off once it is on", () => {
- const on = row(true, { on: true, origin: "http://macmini.tail1234.ts.net:8799", https: false, problem: null });
- expect(on).toContain("Turn off");
+ it("an organization's policy disables turning it on", () => {
+ expect(row({ routes: { tailscale: tailscale(true) } as CompanionState["routes"] }, "Managed by Acme")).toMatch(/<button[^>]*disabled=""[^>]*role="switch"/);
+ });
+
+ it("shows the address, a switch that is on, and a code made for another computer, not a phone", () => {
+ const on = row({ routes: { tailscale: tailscale(true, true) } as CompanionState["routes"], tailnetShare: shared });
+ expect(on).toMatch(/role="switch"[^>]*aria-checked="true"/);
expect(on).toContain("data-tailnet-share");
expect(on).toContain("http://macmini.tail1234.ts.net:8799");
+ expect(on).toContain('data-pairing-card="computer"');
+ expect(on).toContain('data-address="http://macmini.tail1234.ts.net:8799"');
});
+});
+
+describe("what the row says when nothing answers", () => {
+ const sharing = { on: true, origin: null, https: false, problem: "signed-out" };
+
+ it("with the share on and no MagicDNS name, says what to fix, not that Tailscale isn't connected", () => {
+ const html = row({ routes: { tailscale: { on: true, since: 1, name: null, computers: true } } as CompanionState["routes"], tailnetShare: sharing });
+ expect(html).toContain('data-tailnet-trouble="magicdns"');
+ expect(html).toContain("Turn on MagicDNS in Tailscale");
+ expect(html).not.toContain("isn't connected on this computer yet");
+ expect(html).not.toContain("data-pairing-card");
+ });
+
+ it("says Tailscale isn't connected only when Tailscale itself gives no reason", () => {
+ const html = row({ routes: { tailscale: tailscale(true, true) } as CompanionState["routes"], tailnetShare: sharing });
+ expect(html).toContain("isn't connected on this computer yet");
+ expect(html).not.toContain("data-tailnet-trouble");
+ });
+
+ it("says the computer is waiting for approval on the Tailscale network when that is why the switch stayed off", () => {
+ const html = row({ routes: { tailscale: tailscale(false) } as CompanionState["routes"], tailscaleProblem: "needs-approval" });
+ expect(html).toContain("This computer is waiting for approval on your Tailscale network. Approve it in the Tailscale admin console, then try again.");
+ expect(html).toMatch(/<button[^>]*role="switch"[^>]*aria-checked="false"/);
+ });
+});
- it("makes a code for another computer, not a phone", () => {
- expect(row(true, { on: true, origin: "http://macmini.tail1234.ts.net:8799", https: false, problem: null })).toContain('data-pairing-card="computer"');
+describe("the switch", () => {
+ it("asks the app for the share only: the app turns Tailscale on and off with it", async () => {
+ const calls: string[] = [];
+ const companion = { state: async () => ({}) as CompanionState, setTailscale: async () => { calls.push("tailscale"); return {} as CompanionState; }, setTailscaleComputers: async (on: boolean) => { calls.push(`computers:${on}`); return {} as CompanionState; } } as unknown as CompanionBridge;
+ const act = vi.fn(async (call: (bridge: CompanionBridge) => Promise<CompanionState>) => call(companion));
+ const { createRoot } = await import("react-dom/client");
+ const { flushSync } = await import("react-dom");
+ const host = document.createElement("div");
+ const root = createRoot(host);
+ const state = { routes: { tailscale: tailscale(false) } } as unknown as CompanionState;
+ flushSync(() => root.render(createElement(TailnetComputers, { c: { busy: false, accountBusy: false, act } as unknown as PhoneSetupController, blocked: null, simple: true, state, status: deriveTailscalePairingStatus(state) })));
+ host.querySelector<HTMLButtonElement>('[role="switch"]')!.click();
+ await vi.waitFor(() => expect(calls).toEqual(["computers:true"]));
+ flushSync(() => root.unmount());
});
});
diff --git a/src/components/TailnetComputers.tsx b/src/components/TailnetComputers.tsx
index 436ab0e325..36b04bc4ae 100644
--- a/src/components/TailnetComputers.tsx
+++ b/src/components/TailnetComputers.tsx
@@ -2,9 +2,9 @@ import { t } from "@/lib/i18n";
import { productName } from "../lib/brand";
import type { TailnetShareState } from "../lib/companion-types";
import type { CompanionState, PhoneSetupController } from "./PhoneSetupFlow";
+import type { TailscalePairingStatus } from "./PhoneDevicesSection";
import { ServerPairingCard } from "./ServerPairingCard";
-
-const button = "rounded-lg border border-hairline/40 px-3 py-1.5 text-[12px] text-ink hover:bg-control disabled:opacity-40";
+import { SettingRow, SettingsGroup, SettingsRows, Switch } from "./SettingsPrimitives";
/** What the row says about the share right now; null while it is off. */
export function tailnetShareLine(share: TailnetShareState | undefined): string | null {
@@ -13,24 +13,34 @@ export function tailnetShareLine(share: TailnetShareState | undefined): string |
return t(share.https ? "devices.computers.https" : "devices.computers.http", { address: share.origin });
}
-/** Under the Tailscale route: lets the person's other computers open this one, and makes them a pairing code. */
-export function TailnetComputers({ c, state, blocked, simple }: { c: PhoneSetupController; state: CompanionState; blocked: string | null; simple: boolean }) {
- const on = state.routes?.tailscale?.computers === true;
- const line = tailnetShareLine(state.tailnetShare);
+/** Why Tailscale is not ready, in the Tailscale check's own words; null while it is off, or on and fine. */
+function tailscaleTrouble(status: TailscalePairingStatus): string | null {
+ if (status.kind !== "not-installed" && status.kind !== "signed-out" && status.kind !== "magicdns") return null;
+ return status.detail ? `${status.title} ${status.detail}` : status.title;
+}
+
+/** Your other computers: lets them open this one over Tailscale, and makes them a pairing link. */
+export function TailnetComputers({ c, state, blocked, simple, status }: { c: PhoneSetupController; state: CompanionState; blocked: string | null; simple: boolean; status: TailscalePairingStatus }) {
+ const on = state.routes?.tailscale?.on === true && state.routes.tailscale.computers === true;
+ const trouble = tailscaleTrouble(status);
+ // On with nothing answering: Tailscale's own reason says what to fix; "isn't connected yet" is only for when it gives none.
+ const line = on && !(trouble && !state.tailnetShare?.origin) ? tailnetShareLine(state.tailnetShare) : null;
+ const address = on ? state.tailnetShare?.origin ?? null : null;
return (
- <div className="flex flex-col gap-3 border-t border-hairline/30 pt-4" data-route-row="tailscale-computers">
- <div className="flex items-center justify-between gap-4">
- <div className="min-w-0">
- <div className="text-[13px] text-ink">{t("devices.computers.title")}</div>
- <div className="mt-0.5 text-[12px] leading-relaxed text-ink-secondary">{t("devices.computers.detail")}</div>
- {on && line && <div data-tailnet-share className="mt-1 break-words text-[12px] leading-relaxed text-ink" aria-live="polite">{line}</div>}
- </div>
- <button type="button" className={button} disabled={c.busy || c.accountBusy || (Boolean(blocked) && !on)} title={blocked ?? undefined}
- onClick={() => void c.act((companion) => companion.setTailscaleComputers?.(!on) ?? companion.state())}>
- {on ? t("devices.route.turnOff") : t("devices.route.turnOn")}
- </button>
- </div>
- {on && state.tailnetShare?.origin && <ServerPairingCard simple={simple} reveal={false} forComputer />}
- </div>
+ <>
+ <SettingsGroup block="computers">
+ <SettingsRows>
+ <SettingRow title={t("devices.computers.title")} subtitle={t("devices.computers.detail")}
+ message={line || trouble || blocked ? <span data-tailnet-share={line ? "" : undefined} data-tailnet-trouble={!line && trouble ? status.kind : undefined} className="break-words" aria-live="polite">{line ?? trouble ?? blocked}</span> : undefined}>
+ <span data-route-row="tailscale-computers" className="contents">
+ {!on && status.kind === "not-installed" && <a href="https://tailscale.com/download" target="_blank" rel="noreferrer" className="ui-button">{t("remote.tailscale.getIt")}</a>}
+ <Switch checked={on} aria-label={t("devices.computers.title")} disabled={c.busy || c.accountBusy || (Boolean(blocked) && !on)} title={blocked ?? undefined}
+ onClick={() => void c.act((companion) => companion.setTailscaleComputers?.(!on) ?? companion.state())} />
+ </span>
+ </SettingRow>
+ </SettingsRows>
+ </SettingsGroup>
+ {address && <ServerPairingCard simple={simple} reveal={false} forComputer address={address} />}
+ </>
);
}
diff --git a/src/components/settings/settings-index.test.ts b/src/components/settings/settings-index.test.ts
index 3bf9f59074..e6d1c27e2b 100644
--- a/src/components/settings/settings-index.test.ts
+++ b/src/components/settings/settings-index.test.ts
@@ -77,6 +77,19 @@ describe("the pages", () => {
expect(find("backups", simple)[0]).toMatchObject({ entry: { page: "transfer" }, advanced: undefined });
});
+ it("finds Your other computers without Advanced mode, on this computer only", () => {
+ for (const advanced of [false, true]) {
+ for (const query of ["other computers", "another computer", "tailscale", "your other", "laptop"]) {
+ const hit = find(query, fullContext({ advanced })).find((found) => found.entry.id === "other-computers");
+ expect(hit, query).toMatchObject({ entry: { page: "phone", anchor: "computers" }, elsewhere: false });
+ expect(hit!.advanced, query).toBeUndefined();
+ }
+ expect(find("tailscale", fullContext({ advanced }))[0]?.entry.id).toBe("other-computers");
+ }
+ const cloud = find("other computers", fullContext({ desktop: false, here: false, cloud: true, environments: false }));
+ expect(cloud.filter((found) => found.entry.id === "other-computers")).toEqual([]);
+ });
+
it("names Phone & devices the same on every place: there is no This server page", () => {
for (const ctx of Object.values(PEOPLE)) expect(visiblePages(ctx).find((page) => page.id === "phone")?.labelKey).toBe("settings.section.phoneDevices");
expect(JSON.stringify(SETTINGS_PAGES)).not.toContain("thisServer");
diff --git a/src/components/settings/settings-index.ts b/src/components/settings/settings-index.ts
index 57e7043545..89d3fd6d34 100644
--- a/src/components/settings/settings-index.ts
+++ b/src/components/settings/settings-index.ts
@@ -179,6 +179,8 @@ export const SETTINGS_INDEX: readonly SettingsIndexEntry[] = [
{ id: "relay", page: "phone", anchor: "reach", labelKey: "devices.route.relay", sectionKey: "phone.reach.title", when: hereOnly, synonyms: ["anywhere", "relay", "away"] },
{ id: "keep-awake", page: "phone", anchor: "reach", labelKey: "remote.keepAwake", sectionKey: "phone.reach.title", when: hereOnly, synonyms: ["sleep", "awake", "overnight", "scheduled"] },
{ id: "wake-automations", page: "phone", labelKey: "settings.search.wakeAutomations", jump: "automations", when: hereOnly, topFor: ["sleep", "overnight", "scheduled"], synonyms: ["awake"] },
+ { id: "other-computers", page: "phone", anchor: "computers", labelKey: "devices.computers.title", when: hereOnly, topFor: ["tailscale", "other computers", "another computer", "other computer", "my other computer"],
+ synonyms: ["computer", "computers", "laptop", "desktop", "mac", "pc", "share", "tailnet", "connect to a server"] },
{ id: "tailscale", page: "phone", anchor: "reach", labelKey: "devices.moreWays", sectionKey: "phone.reach.title", when: hereOnly, advanced: true, synonyms: ["tailscale", "https", "tailnet"] },
{ id: "domain", page: "overview", anchor: "address", labelKey: "settings.overview.address", advanced: true, when: (ctx) => !ctx.here && !ctx.client, synonyms: ["domain", "dns", "https", "custom domain"] },
{ id: "sidebar-color", page: "overview", anchor: "sidebar", labelKey: "placeLook.sidebarColor", sectionKey: "settings.overview.sidebar", synonyms: ["color", "colour", "tint", "cloud color"] },
diff --git a/src/lib/companion-types.ts b/src/lib/companion-types.ts
index 448f43f002..30a88f523d 100644
--- a/src/lib/companion-types.ts
+++ b/src/lib/companion-types.ts
@@ -45,7 +45,7 @@ export interface CompanionState {
/** Routes the update kept on that the person has not been told about yet. */
notices?: CompanionRoute[];
/** Why Tailscale could not be turned on or checked just now. */
- tailscaleProblem?: "not-installed" | "no-cli" | "not-running" | "needs-permission" | "signed-out";
+ tailscaleProblem?: "not-installed" | "no-cli" | "not-running" | "needs-permission" | "needs-approval" | "signed-out";
/** This computer's own server on the tailnet, for the person's other computers. Absent on older builds. */
tailnetShare?: TailnetShareState;
lan?: string | null;
diff --git a/src/locales/de.json b/src/locales/de.json
index fdd32fb3b8..3c7456072f 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1606,7 +1606,6 @@
"remote.client.idle": "Mit einem anderen Computer verbinden",
"remote.client.subtitle": "Nutz diese Desktop-App als sicheren Client für ein {app} auf einem anderen Rechner.",
"phone.intro.title": "{app} von einem anderen Gerät nutzen",
- "phone.intro.detail": "Chats ansehen, Freigaben beantworten und neue Arbeit senden — vom Telefon oder einem anderen Rechner.",
"phone.value.chats": "Deine Unterhaltungen",
"phone.value.chatsDetail": "Von einem anderen Gerät lesen und antworten.",
"phone.value.approvals": "Schnelle Freigaben",
@@ -3351,7 +3350,6 @@
"native.connect.empty": "Gib die Adresse des Servers ein oder füge seinen Link ein.",
"native.connect.codeOnly": "Das ist ein Kopplungscode. Gib auch die Adresse des Servers ein, z. B. {example}.",
"native.connect.emailCode": "Das ist ein Anmeldecode aus einer E-Mail. Zum Koppeln brauchst du einen 12-stelligen Code wie 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Dieser 6-stellige Code koppelt ein Telefon mit einer Desktop-App, und eine Desktop-App kann sich nicht mit einer anderen verbinden: Teile den Computer mit My Cloud oder nutze My Cloud. Ein Server-Code hat 12 Zeichen wie 7KQ2-M9XD-H4TP: Führe auf dem Server openmausbot pair aus.",
"native.connect.scriptKey": "Das ist ein Skriptschlüssel. Zum Koppeln brauchst du einen Kopplungscode.",
"native.connect.notACode": "Das ist kein Kopplungscode. Zum Koppeln brauchst du einen 12-stelligen Code wie 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} liegt im offenen Internet und ist nicht verschlüsselt, andere könnten deine Chats mitlesen. Nutze seine https-Adresse oder setze HTTPS davor (cloudflared, Caddy oder Tailscale).",
@@ -3361,12 +3359,10 @@
"native.connect.dns": "{host} gibt es noch nicht. Prüfe die Schreibweise oder warte auf den DNS-Eintrag.",
"native.connect.certificate": "Das Zertifikat von {host} ist noch nicht gültig. Ein neuer Server braucht dafür manchmal eine Minute.",
"native.connect.notMausBot": "Diese Adresse antwortet, ist aber kein MausBot-Server.",
- "native.connect.desktopApp": "{host} ist eine MausBot-Desktop-App, und eine Desktop-App kann sich nicht mit einer anderen verbinden. Um diesen Computer von hier zu nutzen, teile ihn in seiner eigenen App mit My Cloud oder nutze My Cloud.",
"native.connect.loopback": "Das zeigt auf diesen Computer ({host}), nicht auf den Server. Nutze die eigene Adresse des Servers.",
"native.connect.localNetwork": "{host} ist nicht erreichbar. Aktiviere auf dem Mac OpenMausBot unter Systemeinstellungen → Datenschutz & Sicherheit → Lokales Netzwerk und versuche es erneut. Prüfe auch, ob der Server in diesem Netzwerk läuft.",
"serverError.pair.tooMany": "Zu viele falsche Codes. Versuche es um {time} erneut.",
"serverError.pair.emailCode": "Das ist ein Anmeldecode aus einer E-Mail. Zum Koppeln brauchst du einen 12-stelligen Code wie 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Das ist ein Code aus einer älteren MausBot-Version. Erstelle auf dem anderen Computer einen neuen: Telefon & Geräte → Gerät koppeln.",
"serverError.pair.scriptKey": "Das ist ein Skriptschlüssel. Zum Koppeln brauchst du einen Kopplungscode.",
"serverError.pair.notACode": "Das ist kein Kopplungscode. Zum Koppeln brauchst du einen 12-stelligen Code wie 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Anmeldecode aus deiner E-Mail",
@@ -3990,6 +3986,7 @@
"computer.recovery.replaceTitle": "Diesen Cloud-Computer löschen und dem Bot einen neuen geben. Dateien, die nur darauf liegen, gehen verloren.",
"composer.command.burstDesc": "Viele Teile einer Aufgabe gleichzeitig ausführen und die Ergebnisse zusammenführen",
"devices.computers.pairButton": "Computer koppeln",
+ "devices.computers.title": "Deine anderen Computer",
"devices.computers.pairTitle": "Anderen Computer koppeln",
- "devices.computers.typeCode": "Öffne auf deinem anderen Computer in {app} „Mit einem Server verbinden“ und gib diesen Code ein."
+ "remote.tailscale.needsApproval": "Dieser Computer wartet auf die Genehmigung in Ihrem Tailscale-Netzwerk. Genehmigen Sie ihn in der Tailscale-Admin-Konsole und versuchen Sie es dann erneut."
}
diff --git a/src/locales/en.json b/src/locales/en.json
index fac1a9f01a..7f5ed4ed9b 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -754,6 +754,7 @@
"connect.title": "Connect to a server",
"connect.choiceSub": "A server of your own: a VPS, a Mac mini at home, or a computer on your Tailscale network.",
"connect.lede": "Paste the link the server printed, or type its address and pairing code. Its bots stay on the server.",
+ "connect.otherComputer": "For another computer running the {app} app: on that computer, open Settings → Phone & devices → Your other computers.",
"connect.signedInLede": "It's signed in to your account already. Paste its link, or type its address and a pairing code.",
"connect.address": "Link or address",
"connect.addressPlaceholder": "https://maus.example.com or 192.168.1.20:8799",
@@ -4827,6 +4828,7 @@
"remote.tailscale.notInstalled": "Tailscale isn't installed on this computer.",
"remote.tailscale.getIt": "Get Tailscale",
"remote.tailscale.signIn": "Open Tailscale and sign in, then try again.",
+ "remote.tailscale.needsApproval": "This computer is waiting for approval on your Tailscale network. Approve it in the Tailscale admin console, then try again.",
"remote.tailscale.noCli": "Install Tailscale's command-line tool: in the Tailscale app, open Settings and choose Install CLI, then try again.",
"remote.tailscale.notRunning": "Tailscale isn't running. Open it, then try again.",
"remote.tailscale.needsPermission": "Tailscale won't let {app} ask it. On Linux, run sudo tailscale set --operator=$USER once, then try again.",
@@ -4866,7 +4868,7 @@
"remote.client.idle": "Connect to another computer",
"remote.client.subtitle": "Use this desktop app as a secure client for {app} running on another computer.",
"phone.intro.title": "Use {app} from another device",
- "phone.intro.detail": "Check chats, answer approvals, and send new work from a phone or another computer.",
+ "phone.intro.detail": "Check chats, answer approvals, and send new work from your phone.",
"phone.value.chats": "Your conversations",
"phone.value.chatsDetail": "Read and reply from another device.",
"phone.value.approvals": "Quick approvals",
@@ -9459,7 +9461,7 @@
"serverError.pair.tooMany": "Too many wrong codes. Try again at {time}.",
"serverError.pair.linkExpired": "this sign-in link has expired or was already used",
"serverError.pair.emailCode": "That's a sign-in code from an email. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "That's a code from an older MausBot. Make a new one on the other computer: Phone & devices → Pair a device.",
+ "serverError.pair.oldCode": "That code is for the phone app. Pairing here needs a 12-character code like 7KQ2-M9XD-H4TP, made in Settings → Phone & devices on the computer or server you are connecting to.",
"serverError.pair.scriptKey": "That's a script key. Pairing needs a pairing code.",
"serverError.pair.notACode": "That isn't a pairing code. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
"serverError.email.invalid": "enter a valid email address",
@@ -9663,7 +9665,7 @@
"native.connect.empty": "Enter the server's address or paste its link.",
"native.connect.codeOnly": "That's a pairing code. Also enter the server's address, like {example}.",
"native.connect.emailCode": "That's a sign-in code from an email. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "That 6-digit code pairs a phone with a desktop app, and one desktop app can't connect to another: share that computer with My Cloud, or use My Cloud. A server's code has 12 characters like 7KQ2-M9XD-H4TP: on the server, run openmausbot pair.",
+ "native.connect.oldCode": "That code is for the phone app. To open that computer from here, turn on Tailscale and Your other computers in its Settings → Phone & devices, then use the link shown there. You can also share that computer with My Cloud. A server's own code has 12 characters like 7KQ2-M9XD-H4TP.",
"native.connect.scriptKey": "That's a script key. Pairing needs a pairing code.",
"native.connect.notACode": "That isn't a pairing code. Pairing needs a 12-character code like 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} is on the open internet and isn't encrypted, so others could read your chats. Use its https address, or put HTTPS in front (cloudflared, Caddy or Tailscale).",
@@ -9673,7 +9675,7 @@
"native.connect.dns": "{host} doesn't exist yet. Check the spelling, or wait for the DNS record.",
"native.connect.certificate": "{host}'s certificate isn't valid yet. A new server can take a minute to get one.",
"native.connect.notMausBot": "That address answers, but it isn't a MausBot server.",
- "native.connect.desktopApp": "{host} is a MausBot desktop app, and one desktop app can't connect to another. To use that computer from here, share it with My Cloud from its own app, or use My Cloud.",
+ "native.connect.desktopApp": "{host} is a MausBot desktop app. To open it from here, turn on Tailscale and Your other computers in its Settings → Phone & devices, then use the link shown there. You can also share that computer with My Cloud from its own app.",
"native.connect.desktopAppTailnet": "{host} is a MausBot desktop app on your tailnet. To open it from here, turn on Tailscale and Your other computers in its Settings → Phone & devices, then use the address shown there.",
"native.connect.loopback": "This points at this computer ({host}), not at the server. Use the server's own address.",
"native.connect.localNetwork": "Can't reach {host}. On a Mac, turn on OpenMausBot in System Settings → Privacy & Security → Local Network, then try again. Also check that the server is running on this network.",
@@ -10498,10 +10500,12 @@
"devices.paired": "Paired",
"devices.moreWays": "More ways in",
"devices.computers.title": "Your other computers",
- "devices.computers.detail": "Off until you turn it on. On, a computer on your tailnet can open this one from Connect to a server, once you give it a pairing code.",
+ "devices.computers.detail": "Open this computer's bots from another computer signed in to the same Tailscale account. Needs Tailscale on both.",
"devices.computers.pairButton": "Pair a computer",
"devices.computers.pairTitle": "Pair another computer",
- "devices.computers.typeCode": "On your other computer, open Connect to a server in {app} and type this code.",
+ "devices.computers.typeCode": "On your other computer, open Connect to a server in {app} and paste the link you copy here. Or type this address and code there.",
+ "devices.computers.address": "Address",
+ "devices.computers.pairLine": "Makes a link your other computer opens. It works once.",
"devices.computers.https": "Ready at {address}, with Tailscale's HTTPS certificate.",
"devices.computers.http": "Ready at {address}. Only your tailnet reaches it, and WireGuard encrypts it. For an https address, turn on HTTPS Certificates in Tailscale's DNS settings, then check again.",
"devices.computers.waiting": "Tailscale isn't connected on this computer yet. {app} answers here as soon as it is.",
diff --git a/src/locales/es.json b/src/locales/es.json
index ad50a259a0..6c4a4b99ff 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -3500,7 +3500,6 @@
"remote.client.idle": "Conectar a otro equipo",
"remote.client.subtitle": "Usa esta app de escritorio como cliente seguro de un {app} que corre en otro equipo.",
"phone.intro.title": "Usar {app} desde otro dispositivo",
- "phone.intro.detail": "Consulta chats, responde aprobaciones y envía trabajo nuevo desde el móvil u otro equipo.",
"phone.value.chats": "Tus conversaciones",
"phone.value.chatsDetail": "Lee y responde desde otro dispositivo.",
"phone.value.approvals": "Aprobaciones rápidas",
@@ -5929,7 +5928,6 @@
"native.connect.empty": "Escribe la dirección del servidor o pega su enlace.",
"native.connect.codeOnly": "Eso es un código de vinculación. Escribe también la dirección del servidor, por ejemplo {example}.",
"native.connect.emailCode": "Eso es un código de inicio de sesión de un correo. Para vincular hace falta un código de 12 caracteres como 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Ese código de 6 dígitos vincula un teléfono con una aplicación de escritorio, y una aplicación de escritorio no puede conectarse a otra: comparte ese ordenador con My Cloud, o usa My Cloud. El código de un servidor tiene 12 caracteres como 7KQ2-M9XD-H4TP: en el servidor, ejecuta openmausbot pair.",
"native.connect.scriptKey": "Eso es una clave de script. Para vincular hace falta un código de vinculación.",
"native.connect.notACode": "Eso no es un código de vinculación. Para vincular hace falta un código de 12 caracteres como 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} está en internet abierto y no está cifrado, así que otros podrían leer tus chats. Usa su dirección https, o pon HTTPS delante (cloudflared, Caddy o Tailscale).",
@@ -5939,12 +5937,10 @@
"native.connect.dns": "{host} todavía no existe. Revisa cómo está escrito o espera al registro DNS.",
"native.connect.certificate": "El certificado de {host} todavía no es válido. Un servidor nuevo puede tardar un minuto en obtenerlo.",
"native.connect.notMausBot": "Esa dirección responde, pero no es un servidor de MausBot.",
- "native.connect.desktopApp": "{host} es una aplicación de escritorio de MausBot, y una aplicación de escritorio no puede conectarse a otra. Para usar ese ordenador desde aquí, compártelo con My Cloud desde su propia aplicación, o usa My Cloud.",
"native.connect.loopback": "Esto apunta a este ordenador ({host}), no al servidor. Usa la dirección del propio servidor.",
"native.connect.localNetwork": "No se puede acceder a {host}. En un Mac, activa OpenMausBot en Ajustes del Sistema → Privacidad y seguridad → Red local y vuelve a intentarlo. Comprueba también que el servidor esté funcionando en esta red.",
"serverError.pair.tooMany": "Demasiados códigos incorrectos. Vuelve a intentarlo a las {time}.",
"serverError.pair.emailCode": "Ese es un código de inicio de sesión de un correo. Para vincular necesitas un código de 12 caracteres como 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Ese es un código de una versión anterior de MausBot. Crea uno nuevo en el otro ordenador: Teléfono y dispositivos → Vincular un dispositivo.",
"serverError.pair.scriptKey": "Esa es una clave de script. Para vincular necesitas un código de vinculación.",
"serverError.pair.notACode": "Eso no es un código de vinculación. Para vincular necesitas un código de 12 caracteres como 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Código de inicio de sesión de tu correo",
@@ -6504,6 +6500,7 @@
"computer.recovery.replaceTitle": "Elimina esta computadora en la nube y le da una nueva al bot. Los archivos que solo están en ella se pierden.",
"composer.command.burstDesc": "Ejecutar muchas partes de un trabajo a la vez y luego unir los resultados",
"devices.computers.pairButton": "Vincular un ordenador",
+ "devices.computers.title": "Tus otros ordenadores",
"devices.computers.pairTitle": "Vincular otro ordenador",
- "devices.computers.typeCode": "En tu otro ordenador, abre Conectar a un servidor en {app} y escribe este código."
+ "remote.tailscale.needsApproval": "Este ordenador espera la aprobación en tu red de Tailscale. Apruébalo en la consola de administración de Tailscale y vuelve a intentarlo."
}
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 7a87e9bcf6..60af319e03 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -1507,7 +1507,6 @@
"remote.client.idle": "Se connecter à un autre ordinateur",
"remote.client.subtitle": "Utilisez cette application de bureau comme client sécurisé d'un {app} tournant sur un autre ordinateur.",
"phone.intro.title": "Utiliser {app} depuis un autre appareil",
- "phone.intro.detail": "Consultez les discussions, répondez aux autorisations et envoyez du travail depuis un téléphone ou un autre ordinateur.",
"phone.value.chats": "Vos conversations",
"phone.value.chatsDetail": "Lisez et répondez depuis un autre appareil.",
"phone.value.approvals": "Autorisations rapides",
@@ -3165,7 +3164,6 @@
"native.connect.empty": "Saisissez l'adresse du serveur ou collez son lien.",
"native.connect.codeOnly": "C'est un code d'appairage. Saisissez aussi l'adresse du serveur, par exemple {example}.",
"native.connect.emailCode": "C'est un code de connexion reçu par e-mail. L'appairage demande un code de 12 caractères comme 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Ce code à 6 chiffres associe un téléphone à une application de bureau, et une application de bureau ne peut pas se connecter à une autre : partagez cet ordinateur avec My Cloud, ou utilisez My Cloud. Le code d'un serveur a 12 caractères comme 7KQ2-M9XD-H4TP : sur le serveur, lancez openmausbot pair.",
"native.connect.scriptKey": "C'est une clé de script. L'appairage demande un code d'appairage.",
"native.connect.notACode": "Ce n'est pas un code d'appairage. L'appairage demande un code de 12 caractères comme 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} est sur l'internet ouvert et n'est pas chiffré : d'autres pourraient lire vos discussions. Utilisez son adresse https, ou placez HTTPS devant (cloudflared, Caddy ou Tailscale).",
@@ -3175,12 +3173,10 @@
"native.connect.dns": "{host} n'existe pas encore. Vérifiez l'orthographe, ou attendez l'enregistrement DNS.",
"native.connect.certificate": "Le certificat de {host} n'est pas encore valide. Un nouveau serveur peut mettre une minute à l'obtenir.",
"native.connect.notMausBot": "Cette adresse répond, mais ce n'est pas un serveur MausBot.",
- "native.connect.desktopApp": "{host} est une application de bureau MausBot, et une application de bureau ne peut pas se connecter à une autre. Pour utiliser cet ordinateur d'ici, partagez-le avec My Cloud depuis sa propre application, ou utilisez My Cloud.",
"native.connect.loopback": "Ceci pointe vers cet ordinateur ({host}), pas vers le serveur. Utilisez l'adresse du serveur lui-même.",
"native.connect.localNetwork": "Impossible de joindre {host}. Sur un Mac, activez OpenMausBot dans Réglages Système → Confidentialité et sécurité → Réseau local, puis réessayez. Vérifiez aussi que le serveur tourne sur ce réseau.",
"serverError.pair.tooMany": "Trop de codes erronés. Réessayez à {time}.",
"serverError.pair.emailCode": "C'est un code de connexion reçu par e-mail. L'association demande un code de 12 caractères comme 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "C'est un code d'une ancienne version de MausBot. Créez-en un nouveau sur l'autre ordinateur : Téléphone et appareils → Associer un appareil.",
"serverError.pair.scriptKey": "C'est une clé de script. L'association demande un code d'association.",
"serverError.pair.notACode": "Ce n'est pas un code d'association. L'association demande un code de 12 caractères comme 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Code de connexion reçu par e-mail",
@@ -3806,6 +3802,7 @@
"computer.recovery.replaceTitle": "Supprime cet ordinateur cloud et en donne un nouveau au bot. Les fichiers qui ne sont que dessus sont perdus.",
"composer.command.burstDesc": "Lancer plusieurs parties d'un travail en même temps, puis fusionner les résultats",
"devices.computers.pairButton": "Associer un ordinateur",
+ "devices.computers.title": "Vos autres ordinateurs",
"devices.computers.pairTitle": "Associer un autre ordinateur",
- "devices.computers.typeCode": "Sur votre autre ordinateur, ouvrez Se connecter à un serveur dans {app} et saisissez ce code."
+ "remote.tailscale.needsApproval": "Cet ordinateur attend d'être approuvé sur votre réseau Tailscale. Approuvez-le dans la console d'administration Tailscale, puis réessayez."
}
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 587f6505c8..0f1df0a2d7 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -1507,7 +1507,6 @@
"remote.client.idle": "दूसरे कंप्यूटर से जुड़ें",
"remote.client.subtitle": "इस डेस्कटॉप ऐप को दूसरे कंप्यूटर पर चल रहे {app} के सुरक्षित क्लाइंट के रूप में इस्तेमाल करें।",
"phone.intro.title": "किसी दूसरे डिवाइस से {app} इस्तेमाल करें",
- "phone.intro.detail": "फ़ोन या दूसरे कंप्यूटर से चैट देखें, मंज़ूरी दें और नया काम भेजें।",
"phone.value.chats": "आपकी बातचीत",
"phone.value.chatsDetail": "दूसरे डिवाइस से पढ़ें और जवाब दें।",
"phone.value.approvals": "झटपट मंज़ूरी",
@@ -3018,7 +3017,6 @@
"native.connect.empty": "सर्वर का पता दर्ज करें या उसका लिंक पेस्ट करें।",
"native.connect.codeOnly": "यह एक पेयरिंग कोड है। सर्वर का पता भी दर्ज करें, जैसे {example}।",
"native.connect.emailCode": "यह ईमेल से आया साइन-इन कोड है। पेयरिंग के लिए 7KQ2-M9XD-H4TP जैसा 12 अक्षरों का कोड चाहिए।",
- "native.connect.oldCode": "यह 6 अंकों का कोड फ़ोन को डेस्कटॉप ऐप से पेयर करता है, और एक डेस्कटॉप ऐप दूसरे से कनेक्ट नहीं हो सकता: उस कंप्यूटर को My Cloud के साथ शेयर करें, या My Cloud इस्तेमाल करें। सर्वर के कोड में 7KQ2-M9XD-H4TP जैसे 12 अक्षर होते हैं: सर्वर पर openmausbot pair चलाएँ।",
"native.connect.scriptKey": "यह एक स्क्रिप्ट कुंजी है। पेयरिंग के लिए पेयरिंग कोड चाहिए।",
"native.connect.notACode": "यह पेयरिंग कोड नहीं है। पेयरिंग के लिए 7KQ2-M9XD-H4TP जैसा 12 अक्षरों का कोड चाहिए।",
"native.connect.publicHttp": "http://{host} खुले इंटरनेट पर है और एन्क्रिप्टेड नहीं है, इसलिए दूसरे आपकी चैट पढ़ सकते हैं। इसका https पता इस्तेमाल करें, या आगे HTTPS लगाएँ (cloudflared, Caddy या Tailscale)।",
@@ -3028,12 +3026,10 @@
"native.connect.dns": "{host} अभी मौजूद नहीं है। वर्तनी जाँचें, या DNS रिकॉर्ड का इंतज़ार करें।",
"native.connect.certificate": "{host} का सर्टिफ़िकेट अभी मान्य नहीं है। नए सर्वर को इसे पाने में एक मिनट लग सकता है।",
"native.connect.notMausBot": "यह पता जवाब देता है, लेकिन यह MausBot सर्वर नहीं है।",
- "native.connect.desktopApp": "{host} एक MausBot डेस्कटॉप ऐप है, और एक डेस्कटॉप ऐप दूसरे से कनेक्ट नहीं हो सकता। उस कंप्यूटर को यहाँ से इस्तेमाल करने के लिए, उसके अपने ऐप से उसे My Cloud के साथ शेयर करें, या My Cloud इस्तेमाल करें।",
"native.connect.loopback": "यह इस कंप्यूटर ({host}) की ओर इशारा करता है, सर्वर की ओर नहीं। सर्वर का अपना पता इस्तेमाल करें।",
"native.connect.localNetwork": "{host} तक नहीं पहुँच पा रहे। Mac पर System Settings → Privacy & Security → Local Network में OpenMausBot चालू करें, फिर दोबारा कोशिश करें। यह भी देखें कि सर्वर इसी नेटवर्क पर चल रहा है।",
"serverError.pair.tooMany": "बहुत सारे गलत कोड। {time} पर फिर से कोशिश करें।",
"serverError.pair.emailCode": "यह ईमेल से आया साइन-इन कोड है। पेयर करने के लिए 7KQ2-M9XD-H4TP जैसा 12 अक्षरों का कोड चाहिए।",
- "serverError.pair.oldCode": "यह MausBot के पुराने संस्करण का कोड है। दूसरे कंप्यूटर पर नया कोड बनाएँ: फ़ोन और डिवाइस → डिवाइस पेयर करें।",
"serverError.pair.scriptKey": "यह स्क्रिप्ट कुंजी है। पेयर करने के लिए पेयरिंग कोड चाहिए।",
"serverError.pair.notACode": "यह पेयरिंग कोड नहीं है। पेयर करने के लिए 7KQ2-M9XD-H4TP जैसा 12 अक्षरों का कोड चाहिए।",
"pair.emailCode": "आपके ईमेल से आया साइन-इन कोड",
@@ -3660,6 +3656,7 @@
"computer.recovery.replaceTitle": "यह क्लाउड कंप्यूटर हटाकर बॉट को नया दें। जो फ़ाइलें सिर्फ़ इस पर हैं, वे खो जाती हैं।",
"composer.command.burstDesc": "किसी काम के कई हिस्से एक साथ चलाएं, फिर नतीजे मिलाएं",
"devices.computers.pairButton": "कंप्यूटर जोड़ें",
+ "devices.computers.title": "आपके दूसरे कंप्यूटर",
"devices.computers.pairTitle": "दूसरा कंप्यूटर जोड़ें",
- "devices.computers.typeCode": "अपने दूसरे कंप्यूटर पर {app} में सर्वर से कनेक्ट करें खोलें और यह कोड लिखें।"
+ "remote.tailscale.needsApproval": "यह कंप्यूटर आपके Tailscale नेटवर्क पर मंज़ूरी का इंतज़ार कर रहा है। Tailscale एडमिन कंसोल में इसे मंज़ूर करें, फिर दोबारा कोशिश करें।"
}
diff --git a/src/locales/it.json b/src/locales/it.json
index 87053dc525..69cd782115 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -3755,7 +3755,6 @@
"remote.client.idle": "Connettiti a un altro computer",
"remote.client.subtitle": "Usa questa app desktop come client sicuro per {app} in esecuzione su un altro computer.",
"phone.intro.title": "Usa {app} da un altro dispositivo",
- "phone.intro.detail": "Controlla le chat, rispondi alle approvazioni e invia nuovo lavoro da un telefono o da un altro computer.",
"phone.value.chats": "Le tue conversazioni",
"phone.value.chatsDetail": "Leggi e rispondi da un altro dispositivo.",
"phone.value.approvals": "Approvazioni rapide",
@@ -6561,7 +6560,6 @@
"native.connect.empty": "Scrivi l'indirizzo del server o incolla il suo link.",
"native.connect.codeOnly": "Questo è un codice di abbinamento. Scrivi anche l'indirizzo del server, ad esempio {example}.",
"native.connect.emailCode": "Questo è un codice di accesso arrivato per email. Per l'abbinamento serve un codice di 12 caratteri come 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Quel codice di 6 cifre abbina un telefono a un'app desktop, e un'app desktop non può connettersi a un'altra: condividi quel computer con My Cloud, oppure usa My Cloud. Il codice di un server ha 12 caratteri come 7KQ2-M9XD-H4TP: sul server, esegui openmausbot pair.",
"native.connect.scriptKey": "Questa è una chiave per script. Per l'abbinamento serve un codice di abbinamento.",
"native.connect.notACode": "Questo non è un codice di abbinamento. Per l'abbinamento serve un codice di 12 caratteri come 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} è su internet aperto e non è cifrato, quindi altri potrebbero leggere le tue chat. Usa il suo indirizzo https, oppure metti HTTPS davanti (cloudflared, Caddy o Tailscale).",
@@ -6571,12 +6569,10 @@
"native.connect.dns": "{host} non esiste ancora. Controlla come è scritto, o attendi il record DNS.",
"native.connect.certificate": "Il certificato di {host} non è ancora valido. Un nuovo server può impiegare un minuto per ottenerlo.",
"native.connect.notMausBot": "Quell'indirizzo risponde, ma non è un server MausBot.",
- "native.connect.desktopApp": "{host} è un'app desktop di MausBot, e un'app desktop non può connettersi a un'altra. Per usare quel computer da qui, condividilo con My Cloud dalla sua app, oppure usa My Cloud.",
"native.connect.loopback": "Questo punta a questo computer ({host}), non al server. Usa l'indirizzo del server stesso.",
"native.connect.localNetwork": "Impossibile raggiungere {host}. Su un Mac, attiva OpenMausBot in Impostazioni di Sistema → Privacy e sicurezza → Rete locale, poi riprova. Controlla anche che il server sia attivo su questa rete.",
"serverError.pair.tooMany": "Troppi codici errati. Riprova alle {time}.",
"serverError.pair.emailCode": "Questo è un codice di accesso arrivato per email. Per l'abbinamento serve un codice di 12 caratteri come 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Questo è un codice di una versione precedente di MausBot. Creane uno nuovo sull'altro computer: Telefono e dispositivi → Abbina un dispositivo.",
"serverError.pair.scriptKey": "Questa è una chiave per script. Per l'abbinamento serve un codice di abbinamento.",
"serverError.pair.notACode": "Questo non è un codice di abbinamento. Per l'abbinamento serve un codice di 12 caratteri come 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Codice di accesso dalla tua email",
@@ -7128,6 +7124,7 @@
"computer.recovery.replaceTitle": "Elimina questo computer cloud e ne dà uno nuovo al bot. I file che sono solo lì vanno persi.",
"composer.command.burstDesc": "Esegui molte parti di un lavoro insieme, poi unisci i risultati",
"devices.computers.pairButton": "Associa un computer",
+ "devices.computers.title": "I tuoi altri computer",
"devices.computers.pairTitle": "Associa un altro computer",
- "devices.computers.typeCode": "Sull'altro computer, apri Connetti a un server in {app} e digita questo codice."
+ "remote.tailscale.needsApproval": "Questo computer è in attesa di approvazione sulla tua rete Tailscale. Approvalo nella console di amministrazione di Tailscale, poi riprova."
}
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 48db1728b1..ec37d6faa0 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -4317,7 +4317,6 @@
"remote.client.idle": "別のコンピューターに接続",
"remote.client.subtitle": "このデスクトップアプリを、別のコンピューターで動く {app} の安全なクライアントとして使います。",
"phone.intro.title": "別のデバイスから {app} を使う",
- "phone.intro.detail": "スマートフォンや別のパソコンから、チャットの確認・承認・新しい依頼ができます。",
"phone.value.chats": "あなたの会話",
"phone.value.chatsDetail": "別のデバイスで読んで返信できます。",
"phone.value.approvals": "すばやい承認",
@@ -7594,7 +7593,6 @@
"native.connect.empty": "サーバーのアドレスを入力するか、リンクを貼り付けてください。",
"native.connect.codeOnly": "これはペアリングコードです。サーバーのアドレスも入力してください(例:{example})。",
"native.connect.emailCode": "これはメールで届いたサインインコードです。ペアリングには 7KQ2-M9XD-H4TP のような 12 文字のコードが必要です。",
- "native.connect.oldCode": "この 6 桁のコードは電話とデスクトップアプリをペアリングするためのもので、デスクトップアプリ同士は接続できません。そのコンピューターを My Cloud と共有するか、My Cloud を使ってください。サーバーのコードは 7KQ2-M9XD-H4TP のような 12 文字です。サーバーで openmausbot pair を実行してください。",
"native.connect.scriptKey": "これはスクリプトキーです。ペアリングにはペアリングコードが必要です。",
"native.connect.notACode": "これはペアリングコードではありません。ペアリングには 7KQ2-M9XD-H4TP のような 12 文字のコードが必要です。",
"native.connect.publicHttp": "http://{host} はインターネットに公開されていて暗号化されていないため、他人にチャットを読まれるおそれがあります。https のアドレスを使うか、前段に HTTPS を置いてください(cloudflared、Caddy、Tailscale)。",
@@ -7604,12 +7602,10 @@
"native.connect.dns": "{host} はまだ存在しません。綴りを確認するか、DNS レコードを待ってください。",
"native.connect.certificate": "{host} の証明書はまだ有効ではありません。新しいサーバーでは取得に 1 分ほどかかることがあります。",
"native.connect.notMausBot": "そのアドレスは応答しますが、MausBot サーバーではありません。",
- "native.connect.desktopApp": "{host} は MausBot のデスクトップアプリです。デスクトップアプリ同士は接続できません。ここからそのコンピューターを使うには、そのアプリから My Cloud と共有するか、My Cloud を使ってください。",
"native.connect.loopback": "これはサーバーではなく、このコンピュータ({host})を指しています。サーバー自身のアドレスを使ってください。",
"native.connect.localNetwork": "{host} に接続できません。Mac では、システム設定 → プライバシーとセキュリティ → ローカルネットワーク で OpenMausBot をオンにしてから、もう一度お試しください。サーバーがこのネットワークで動作しているかも確認してください。",
"serverError.pair.tooMany": "間違ったコードが多すぎます。{time} にもう一度お試しください。",
"serverError.pair.emailCode": "これはメールで届いたサインインコードです。ペアリングには 7KQ2-M9XD-H4TP のような 12 文字のコードが必要です。",
- "serverError.pair.oldCode": "これは古い MausBot のコードです。もう一方のコンピューターで新しいコードを作成してください: 電話とデバイス → デバイスをペアリング。",
"serverError.pair.scriptKey": "これはスクリプトキーです。ペアリングにはペアリングコードが必要です。",
"serverError.pair.notACode": "これはペアリングコードではありません。ペアリングには 7KQ2-M9XD-H4TP のような 12 文字のコードが必要です。",
"pair.emailCode": "メールで届いたサインインコード",
@@ -8099,6 +8095,7 @@
"computer.recovery.replaceTitle": "このクラウドコンピューターを削除し、ボットに新しいものを用意します。ここにしかないファイルは失われます。",
"composer.command.burstDesc": "作業の多くの部分を同時に実行し、結果をまとめます",
"devices.computers.pairButton": "コンピュータをペアリング",
+ "devices.computers.title": "お使いの他のコンピューター",
"devices.computers.pairTitle": "別のコンピュータをペアリング",
- "devices.computers.typeCode": "もう一台のコンピュータで {app} の「サーバーに接続」を開き、このコードを入力してください。"
+ "remote.tailscale.needsApproval": "このコンピューターは Tailscale ネットワークでの承認を待っています。Tailscale の管理コンソールで承認してから、もう一度お試しください。"
}
diff --git a/src/locales/ko.json b/src/locales/ko.json
index d6694bd7bf..df4c2112c1 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -4122,7 +4122,6 @@
"remote.client.idle": "다른 컴퓨터에 연결",
"remote.client.subtitle": "이 데스크톱 앱을 다른 컴퓨터에서 실행 중인 {app}의 안전한 클라이언트로 써요.",
"phone.intro.title": "다른 기기에서 {app} 쓰기",
- "phone.intro.detail": "휴대폰이나 다른 컴퓨터에서 채팅을 확인하고, 승인에 답하고, 새 작업을 보내세요.",
"phone.value.chats": "내 대화",
"phone.value.chatsDetail": "다른 기기에서 읽고 답하세요.",
"phone.value.approvals": "빠른 승인",
@@ -7266,7 +7265,6 @@
"native.connect.empty": "서버 주소를 입력하거나 링크를 붙여 넣으세요.",
"native.connect.codeOnly": "페어링 코드입니다. 서버 주소도 입력하세요. 예: {example}",
"native.connect.emailCode": "이메일로 받은 로그인 코드입니다. 페어링에는 7KQ2-M9XD-H4TP 같은 12자리 코드가 필요합니다.",
- "native.connect.oldCode": "이 6자리 코드는 휴대폰을 데스크톱 앱과 페어링하는 코드이며, 데스크톱 앱끼리는 연결할 수 없습니다. 그 컴퓨터를 My Cloud와 공유하거나 My Cloud를 사용하세요. 서버 코드는 7KQ2-M9XD-H4TP 같은 12자리입니다. 서버에서 openmausbot pair를 실행하세요.",
"native.connect.scriptKey": "스크립트 키입니다. 페어링에는 페어링 코드가 필요합니다.",
"native.connect.notACode": "페어링 코드가 아닙니다. 페어링에는 7KQ2-M9XD-H4TP 같은 12자리 코드가 필요합니다.",
"native.connect.publicHttp": "http://{host}는 공개 인터넷에 있고 암호화되지 않아 다른 사람이 채팅을 읽을 수 있습니다. https 주소를 사용하거나 앞단에 HTTPS를 두세요(cloudflared, Caddy 또는 Tailscale).",
@@ -7276,12 +7274,10 @@
"native.connect.dns": "{host}가 아직 존재하지 않습니다. 철자를 확인하거나 DNS 레코드를 기다리세요.",
"native.connect.certificate": "{host}의 인증서가 아직 유효하지 않습니다. 새 서버는 인증서를 받는 데 1분 정도 걸릴 수 있습니다.",
"native.connect.notMausBot": "이 주소는 응답하지만 MausBot 서버가 아닙니다.",
- "native.connect.desktopApp": "{host}은(는) MausBot 데스크톱 앱이며, 데스크톱 앱끼리는 연결할 수 없습니다. 여기서 그 컴퓨터를 사용하려면 그 앱에서 My Cloud와 공유하거나 My Cloud를 사용하세요.",
"native.connect.loopback": "서버가 아니라 이 컴퓨터({host})를 가리킵니다. 서버 자체의 주소를 사용하세요.",
"native.connect.localNetwork": "{host}에 연결할 수 없습니다. Mac에서는 시스템 설정 → 개인정보 보호 및 보안 → 로컬 네트워크에서 OpenMausBot을 켠 다음 다시 시도하세요. 서버가 이 네트워크에서 실행 중인지도 확인하세요.",
"serverError.pair.tooMany": "잘못된 코드가 너무 많습니다. {time}에 다시 시도하세요.",
"serverError.pair.emailCode": "이메일로 받은 로그인 코드입니다. 페어링에는 7KQ2-M9XD-H4TP 같은 12자리 코드가 필요합니다.",
- "serverError.pair.oldCode": "이전 MausBot의 코드입니다. 다른 컴퓨터에서 새 코드를 만드세요: 휴대폰 및 기기 → 기기 페어링.",
"serverError.pair.scriptKey": "스크립트 키입니다. 페어링에는 페어링 코드가 필요합니다.",
"serverError.pair.notACode": "페어링 코드가 아닙니다. 페어링에는 7KQ2-M9XD-H4TP 같은 12자리 코드가 필요합니다.",
"pair.emailCode": "이메일로 받은 로그인 코드",
@@ -7789,6 +7785,7 @@
"settings.browser.proxyClear": "삭제",
"composer.command.burstDesc": "작업의 여러 부분을 한 번에 실행한 뒤 결과 합치기",
"devices.computers.pairButton": "컴퓨터 페어링",
+ "devices.computers.title": "내 다른 컴퓨터",
"devices.computers.pairTitle": "다른 컴퓨터 페어링",
- "devices.computers.typeCode": "다른 컴퓨터의 {app}에서 서버에 연결을 열고 이 코드를 입력하세요."
+ "remote.tailscale.needsApproval": "이 컴퓨터는 Tailscale 네트워크에서 승인을 기다리고 있습니다. Tailscale 관리 콘솔에서 승인한 다음 다시 시도하세요."
}
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 0a7c21e14f..9b8bb0829c 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -3822,7 +3822,6 @@
"remote.client.idle": "Połącz z innym komputerem",
"remote.client.subtitle": "Użyj tej aplikacji na komputer jako bezpiecznego klienta {app} działającego na innym komputerze.",
"phone.intro.title": "Używaj {app} z innego urządzenia",
- "phone.intro.detail": "Sprawdzaj czaty, odpowiadaj na zatwierdzenia i wysyłaj nowe zadania z telefonu lub innego komputera.",
"phone.value.chats": "Twoje rozmowy",
"phone.value.chatsDetail": "Czytaj i odpowiadaj z innego urządzenia.",
"phone.value.approvals": "Szybkie zatwierdzenia",
@@ -6699,7 +6698,6 @@
"native.connect.empty": "Wpisz adres serwera albo wklej jego link.",
"native.connect.codeOnly": "To jest kod parowania. Wpisz też adres serwera, np. {example}.",
"native.connect.emailCode": "To kod logowania z e-maila. Do parowania potrzebny jest 12-znakowy kod, np. 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Ten 6-cyfrowy kod paruje telefon z aplikacją desktopową, a jedna aplikacja desktopowa nie może połączyć się z inną: udostępnij ten komputer My Cloud albo użyj My Cloud. Kod serwera ma 12 znaków, np. 7KQ2-M9XD-H4TP: na serwerze uruchom openmausbot pair.",
"native.connect.scriptKey": "To klucz skryptu. Do parowania potrzebny jest kod parowania.",
"native.connect.notACode": "To nie jest kod parowania. Do parowania potrzebny jest 12-znakowy kod, np. 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} jest w otwartym internecie i nie jest szyfrowany, więc inni mogliby czytać Twoje czaty. Użyj jego adresu https albo postaw przed nim HTTPS (cloudflared, Caddy lub Tailscale).",
@@ -6709,12 +6707,10 @@
"native.connect.dns": "{host} jeszcze nie istnieje. Sprawdź pisownię albo poczekaj na rekord DNS.",
"native.connect.certificate": "Certyfikat {host} nie jest jeszcze ważny. Nowy serwer może potrzebować minuty, żeby go dostać.",
"native.connect.notMausBot": "Ten adres odpowiada, ale to nie jest serwer MausBot.",
- "native.connect.desktopApp": "{host} to aplikacja desktopowa MausBot, a jedna aplikacja desktopowa nie może połączyć się z inną. Aby używać tego komputera stąd, udostępnij go My Cloud w jego własnej aplikacji albo użyj My Cloud.",
"native.connect.loopback": "To wskazuje na ten komputer ({host}), a nie na serwer. Użyj adresu samego serwera.",
"native.connect.localNetwork": "Nie można połączyć się z {host}. Na Macu włącz OpenMausBot w Ustawieniach systemowych → Prywatność i ochrona → Sieć lokalna, a potem spróbuj ponownie. Sprawdź też, czy serwer działa w tej sieci.",
"serverError.pair.tooMany": "Za dużo błędnych kodów. Spróbuj ponownie o {time}.",
"serverError.pair.emailCode": "To kod logowania z e-maila. Do parowania potrzebny jest 12-znakowy kod, np. 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "To kod ze starszej wersji MausBot. Utwórz nowy na drugim komputerze: Telefon i urządzenia → Sparuj urządzenie.",
"serverError.pair.scriptKey": "To klucz skryptu. Do parowania potrzebny jest kod parowania.",
"serverError.pair.notACode": "To nie jest kod parowania. Do parowania potrzebny jest 12-znakowy kod, np. 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Kod logowania z e-maila",
@@ -7269,6 +7265,7 @@
"computer.recovery.replaceTitle": "Usuwa ten komputer w chmurze i daje botowi nowy. Pliki, które są tylko na nim, zostaną utracone.",
"composer.command.burstDesc": "Uruchom wiele części zadania naraz, a potem połącz wyniki",
"devices.computers.pairButton": "Sparuj komputer",
+ "devices.computers.title": "Twoje inne komputery",
"devices.computers.pairTitle": "Sparuj inny komputer",
- "devices.computers.typeCode": "Na drugim komputerze otwórz Połącz z serwerem w {app} i wpisz ten kod."
+ "remote.tailscale.needsApproval": "Ten komputer czeka na zatwierdzenie w Twojej sieci Tailscale. Zatwierdź go w konsoli administracyjnej Tailscale, a potem spróbuj ponownie."
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index e40e57dd8a..7a2d749f1b 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4559,7 +4559,6 @@
"remote.client.idle": "Conectar a outro computador",
"remote.client.subtitle": "Use este app para computador como um cliente seguro do app {app} que roda em outro computador.",
"phone.intro.title": "Usar {app} em outro dispositivo",
- "phone.intro.detail": "Veja conversas, responda às solicitações de aprovação e envie novas tarefas pelo celular ou por outro computador.",
"phone.value.chats": "Suas conversas",
"phone.value.chatsDetail": "Leia e responda de outro dispositivo.",
"phone.value.approvals": "Aprovações rápidas",
@@ -9597,7 +9596,6 @@
"native.connect.empty": "Digite o endereço do servidor ou cole o link dele.",
"native.connect.codeOnly": "Isso é um código de pareamento. Digite também o endereço do servidor, por exemplo {example}.",
"native.connect.emailCode": "Isso é um código de login de um e-mail. O pareamento precisa de um código de 12 caracteres como 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Esse código de 6 dígitos pareia um celular com um app de desktop, e um app de desktop não pode se conectar a outro: compartilhe esse computador com o My Cloud, ou use o My Cloud. O código de um servidor tem 12 caracteres como 7KQ2-M9XD-H4TP: no servidor, execute openmausbot pair.",
"native.connect.scriptKey": "Isso é uma chave de script. O pareamento precisa de um código de pareamento.",
"native.connect.notACode": "Isso não é um código de pareamento. O pareamento precisa de um código de 12 caracteres como 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} está na internet aberta e não tem criptografia, então outras pessoas poderiam ler suas conversas. Use o endereço https dele, ou coloque HTTPS na frente (cloudflared, Caddy ou Tailscale).",
@@ -9607,7 +9605,6 @@
"native.connect.dns": "{host} ainda não existe. Confira a grafia, ou aguarde o registro DNS.",
"native.connect.certificate": "O certificado de {host} ainda não é válido. Um servidor novo pode levar um minuto para obter um.",
"native.connect.notMausBot": "Esse endereço responde, mas não é um servidor MausBot.",
- "native.connect.desktopApp": "{host} é um app de desktop do MausBot, e um app de desktop não pode se conectar a outro. Para usar esse computador daqui, compartilhe-o com o My Cloud pelo próprio app dele, ou use o My Cloud.",
"native.connect.desktopAppTailnet": "{host} é um app desktop do MausBot na sua tailnet. Para abri-lo daqui, ligue o Tailscale e Seus outros computadores nas Configurações dele → Celular e dispositivos e use o endereço mostrado lá.",
"native.connect.loopback": "Isso aponta para este computador ({host}), não para o servidor. Use o endereço do próprio servidor.",
"native.connect.localNetwork": "Não foi possível acessar {host}. No Mac, ative o OpenMausBot em Ajustes do Sistema → Privacidade e Segurança → Rede Local e tente de novo. Verifique também se o servidor está rodando nesta rede.",
@@ -10440,7 +10437,6 @@
"server.meetings.card.settingUp": "Preparando a transcrição (só uma vez, cerca de um minuto)…",
"server.meetings.card.speechStopped": "A transcrição parou: {problem}",
"serverError.pair.emailCode": "Esse é um código de login de um e-mail. O pareamento precisa de um código de 12 caracteres como 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Esse é um código de uma versão anterior do MausBot. Crie um novo no outro computador: Celular e dispositivos → Parear um dispositivo.",
"serverError.pair.scriptKey": "Essa é uma chave de script. O pareamento precisa de um código de pareamento.",
"serverError.pair.notACode": "Isso não é um código de pareamento. O pareamento precisa de um código de 12 caracteres como 7KQ2-M9XD-H4TP.",
"pair.fromLink": "Do link",
@@ -10455,10 +10451,8 @@
"devices.paired": "Pareados",
"devices.moreWays": "Mais formas de acesso",
"devices.computers.title": "Seus outros computadores",
- "devices.computers.detail": "Desligado até você ligar. Ligado, um computador da sua tailnet pode abrir este em Conectar a um servidor, depois que você der um código de pareamento.",
"devices.computers.pairButton": "Parear um computador",
"devices.computers.pairTitle": "Parear outro computador",
- "devices.computers.typeCode": "No outro computador, abra Conectar a um servidor no {app} e digite este código.",
"devices.computers.https": "Pronto em {address}, com o certificado HTTPS do Tailscale.",
"devices.computers.http": "Pronto em {address}. Só a sua tailnet tem acesso, e o WireGuard criptografa a conexão. Para um endereço https, ative HTTPS Certificates nos ajustes de DNS do Tailscale e verifique de novo.",
"devices.computers.waiting": "O Tailscale ainda não está conectado neste computador. O {app} responde aqui assim que estiver.",
@@ -10919,5 +10913,15 @@
"settings.browser.proxyConfigured": "As novas conexões do navegador integrado usam este proxy SOCKS5. O Meu Chrome mantém as próprias configurações; destinos privados e locais continuam protegidos.",
"settings.browser.proxyInactive": "Salvo, mas só funciona com o navegador integrado em hosts compatíveis.",
"settings.browser.proxySave": "Salvar",
- "settings.browser.proxyClear": "Remover"
+ "settings.browser.proxyClear": "Remover",
+ "remote.tailscale.needsApproval": "Este computador está aguardando aprovação na sua rede Tailscale. Aprove-o no console de administração do Tailscale, depois tente novamente.",
+ "connect.otherComputer": "Para outro computador com o app {app}: nesse computador, abra Configurações → Celular e dispositivos → Seus outros computadores.",
+ "phone.intro.detail": "Veja conversas, responda às solicitações de aprovação e envie novas tarefas pelo celular.",
+ "serverError.pair.oldCode": "Esse código é para o app do celular. O pareamento aqui precisa de um código de 12 caracteres como 7KQ2-M9XD-H4TP, criado em Configurações → Celular e dispositivos no computador ou servidor ao qual você está se conectando.",
+ "native.connect.oldCode": "Esse código é para o app do celular. Para abrir esse computador daqui, ligue o Tailscale e Seus outros computadores em Configurações → Celular e dispositivos dele, depois use o link mostrado lá. Você também pode compartilhar esse computador com o My Cloud. O código de um servidor tem 12 caracteres como 7KQ2-M9XD-H4TP.",
+ "native.connect.desktopApp": "{host} é um app de desktop do MausBot. Para abri-lo daqui, ligue o Tailscale e Seus outros computadores em Configurações → Celular e dispositivos dele, depois use o link mostrado lá. Você também pode compartilhar esse computador com o My Cloud pelo próprio app dele.",
+ "devices.computers.detail": "Abra os bots deste computador em outro computador conectado à mesma conta do Tailscale. Precisa do Tailscale nos dois.",
+ "devices.computers.typeCode": "No outro computador, abra Conectar a um servidor no {app} e cole o link que você copiar aqui. Ou digite lá este endereço e este código.",
+ "devices.computers.address": "Endereço",
+ "devices.computers.pairLine": "Cria um link que seu outro computador abre. Funciona uma vez."
}
diff --git a/src/locales/ru.json b/src/locales/ru.json
index c2fec6004b..f01b58c1fa 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -3873,7 +3873,6 @@
"remote.client.idle": "Подключиться к другому компьютеру",
"remote.client.subtitle": "Используйте это настольное приложение как защищённый клиент для {app}, работающего на другом компьютере.",
"phone.intro.title": "Используйте {app} с другого устройства",
- "phone.intro.detail": "Проверяйте чаты, подтверждайте запросы и отправляйте новую работу с телефона или другого компьютера.",
"phone.value.chats": "Ваши чаты",
"phone.value.chatsDetail": "Читайте и отвечайте с другого устройства.",
"phone.value.approvals": "Быстрые подтверждения",
@@ -6759,7 +6758,6 @@
"native.connect.empty": "Введите адрес сервера или вставьте его ссылку.",
"native.connect.codeOnly": "Это код сопряжения. Введите также адрес сервера, например {example}.",
"native.connect.emailCode": "Это код входа из письма. Для сопряжения нужен 12-символьный код, например 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Этот 6-значный код связывает телефон с настольным приложением, а одно настольное приложение не может подключиться к другому: откройте общий доступ к тому компьютеру для My Cloud или используйте My Cloud. Код сервера состоит из 12 символов, например 7KQ2-M9XD-H4TP: выполните на сервере openmausbot pair.",
"native.connect.scriptKey": "Это ключ для скриптов. Для сопряжения нужен код сопряжения.",
"native.connect.notACode": "Это не код сопряжения. Для сопряжения нужен 12-символьный код, например 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} находится в открытом интернете и не зашифрован, поэтому другие могут прочитать ваши чаты. Используйте его https-адрес или поставьте перед ним HTTPS (cloudflared, Caddy или Tailscale).",
@@ -6769,12 +6767,10 @@
"native.connect.dns": "{host} пока не существует. Проверьте написание или дождитесь DNS-записи.",
"native.connect.certificate": "Сертификат {host} пока недействителен. Новому серверу может понадобиться минута, чтобы его получить.",
"native.connect.notMausBot": "Этот адрес отвечает, но это не сервер MausBot.",
- "native.connect.desktopApp": "{host} — это настольное приложение MausBot, а одно настольное приложение не может подключиться к другому. Чтобы пользоваться тем компьютером отсюда, откройте общий доступ к нему для My Cloud в его приложении или используйте My Cloud.",
"native.connect.loopback": "Это указывает на этот компьютер ({host}), а не на сервер. Используйте адрес самого сервера.",
"native.connect.localNetwork": "Не удаётся подключиться к {host}. На Mac включите OpenMausBot в Системных настройках → Конфиденциальность и безопасность → Локальная сеть и попробуйте снова. Также проверьте, что сервер работает в этой сети.",
"serverError.pair.tooMany": "Слишком много неверных кодов. Попробуйте снова в {time}.",
"serverError.pair.emailCode": "Это код входа из письма. Для связки нужен 12-символьный код вроде 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Это код из старой версии MausBot. Создайте новый на другом компьютере: Телефон и устройства → Связать устройство.",
"serverError.pair.scriptKey": "Это ключ для скриптов. Для связки нужен код связки.",
"serverError.pair.notACode": "Это не код связки. Для связки нужен 12-символьный код вроде 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Код входа из письма",
@@ -7322,6 +7318,7 @@
"computer.recovery.replaceTitle": "Удалить этот облачный компьютер и дать боту новый. Файлы, которые есть только на нём, будут потеряны.",
"composer.command.burstDesc": "Запускает много частей задачи сразу и объединяет результаты",
"devices.computers.pairButton": "Подключить компьютер",
+ "devices.computers.title": "Ваши другие компьютеры",
"devices.computers.pairTitle": "Подключить другой компьютер",
- "devices.computers.typeCode": "На другом компьютере откройте «Подключиться к серверу» в {app} и введите этот код."
+ "remote.tailscale.needsApproval": "Этот компьютер ждёт одобрения в вашей сети Tailscale. Одобрите его в консоли администратора Tailscale, затем попробуйте снова."
}
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 8b16496054..65f963e290 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -30229,7 +30229,7 @@
"remote.client.idle": "015682a5ea2d81bb8f5c7dfaae80906a5dc21b55a18c0d91391102dd8b472435",
"remote.client.subtitle": "34e1a2c32f3cfd7e9d2440c897c02f95167008fff13b9db3c5b23a05307827d6",
"phone.intro.title": "1c43068b943e58436d1fbcfaef46ed03de81dc50a31d8d8138b55093a126db49",
- "phone.intro.detail": "db4218552e85d7f98cb3b7c1e2535783901ea4c855b9765634d9e88ab8b108d4",
+ "phone.intro.detail": "3820ebabd9cad0b2087e928893c6b6cdc991fe9fa7ede731a645b750f106adac",
"phone.value.chats": "903532e033973e3df99ec60e07999154f1a07e57150bad8e8aaf3dd53dddd7a3",
"phone.value.chatsDetail": "92d8f1f29ea67fabae02fedc63d53d1a4ad691b80365829a50484b3710c04ec4",
"phone.value.approvals": "e94c24b871a080b6564de7ad2e26fcc6d2cd753e0d679855f4a2426ac9e8ebc7",
@@ -35693,7 +35693,7 @@
"server.meetings.card.settingUp": "d81cfcf225f32d72d2a48a5465074c34913dfbddbb22096076ddb87f02bb3e32",
"server.meetings.card.speechStopped": "dfbb5ca1820e4ed45f043ef17627fe2caa67914519d34b1dd285aabda61e2c47",
"serverError.pair.emailCode": "68c973f152cfb2a2e31297465950da40b2a1a8816a837a0eee4b6d7ffc619e0a",
- "serverError.pair.oldCode": "2b95cd4ec5237adafb18ea5a5beb7b2dc6de257844bceaff28b4b3159b10d093",
+ "serverError.pair.oldCode": "98e7e9174a64246ed5be756b5d2ff84d9a0dbc6f0362fafd4794b5da3217dccc",
"serverError.pair.scriptKey": "07cb8d178d8c2f9b13ff94b7a65a1da54b1c2abef61c5015f6229824abd642c1",
"serverError.pair.notACode": "1a22adbe62929c1dde93b68be4d42ac2a1addd7c722f0a42546f5920e3065aa1",
"pair.fromLink": "dbb9850b1f41a907905761e472e2c434f19bbddbf827c23c60bf6bc4185aec7c",
@@ -35762,7 +35762,7 @@
"native.connect.empty": "425ae435193c76fcfe57a85d3b137d3c05974fa4aedb5ce7736beab4c03dc36e",
"native.connect.codeOnly": "5b84bd29dbc1a5b2cd1f0c7f4102842f0692f564b193bf1d65ee3a34cbe83513",
"native.connect.emailCode": "68c973f152cfb2a2e31297465950da40b2a1a8816a837a0eee4b6d7ffc619e0a",
- "native.connect.oldCode": "dbb5e8b300620d75aa465bf63ca7ced9b0db59761645e75c83e484626859f92e",
+ "native.connect.oldCode": "29d83efc87b647ba0a95a87f28f99d33040504e1ac3e27ded88159b9dd94994b",
"native.connect.scriptKey": "07cb8d178d8c2f9b13ff94b7a65a1da54b1c2abef61c5015f6229824abd642c1",
"native.connect.notACode": "1a22adbe62929c1dde93b68be4d42ac2a1addd7c722f0a42546f5920e3065aa1",
"native.connect.publicHttp": "2ec3b45013a48e6d4988ee9733ccaa21da9d8874e493c04ff782d0e28e056079",
@@ -36049,7 +36049,7 @@
"botLimit.created.body": "5ab519ffccc837cc76b1e1c3437077b4f997add4e7226556ab395ebfd62074d8",
"keys.purpose.modelgo": "76f7dce952b8bbd8fa9e6f67293765bd4c57b3773167eb4a6bb05952a279b33e",
"pair.browser.teamTitle": "6bb8baca5099d785420afe557d0fd86a2bfc86ab01d1d25ced816d495b6db2f5",
- "native.connect.desktopApp": "8a430f237e81cf9cca9ea0bb61a612ee0c408247919acbfeb9b76963b0c94ee2",
+ "native.connect.desktopApp": "a39c0f25eebbf0dad6d0ff7cd8f7a783786d5d950b44833d235ffb7e56ecf489",
"native.lendTray.problem": "d6e820f33be822f86612e62567b07319b42e9f0bd27f6a05b479f96c601ccd73",
"native.lendTray.problemNoticeTitle": "3a9088ebe2384f610b7664b6cfd08834a6bf8c3bcf74d6fdfeff4376c8c05d58",
"native.lendTray.myCloud": "9614e9048e064e27e2805c476cb49f65fac9834e5d634e79a514f2850ca266e1",
@@ -36243,7 +36243,7 @@
"native.connect.tailnetBlocked": "ef085b316019979302cf1167148eb9ca8f2312eb12403d6f3590f711300950a3",
"native.connect.tailnetSilent": "9078fe3a7c58bbbe85026e73024dc26c8dad3f99272ad23f714ec5fd0bade096",
"devices.computers.title": "700633b6d9e8d3cebf611ff7642fd356d5febbf3d625fa63691063bc87bdf5f5",
- "devices.computers.detail": "03016c59fbed823e72bffc80c442ac44186f53076be6b1e94d87c021b0049562",
+ "devices.computers.detail": "5ad0e22aaf6523864af4e26561329ef5758d71de6bbf67156843544f5a38863e",
"devices.computers.https": "038cc4517307ca5a369e7997f50709d50afa51fa070b4e5b814eebcf392dbead",
"devices.computers.http": "5fabb52c39e3b85c44ee79fca9adc7e4721b26c089871545c386f016675b8f38",
"devices.computers.waiting": "3c7f87dcde8c9c80eb4a6642259dd46896ddb9bb9d3cc88b8f3ac2421791d524",
@@ -36968,7 +36968,7 @@
"remote.diagnosis.next.otherCopy": "29f59104ac96620533eecfef5e6bd7e612e84c6b2a6f71ebdb02550d4cd3518e",
"devices.computers.pairButton": "60f8288e33f9f57d2b51409fdb540b47a89c25447061bd354122442818a36ee0",
"devices.computers.pairTitle": "b7cda6a11ab410daa4b8977624ca72261c0168e7c3d83ae0eed93ac4e3540bc8",
- "devices.computers.typeCode": "2a528dfe78f6b331e8cca951872961169ca6f340a886e40e84cc0b53d441c174",
+ "devices.computers.typeCode": "8e860dc87455aead53b00f35d93d324d8254923138c57d84e6a6c7bb6e47749f",
"routines.noStartStreak": "fb107024c4705682465cf381239f9ecfc60e2e5dca2776c8082236b44ef38a9d",
"routines.unreadable": "389a5c2a0eaa1366fc44c538daef1c28f2271aba90e806be13da78c14c1d3ced",
"routines.server.busyTooLong": "4127f973deb204a8156c2c823319287c125b4e457d6ffe467c3597846b656d3b",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 5ba8e01832..7988d08c4a 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -3160,7 +3160,6 @@
"remote.client.idle": "Başka bir bilgisayara bağlan",
"remote.client.subtitle": "Bu masaüstü uygulamasını başka bir bilgisayarda çalışan {app} için güvenli bir istemci olarak kullanın.",
"phone.intro.title": "{app} uygulamasını başka bir cihazdan kullanın",
- "phone.intro.detail": "Bir telefondan veya başka bir bilgisayardan sohbetleri kontrol edin, onayları yanıtlayın ve yeni işler gönderin.",
"phone.value.chats": "Konuşmalarınız",
"phone.value.chatsDetail": "Başka bir cihazdan okuyun ve yanıtlayın.",
"phone.value.approvals": "Hızlı onaylar",
@@ -5430,7 +5429,6 @@
"native.connect.empty": "Sunucunun adresini girin veya bağlantısını yapıştırın.",
"native.connect.codeOnly": "Bu bir eşleştirme kodu. Sunucunun adresini de girin, örneğin {example}.",
"native.connect.emailCode": "Bu, bir e-postadan gelen oturum açma kodu. Eşleştirme için 7KQ2-M9XD-H4TP gibi 12 karakterlik bir kod gerekir.",
- "native.connect.oldCode": "Bu 6 haneli kod bir telefonu masaüstü uygulamasıyla eşler ve bir masaüstü uygulaması başka birine bağlanamaz: o bilgisayarı My Cloud ile paylaşın veya My Cloud kullanın. Bir sunucunun kodu 7KQ2-M9XD-H4TP gibi 12 karakterdir: sunucuda openmausbot pair çalıştırın.",
"native.connect.scriptKey": "Bu bir betik anahtarı. Eşleştirme için bir eşleştirme kodu gerekir.",
"native.connect.notACode": "Bu bir eşleştirme kodu değil. Eşleştirme için 7KQ2-M9XD-H4TP gibi 12 karakterlik bir kod gerekir.",
"native.connect.publicHttp": "http://{host} açık internette ve şifrelenmemiş; başkaları sohbetlerinizi okuyabilir. Onun https adresini kullanın ya da önüne HTTPS koyun (cloudflared, Caddy veya Tailscale).",
@@ -5440,12 +5438,10 @@
"native.connect.dns": "{host} henüz yok. Yazımı kontrol edin ya da DNS kaydını bekleyin.",
"native.connect.certificate": "{host} sertifikası henüz geçerli değil. Yeni bir sunucunun sertifika alması bir dakika sürebilir.",
"native.connect.notMausBot": "Bu adres yanıt veriyor ama bir MausBot sunucusu değil.",
- "native.connect.desktopApp": "{host} bir MausBot masaüstü uygulaması ve bir masaüstü uygulaması başka birine bağlanamaz. O bilgisayarı buradan kullanmak için kendi uygulamasından My Cloud ile paylaşın veya My Cloud kullanın.",
"native.connect.loopback": "Bu, sunucuyu değil bu bilgisayarı ({host}) gösteriyor. Sunucunun kendi adresini kullanın.",
"native.connect.localNetwork": "{host} adresine ulaşılamıyor. Mac'te Sistem Ayarları → Gizlilik ve Güvenlik → Yerel Ağ bölümünden OpenMausBot'u açın ve tekrar deneyin. Sunucunun bu ağda çalıştığını da kontrol edin.",
"serverError.pair.tooMany": "Çok fazla yanlış kod. {time} saatinde yeniden deneyin.",
"serverError.pair.emailCode": "Bu bir e-postadan gelen giriş kodu. Eşleştirme için 7KQ2-M9XD-H4TP gibi 12 karakterli bir kod gerekir.",
- "serverError.pair.oldCode": "Bu, eski bir MausBot sürümünün kodu. Diğer bilgisayarda yeni bir kod oluşturun: Telefon ve cihazlar → Cihaz eşleştir.",
"serverError.pair.scriptKey": "Bu bir betik anahtarı. Eşleştirme için eşleştirme kodu gerekir.",
"serverError.pair.notACode": "Bu bir eşleştirme kodu değil. Eşleştirme için 7KQ2-M9XD-H4TP gibi 12 karakterli bir kod gerekir.",
"pair.emailCode": "E-postanızdaki giriş kodu",
@@ -6008,6 +6004,7 @@
"computer.recovery.replaceTitle": "Bu bulut bilgisayarı siler ve bota yenisini verir. Yalnızca üzerinde olan dosyalar kaybolur.",
"composer.command.burstDesc": "Bir işin birçok parçasını aynı anda çalıştırın, sonra sonuçları birleştirin",
"devices.computers.pairButton": "Bilgisayar eşle",
+ "devices.computers.title": "Diğer bilgisayarlarınız",
"devices.computers.pairTitle": "Başka bir bilgisayar eşle",
- "devices.computers.typeCode": "Diğer bilgisayarınızda {app} içinde Sunucuya bağlan'ı açın ve bu kodu yazın."
+ "remote.tailscale.needsApproval": "Bu bilgisayar Tailscale ağınızda onay bekliyor. Tailscale yönetici konsolunda onaylayın, ardından tekrar deneyin."
}
diff --git a/src/locales/uk.json b/src/locales/uk.json
index f0a63ce406..dc8d00c684 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -1824,7 +1824,6 @@
"remote.client.idle": "Підключитися до іншого комп'ютера",
"remote.client.subtitle": "Використовуйте цей десктопний застосунок як безпечний клієнт для {app} на іншому комп'ютері.",
"phone.intro.title": "Користуйтеся {app} з іншого пристрою",
- "phone.intro.detail": "Перевіряйте чати, відповідайте на погодження і надсилайте нову роботу з телефона чи іншого комп'ютера.",
"phone.value.chats": "Ваші розмови",
"phone.value.chatsDetail": "Читайте і відповідайте з іншого пристрою.",
"phone.value.approvals": "Швидкі погодження",
@@ -3455,7 +3454,6 @@
"native.connect.empty": "Введіть адресу сервера або вставте його посилання.",
"native.connect.codeOnly": "Це код прив'язки. Введіть також адресу сервера, наприклад {example}.",
"native.connect.emailCode": "Це код входу з листа. Для прив'язки потрібен 12-символьний код, наприклад 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Цей 6-значний код поєднує телефон із настільним застосунком, а один настільний застосунок не може під'єднатися до іншого: надайте доступ до того комп'ютера My Cloud або скористайтеся My Cloud. Код сервера має 12 символів, як-от 7KQ2-M9XD-H4TP: на сервері виконайте openmausbot pair.",
"native.connect.scriptKey": "Це ключ для скриптів. Для прив'язки потрібен код прив'язки.",
"native.connect.notACode": "Це не код прив'язки. Для прив'язки потрібен 12-символьний код, наприклад 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} у відкритому інтернеті й не зашифрований, тож інші можуть прочитати ваші чати. Використайте його https-адресу або поставте перед ним HTTPS (cloudflared, Caddy чи Tailscale).",
@@ -3465,12 +3463,10 @@
"native.connect.dns": "{host} ще не існує. Перевірте написання або дочекайтеся DNS-запису.",
"native.connect.certificate": "Сертифікат {host} ще недійсний. Новому серверу може знадобитися хвилина, щоб його отримати.",
"native.connect.notMausBot": "Ця адреса відповідає, але це не сервер MausBot.",
- "native.connect.desktopApp": "{host} — це настільний застосунок MausBot, а один настільний застосунок не може під'єднатися до іншого. Щоб користуватися тим комп'ютером звідси, надайте до нього доступ My Cloud у його власному застосунку або скористайтеся My Cloud.",
"native.connect.loopback": "Це вказує на цей комп'ютер ({host}), а не на сервер. Використайте адресу самого сервера.",
"native.connect.localNetwork": "Не вдається підключитися до {host}. На Mac увімкніть OpenMausBot у Параметрах системи → Приватність і безпека → Локальна мережа й спробуйте ще раз. Також перевірте, що сервер працює в цій мережі.",
"serverError.pair.tooMany": "Забагато неправильних кодів. Спробуйте знову о {time}.",
"serverError.pair.emailCode": "Це код входу з листа. Для з'єднання потрібен 12-символьний код на зразок 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Це код зі старішої версії MausBot. Створіть новий на іншому комп'ютері: Телефон і пристрої → З'єднати пристрій.",
"serverError.pair.scriptKey": "Це ключ для скриптів. Для з'єднання потрібен код з'єднання.",
"serverError.pair.notACode": "Це не код з'єднання. Для з'єднання потрібен 12-символьний код на зразок 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Код входу з листа",
@@ -4081,6 +4077,7 @@
"computer.recovery.replaceTitle": "Видалити цей хмарний комп'ютер і дати боту новий. Файли, які є лише на ньому, буде втрачено.",
"composer.command.burstDesc": "Запустити багато частин роботи одночасно, а потім об'єднати результати",
"devices.computers.pairButton": "Підключити комп’ютер",
+ "devices.computers.title": "Ваші інші комп’ютери",
"devices.computers.pairTitle": "Підключити інший комп’ютер",
- "devices.computers.typeCode": "На іншому комп’ютері відкрийте «Підключитися до сервера» в {app} і введіть цей код."
+ "remote.tailscale.needsApproval": "Цей комп’ютер чекає на схвалення у вашій мережі Tailscale. Схваліть його в консолі адміністратора Tailscale, потім спробуйте ще раз."
}
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 580b5f0854..fb811d8325 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -3160,7 +3160,6 @@
"remote.client.idle": "Kết nối với máy tính khác",
"remote.client.subtitle": "Sử dụng ứng dụng desktop này làm client an toàn cho {app} đang chạy trên máy tính khác.",
"phone.intro.title": "Dùng {app} từ thiết bị khác",
- "phone.intro.detail": "Xem tin nhắn, duyệt yêu cầu và giao việc mới từ điện thoại hoặc máy tính khác.",
"phone.value.chats": "Cuộc trò chuyện của bạn",
"phone.value.chatsDetail": "Đọc và trả lời từ thiết bị khác.",
"phone.value.approvals": "Phê duyệt nhanh",
@@ -5430,7 +5429,6 @@
"native.connect.empty": "Nhập địa chỉ của máy chủ hoặc dán liên kết của nó.",
"native.connect.codeOnly": "Đó là mã ghép nối. Hãy nhập cả địa chỉ của máy chủ, ví dụ {example}.",
"native.connect.emailCode": "Đó là mã đăng nhập từ email. Ghép nối cần một mã 12 ký tự như 7KQ2-M9XD-H4TP.",
- "native.connect.oldCode": "Mã 6 chữ số đó dùng để ghép nối điện thoại với ứng dụng máy tính, và ứng dụng máy tính này không thể kết nối với ứng dụng máy tính khác: hãy chia sẻ máy tính đó với My Cloud, hoặc dùng My Cloud. Mã của máy chủ có 12 ký tự như 7KQ2-M9XD-H4TP: trên máy chủ, chạy openmausbot pair.",
"native.connect.scriptKey": "Đó là khóa dành cho script. Ghép nối cần một mã ghép nối.",
"native.connect.notACode": "Đó không phải mã ghép nối. Ghép nối cần một mã 12 ký tự như 7KQ2-M9XD-H4TP.",
"native.connect.publicHttp": "http://{host} nằm trên internet công khai và không được mã hóa, nên người khác có thể đọc các cuộc trò chuyện của bạn. Hãy dùng địa chỉ https của nó, hoặc đặt HTTPS phía trước (cloudflared, Caddy hoặc Tailscale).",
@@ -5440,12 +5438,10 @@
"native.connect.dns": "{host} chưa tồn tại. Hãy kiểm tra chính tả, hoặc chờ bản ghi DNS.",
"native.connect.certificate": "Chứng chỉ của {host} chưa hợp lệ. Máy chủ mới có thể mất một phút để nhận chứng chỉ.",
"native.connect.notMausBot": "Địa chỉ đó có phản hồi, nhưng không phải máy chủ MausBot.",
- "native.connect.desktopApp": "{host} là một ứng dụng MausBot trên máy tính, và ứng dụng máy tính này không thể kết nối với ứng dụng máy tính khác. Để dùng máy tính đó từ đây, hãy chia sẻ nó với My Cloud từ chính ứng dụng của nó, hoặc dùng My Cloud.",
"native.connect.loopback": "Địa chỉ này trỏ tới máy tính này ({host}), không phải máy chủ. Hãy dùng địa chỉ riêng của máy chủ.",
"native.connect.localNetwork": "Không thể kết nối tới {host}. Trên Mac, hãy bật OpenMausBot trong Cài đặt hệ thống → Quyền riêng tư & Bảo mật → Mạng cục bộ rồi thử lại. Đồng thời kiểm tra máy chủ đang chạy trong mạng này.",
"serverError.pair.tooMany": "Quá nhiều mã sai. Hãy thử lại lúc {time}.",
"serverError.pair.emailCode": "Đó là mã đăng nhập từ email. Ghép nối cần mã 12 ký tự như 7KQ2-M9XD-H4TP.",
- "serverError.pair.oldCode": "Đó là mã từ phiên bản MausBot cũ hơn. Hãy tạo mã mới trên máy tính kia: Điện thoại và thiết bị → Ghép nối thiết bị.",
"serverError.pair.scriptKey": "Đó là khóa script. Ghép nối cần mã ghép nối.",
"serverError.pair.notACode": "Đó không phải mã ghép nối. Ghép nối cần mã 12 ký tự như 7KQ2-M9XD-H4TP.",
"pair.emailCode": "Mã đăng nhập từ email của bạn",
@@ -6008,6 +6004,7 @@
"computer.recovery.replaceTitle": "Xóa máy tính đám mây này và cho bot một máy mới. Các tệp chỉ có trên máy này sẽ bị mất.",
"composer.command.burstDesc": "Chạy nhiều phần của một công việc cùng lúc, rồi gộp kết quả",
"devices.computers.pairButton": "Ghép nối máy tính",
+ "devices.computers.title": "Các máy tính khác của bạn",
"devices.computers.pairTitle": "Ghép nối máy tính khác",
- "devices.computers.typeCode": "Trên máy tính kia, mở Kết nối với máy chủ trong {app} và nhập mã này."
+ "remote.tailscale.needsApproval": "Máy tính này đang chờ được phê duyệt trên mạng Tailscale của bạn. Hãy phê duyệt trong bảng điều khiển quản trị Tailscale, rồi thử lại."
}
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 2c3eed4510..5176c22d1f 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -4498,7 +4498,6 @@
"remote.client.idle": "連線到另一台電腦",
"remote.client.subtitle": "將此桌面版 App 當作安全的用戶端,連線到在另一台電腦上執行的 {app}。",
"phone.intro.title": "從其他裝置使用 {app}",
- "phone.intro.detail": "透過手機或另一台電腦查看對話、回覆核准要求,並指派新的工作。",
"phone.value.chats": "你的對話",
"phone.value.chatsDetail": "從其他裝置閱讀並回覆。",
"phone.value.approvals": "快速核准",
@@ -8838,7 +8837,6 @@
"serverError.pair.tooMany": "錯誤的代碼太多。請在 {time} 再試一次。",
"serverError.pair.linkExpired": "這個登入連結已過期或已被使用",
"serverError.pair.emailCode": "這是電子郵件中的登入代碼。配對需要像 7KQ2-M9XD-H4TP 這樣的 12 字元代碼。",
- "serverError.pair.oldCode": "這是舊版 MausBot 的代碼。請在另一台電腦上建立新代碼:手機與裝置 → 配對裝置。",
"serverError.pair.scriptKey": "這是腳本金鑰。配對需要配對代碼。",
"serverError.pair.notACode": "這不是配對代碼。配對需要像 7KQ2-M9XD-H4TP 這樣的 12 字元代碼。",
"serverError.email.invalid": "請輸入有效的電子郵件地址",
@@ -9036,7 +9034,6 @@
"native.connect.empty": "輸入伺服器的位址,或貼上它的連結。",
"native.connect.codeOnly": "這是配對碼。也請輸入伺服器的位址,例如 {example}。",
"native.connect.emailCode": "這是電子郵件裡的登入碼。配對需要像 7KQ2-M9XD-H4TP 這樣的 12 字元配對碼。",
- "native.connect.oldCode": "這組 6 位數代碼是用來將手機與桌面應用程式配對的,而桌面應用程式之間無法互相連線:請將那台電腦分享給 My Cloud,或使用 My Cloud。伺服器的代碼有 12 個字元,例如 7KQ2-M9XD-H4TP:請在伺服器上執行 openmausbot pair。",
"native.connect.scriptKey": "這是指令碼金鑰。配對需要配對碼。",
"native.connect.notACode": "這不是配對碼。配對需要像 7KQ2-M9XD-H4TP 這樣的 12 字元配對碼。",
"native.connect.publicHttp": "http://{host} 位於公開網際網路且未加密,別人可能讀到你的對話。請使用它的 https 位址,或在前面加上 HTTPS(cloudflared、Caddy 或 Tailscale)。",
@@ -9046,7 +9043,6 @@
"native.connect.dns": "{host} 還不存在。請檢查拼字,或等待 DNS 記錄生效。",
"native.connect.certificate": "{host} 的憑證還無效。新伺服器可能需要一分鐘取得憑證。",
"native.connect.notMausBot": "這個位址有回應,但它不是 MausBot 伺服器。",
- "native.connect.desktopApp": "{host} 是 MausBot 桌面應用程式,而桌面應用程式之間無法互相連線。若要從這裡使用那台電腦,請在它自己的應用程式中將它分享給 My Cloud,或使用 My Cloud。",
"native.connect.loopback": "這指向這台電腦({host}),而不是伺服器。請使用伺服器自己的位址。",
"native.connect.localNetwork": "無法連到 {host}。在 Mac 上,請到「系統設定」→「隱私權與安全性」→「區域網路」開啟 OpenMausBot,然後再試一次。也請確認伺服器正在這個網路上執行。",
"native.dialog.mic.allow": "允許",
@@ -10349,6 +10345,7 @@
"burst.error.action": "操作沒有成功,請稍後再試。",
"activity.tool.team.burst": "平行處理",
"devices.computers.pairButton": "配對電腦",
+ "devices.computers.title": "你的其他電腦",
"devices.computers.pairTitle": "配對另一台電腦",
- "devices.computers.typeCode": "在另一台電腦上,於 {app} 開啟「連線到伺服器」並輸入這組代碼。"
+ "remote.tailscale.needsApproval": "這台電腦正在等待你的 Tailscale 網路核准。請在 Tailscale 管理主控台中核准它,然後再試一次。"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 62fb0d238c..8a76478c2f 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -4507,7 +4507,6 @@
"remote.client.idle": "连接到另一台电脑",
"remote.client.subtitle": "把这个桌面应用当作另一台电脑上 {app} 的安全客户端。",
"phone.intro.title": "在另一台设备上使用 {app}",
- "phone.intro.detail": "在手机或另一台电脑上查看对话、回应批准并派发新任务。",
"phone.value.chats": "你的对话",
"phone.value.chatsDetail": "在另一台设备上阅读和回复。",
"phone.value.approvals": "快速批准",
@@ -8092,7 +8091,6 @@
"native.connect.empty": "输入服务器的地址,或粘贴它的链接。",
"native.connect.codeOnly": "这是配对码。还请输入服务器的地址,例如 {example}。",
"native.connect.emailCode": "这是邮件里的登录码。配对需要像 7KQ2-M9XD-H4TP 这样的 12 位配对码。",
- "native.connect.oldCode": "这个 6 位数代码用于将手机与桌面应用配对,而桌面应用之间无法互相连接:请把那台电脑共享给 My Cloud,或使用 My Cloud。服务器的代码有 12 个字符,例如 7KQ2-M9XD-H4TP:请在服务器上运行 openmausbot pair。",
"native.connect.scriptKey": "这是脚本密钥。配对需要配对码。",
"native.connect.notACode": "这不是配对码。配对需要像 7KQ2-M9XD-H4TP 这样的 12 位配对码。",
"native.connect.publicHttp": "http://{host} 位于公共互联网且未加密,别人可能读到你的聊天。请使用它的 https 地址,或在前面加上 HTTPS(cloudflared、Caddy 或 Tailscale)。",
@@ -8102,12 +8100,10 @@
"native.connect.dns": "{host} 还不存在。请检查拼写,或等待 DNS 记录生效。",
"native.connect.certificate": "{host} 的证书还无效。新服务器可能需要一分钟来获取证书。",
"native.connect.notMausBot": "这个地址有响应,但它不是 MausBot 服务器。",
- "native.connect.desktopApp": "{host} 是 MausBot 桌面应用,而桌面应用之间无法互相连接。要从这里使用那台电脑,请在它自己的应用中把它共享给 My Cloud,或使用 My Cloud。",
"native.connect.loopback": "这指向这台电脑({host}),而不是服务器。请使用服务器自己的地址。",
"native.connect.localNetwork": "无法连接到 {host}。在 Mac 上,请在“系统设置”→“隐私与安全性”→“本地网络”中打开 OpenMausBot,然后重试。也请确认服务器正在这个网络上运行。",
"serverError.pair.tooMany": "错误的代码太多。请在 {time} 再试一次。",
"serverError.pair.emailCode": "这是邮件中的登录代码。配对需要像 7KQ2-M9XD-H4TP 这样的 12 位代码。",
- "serverError.pair.oldCode": "这是旧版 MausBot 的代码。请在另一台电脑上新建一个:手机和设备 → 配对设备。",
"serverError.pair.scriptKey": "这是脚本密钥。配对需要配对代码。",
"serverError.pair.notACode": "这不是配对代码。配对需要像 7KQ2-M9XD-H4TP 这样的 12 位代码。",
"pair.emailCode": "邮件中的登录代码",
@@ -10223,6 +10219,7 @@
"burst.error.action": "操作没有成功,请稍后再试。",
"activity.tool.team.burst": "并行处理",
"devices.computers.pairButton": "配对电脑",
+ "devices.computers.title": "你的其他电脑",
"devices.computers.pairTitle": "配对另一台电脑",
- "devices.computers.typeCode": "在另一台电脑上,在 {app} 中打开“连接到服务器”并输入此代码。"
+ "remote.tailscale.needsApproval": "这台电脑正在等待你的 Tailscale 网络批准。请在 Tailscale 管理控制台中批准它,然后重试。"
}