Desktop remote control: the GoodQA desktop app is the one install and opt-in path

Status (2026-10-08): visible by default after sign-in when the selected organization enables Machines. The desktop app asks its configured API and caches the answer for one minute, scoped to the deployment, account and selected organization. Login, account, deployment and organization changes invalidate the answer; an existing session is paused before access is checked again. API refusal or unavailable access stays off. Missing desktop-agent.json now means available. Either GOODQA_DESKTOP_AGENT=0 or {"enabled":false} in that file in the app's userData directory disables it; a file-level false wins over GOODQA_DESKTOP_AGENT=1. Malformed/unreadable switches fail closed. No platform setting is changed by the app.

The native host refuses commands while the desktop app's consent heartbeat is stale. When the app resumes heartbeating, a still-live consent can recover without a new Allow. A missed heartbeat no longer permanently revokes that consent or ends its host control connection. Stop, revoked or unreadable consent, consent expiry, and the control lease's own expiry still refuse commands. This recovery does not remove the desktop controller's separate server-confirmation timeout or the API's lease-expiry sweep; the full never-auto-pause guarantee is not yet implemented.

Availability exposes Remote control → Settings in its own window, the menu-bar dropdown and tray shortcuts. The first-run card opens the existing confirmed enrollment flow. The machine itself remains unenrolled until its owner chooses Set up and confirms. Settings shows connection status, pause/resume/stop/block controls, live local permission rows, permission-fix buttons, administrator-rights guidance and the existing setup wizard. General desktop Settings has a link to this panel. Diagnostics opens separately and contains only diagnostic details. macOS probes Screen Recording and Accessibility without prompting until a fix button is pressed. Windows displays the signed command-helper status and explains that administrator-window input requires a separate UIAccess helper, which this build does not implement. Linux reports X11 or Wayland and its limitation.

Organization enrollment, people/bot/persona access and audit are in organization Settings > Remote Control (/o/{orgSlug}/settings/remote-control). The legacy /settings/machines route redirects there. Members see owned/shared machines; admins can review all and revoke/audit, while the existing server requires the machine owner to issue new grants. Browser permissions continue through the existing per-connection consent flow. Local Linux browser/Electron evidence and native pending steps are in acceptance/remote-control-visible.live.json.

  • API reference: /v1/openapi.json
  • MCP tools: tool reference
  • Runbook: This computer user guide and Machines runbook
  • Design: desktop agent, GoodQA Machines

1. What the person sees

A Remote control drop-down in the main window's menu bar, and the same drop-down in the tray (one menu model, apps/desktop/src/remote-control/menu.ts, so the two can never disagree). The first row is always the status line:

StateStatus lineRows
off (the default)Remote control is offEnable remote desktop on this machine…
setting upSetting up remote control… / Waiting for your OK in the system prompt… / …Continue setting up remote control…
on, idleRemote control on — not in use (· Full power)End this session, Pause, Block for an hour, Block until I turn it on, This computer, Settings, Chrome extension, Diagnostics, Turn off remote desktop on this machine…
in useIn use by Ada (bot) since 14:02 — running: screenshotsame, plus Block Ada (bot) from this computer after End this session; the tray also puts both at the top level
pausedRemote control paused — nothing runs until you resumeResume instead of Pause
blockedRemote control blocked until 15:02 / until you turn it onTurn it back on (unblock), no second block

Every state also offers This computer, Settings, Chrome extension, Diagnostics, in that order. This computer opens the existing computer details. Settings owns Enable/Turn off, Approval mode placeholders (including trusted requesters), Operating system permissions and Administrator rights. Approval placeholders do not change consent or grant access. Chrome extension opens its dedicated panel with Browser Control status, installed profiles, version, channel and native compatibility, plus install/update instructions and pairing controls. Connect Chrome profile opens the existing consent flow; Stop or Turn off in that flow removes the session's native browser authority. Installation and profile connection controls live only in Chrome extension; Settings retains Browser Control policy choices. General Settings' Open Remote control Settings button opens the dedicated Settings panel. Diagnostics contains diagnostic details only. Enable remote for my agent… appears in the menu and tray while no one-click session is active and in Settings; it opens the existing explicit one-click consent flow even for an already registered computer, without unregistering it.

End this session and Block from this computer are different promises (owner directive 2026-10-13). End this session ends the current lease and stops running work; the same bot, agent or person may ask again (and, in click-to-accept mode, must be allowed again). Block also ends that session, and the host (goodqa-agentd principals.block) keeps the controller's kind and id on disk: every later lease of that controller is refused on this computer, in both consent modes, until the owner lifts it (principals.unblock, owner only). goodqa-machine asks the host about the controller of every command it runs (gate.state with principal) and refuses a blocked one with controller_blocked. Pause and Block until I turn it on stop all remote access, for everyone. An older host without principals.block refuses the per-controller block rather than pretending (no silent fallback). The block lives on this computer; GoodQA may still issue the controller a lease, which this computer then refuses.

Block covers every control path on this computer, not only native commands (fp02 F4/D2). Clicking Block closes that controller's desktop agent-browser consent at once (the same synchronous fence End this session uses) and ends its one-click session (local stop first, then GoodQA); a different controller's browser or one-click session is left running. Afterwards the desktop app reads the host's blockedPrincipals from its status: the agent browser refuses a new consent and every command (including a queued command replayed from before the block) of a blocked controller with controller_blocked, and one-click never activates a session for a blocked agent (it ends it on GoodQA instead). With no host status at all, the agent browser fails closed. There is ONE block list: the host's status merges the person's blocks with R10's control-mode policy lists (BlockedClients as kind:id, BlockedPersons as user), and R10 admission refuses the person's blocks too. An empty kind or id never matches. What is NOT prevented: GoodQA's API cannot see this computer's list, so it can still issue a lease or queue commands for a blocked controller; this computer refuses to run them. There is no menu to list or lift blocks yet; lifting one is the owner IPC principals.unblock.

Choosing Enable remote desktop on this machine… opens ONE guided window (apps/desktop/src/remote-control/index.html):

  1. You are signed in. The desktop sign-in is the authority. No pairing code, nothing to copy.
  2. Which organisations may use this computer (at most ten ticked boxes; an organisation where the person may not add computers is shown greyed with the reason).
  3. Which bots, agents and tokens, and what each may do, listed per ticked organisation by GoodQA. For each: a preset, Resting (see the screen and facts; risky work waits for approval), QA tablet (adb only, with the listed commands), Full power (everything, including administrator tasks, no approval), or Custom (capability boxes); an "Only these commands" list (one per line, * is the only wildcard; anchored at both ends, judged by the server's own command-scope.ts); a folder list for file access; and "Ask me before anything risky". QA tablet opens files only in the listed folders, and requests no file access when none are listed. Custom with files needs at least one full folder path. Invalid paths are refused before the system prompt.
  4. Name and labels (name defaults to the computer's host name).
  5. What happens when you press Enable: the OS steps, and how many system prompts (Windows 0, Linux 1, macOS 0).

Then Enable validates the choices and asks the bundled agent what enrollment methods it supports, without starting it or changing the OS. A build without enroll.begin or enroll.complete (or one that holds more organizations than the bundled agent can enroll in one go: goodqa-agentd methods says limits.maxOrgs) stops here, with no system prompt or install. A supported build runs, in order: the one OS step, install and start the service (so it is on after a reboot), enroll the machine, and on macOS the two guided permission toggles. The window ends on Online.

Turn off remote desktop on this machine… (after a confirmation) stops everything, tells GoodQA (each machine row of this computer is revoked, so every grant and lease on it ends), makes the agent forget its enrollment and removes the service. Offline it still turns off here at once and tells GoodQA when the app next starts.

2. One version, no separate installer

The app's resources carry goodqa-agentd (host), goodqa-elevate (one-operation elevation helper) and the Machines agent goodqa-machine, all built by apps/desktop/agent/scripts/build-matrix.sh with the app's version stamped in (-X main.version) and a VERSION file beside them. scripts/agent-before-pack.cjs fails a packaging run whose bundle lacks goodqa-machine or whose VERSION is not the app's, and the app refuses to enable remote control from such a bundle (remote-control/bundle.ts). The app's own update (electron-updater) is therefore the agent's update: at the next start, if remote control was on, the app reinstalls the service from its new resources (the existing host-upgrade path in this-computer.ts). Packaging here is unsigned only; signing and hosting are not part of this lane.

3. The OS step: exactly what is needed, once, and only after Enable

OSPromptWhat it doesFile
Windowsnone: per-user login tierthe host's login service, installed without elevation. Remote control works while this person is signed in; it does not start at the sign-in screen or before anyone signs in, and the page says so. There is no boot-time tier: the bundled goodqa-agentd has no setup command, so none is offered or promised (decision D6 of the one-click Remote plan, pending the owner's word: a boot tier would be a separate, elevated installer)remote-control/elevation.ts
macOSno administrator promptper-user LaunchAgent from inside the signed bundle (existing service install), then the guided toggles: Accessibility and Screen Recording with live green/red dots, the agent restarted automatically once after the Screen Recording grant; "Continue" without one says which capability will report an error (never a blank frame)elevation.ts MacPermissionProbe
Linuxone polkit promptloginctl enable-linger <user> (skipped when linger is already on), verified afterwards; when it stays off the person is told "will NOT start after a reboot until you sign in" (machines spec V2: the old installer discarded this error); then the systemd user unitelevation.ts

Cancelling the prompt is "nothing was changed" and goes back to the choices. The controller calls the OS only in the elevating phase, which is reachable only from Enable (state.ts mayElevate); a test drives every other entry point and counts zero elevations, with a planted elevation as the negative control.

If a later step fails after the administrator step succeeded, the message says what remains: Linux linger or the Windows start-up tasks and background-task right. It does not claim that nothing changed. Linger stays on because other background services may now depend on it; the message includes the command to turn it off.

4. Enrollment without a pairing code

Enrollment needs server and agent support that is not available in this build. Enable refuses before changing the OS; the intended flow below is tested against a local stand-in, and cannot yet complete against the shipped server.

app (signed-in session)            goodqa-agentd / goodqa-machine               GoodQA
-----------------------            ------------------------------               ------
                           IPC     enroll.begin = `goodqa-machine identity --json`
                                   -> { publicKey, hostname, os, arch, agentVersion } (private key stays)
POST /v1/me/machine-enrollments  { orgIds, preset: resting, grants: [], name, labels, mode: attended,
                                   machine: { publicKey, hostname, os, arch } } ------------------------------>
<------------------------------------------------------------ 201 { enrollment: { id }, enrollSecret: gqmx_... }
                           IPC     enroll.complete { apiUrl, enrollSecret, fullPower }
                                   = `goodqa-machine enroll --exchange - --api URL --json`, secret on stdin
                                   -> POST /v1/machine-agent/enroll, signed with the device key ------------->
GET /v1/me/machine-enrollments/{id}  -> completed, machines: [{ id, orgId }]   (the server's word, not the agent's)
POST /v1/machines/{machineId}/grants  one per chosen bot, as the person chose it (existing grantBody, strict)

Why the app makes the grants itself: the server's enrollment presets apply one preset to every chosen principal, while the flow lets the person choose per bot (Resting, QA tablet with its command list, Full power, or custom). So the enrollment carries preset: resting and no grants (the server makes none), and the app posts each grant on the same session right after. That is not atomic on the server, so the app makes it atomic for the person: if any step after the handoff fails, a pending enrollment is cancelled, every machine the exchange made is revoked, and the service is removed; an app that quits mid-way finds the in-flight enrollment in its store and undoes it at the next start. Full power grants the whole disk (paths: ["/"], every drive root on Windows), as the server's own full preset does.

The desktop's per-bot QA tablet preset follows the agent's tablet tier; it is distinct from the server enrollment qa-tablet preset described in ENROLLMENT.md. The desktop always starts a resting enrollment with no grants and then posts each bot's exact grant body. The in-flight marker is persisted before the secret handoff, so recovery also covers an app exit during the exchange.

The gqmx_ secret goes from the server's answer to the local agent and nowhere else: never stored, shown or logged. Controller messages and log lines are scrubbed of every gqm*_/gqut_ shape, and the desktop Sentry scrub knows them. The app never holds a machine credential (gqmt_), a device private key or a pairing code; the renderer never sees the session token (ipc-contract.ts parses every payload and refuses unknown fields).

Organisations come from GET /v1/orgs, with GET /v1/orgs/{id}/machines as the per-org probe (200 = Machines is on there, 404 = dark, 403 = not allowed). Bots and agents come from GET /v1/orgs/{id}/api-keys/agents (bot keys, member floor) and GET /v1/orgs/{id}/personas. A person's user token is not offered as a grantee: ENROLLMENT.md section 5 rule 4 keeps elevated token grants behind their own gate (machines.tokenGrants).

5. State machine

off -> choosing -> elevating -> installing -> enrolling -> [permissions, macOS] -> connecting -> online <-> in_use, paused, blocked, and turning_off -> off (apps/desktop/src/remote-control/state.ts). The status line, the menu and the window all render from it. "In use" names the holder and the time the lease started (the agent's since, or when the app first saw it). A timed block is the stricter of the agent's and the app's record; the app lifts its own when the time is over (needed while the host lacks a timed block).

Saved remote settings

The computer owner's signed-in desktop session reads GET /v1/machines/{machineId}/remote-settings and saves with PUT /v1/machines/{machineId}/remote-settings. API keys and user tokens are refused. REMOTE_CONTROL_SETUP_ENABLED defaults true; disabling it unregisters the setup routes. A computer without saved choices returns the safe unfinished settings. Saving requires recent authentication and an owned, unrevoked native computer; browser machines are refused. Organization and named-bot selections are validated against the owner's current catalog from GET /v1/me/remote-control/catalog. Saving preferences does not replace the separate enrollment, consent and command authority checks above.

Approval modes on this device

In This computer → Remote control approval, choose Ask every time (the new-device default), Allow for trusted requesters, or Always allow. Always allow applies to this paired device and organization; it does not create GoodQA permissions or override a blocked controller. In a pending request, select Always allow on this device and Allow to add that specific requester to the trusted list. Revoke entries from the same settings section to return those requesters to prompting.

Every change requires a native confirmation on this computer. Remote input is held and remote programs are quiesced before that dialog opens. Cancellation, expired confirmations and unverified callers cannot save a change. The network agent and ordinary local CLI cannot call the policy writer.

Auto-approved control sessions show “ is controlling this computer” with Stop, retain the Stop indicator throughout the lease, and append a local control.auto_allowed audit record with requester, lease, mode and time. The host still refuses capture/input until the indicator has loaded and subscribed. The existing control-access.json policy is saved atomically with owner-only permissions (0600); missing or malformed files use Ask every time.

The local approval gate currently covers user-principal control leases. Machine API-key and agent command families use their existing grant path; extending approval modes to those families requires their verified person binding and agent admission integration. They are not represented as covered by this setting.

Stopping text input

Stop ends the control lease and Pause cancels running commands as well as blocking queued input. On X11, macOS and Windows this interrupts a running type between characters: at most the current character can still be submitted. macOS sends at most 32 Unicode characters per script and grants that process one character at a time; cancelling also kills its in-flight osascript process. Windows keeps each UTF-16 surrogate pair in one character batch and normalizes CRLF to one Enter.

A stopped type is refused (status refused, error code stopped, message "typing stopped after N of M characters") with result.chars = N, the completed character count; this is the same contract 0.2.40 shipped, now with per-character instead of per-16-character interruption. This counts submitted input, rather than proving what the focused application accepted. On macOS the count is the acknowledged posted-event count; killing the process between a post and its acknowledgement can leave one additional character in flight. The result is journaled and redelivery returns it without typing again. Stopped vault fills stop before the next field or submission and are refused with code stopped and a combined result.chars count, without including credential values. Existing server input limits remain independent of this cancellation behavior.

Command-line control over ssh (goodqa-agentd ctl)

goodqa#14851. For a computer you can reach by ssh but not click on, goodqa-agentd ctl does what the in-app buttons do. It is the stand-in for the click: it works only for someone who can already log in as the OS user that runs GoodQA.

goodqa-agentd ctl [--json] status
goodqa-agentd ctl remote-control enable | disable
goodqa-agentd ctl pause | resume
goodqa-agentd ctl agent-browser allow --origins https://a.example,https://b.example --minutes 10 [--org ID|SLUG] [--agent ID|NAME]
goodqa-agentd ctl agent-browser revoke
goodqa-agentd ctl update check | apply
goodqa-agentd ctl window-screenshot [--window main|settings]

Exit codes: 0 done, 1 the app refused (the reason is printed), 64 usage, 69 the app is not running (answers within about 3 seconds), 77 the endpoint is not private to this user (nothing was sent).

How it is held closed:

  • The app (not the CLI) serves a Unix socket in the agent's 0700 run directory (ctl.sock, mode 0600) or, on Windows, a named pipe ...-ctl. No network listener exists. A 32-byte token is written fresh at every app start to the state directory (ctl.token, 0600); a connection must prove it with a mutual HMAC before any command is read, and the client refuses a server that cannot prove it. The client also refuses a directory, socket or token that is not owned by this user, is a symlink, or is group/other accessible.
  • One message is at most 16 KiB. Every wait is bounded. Output is stripped of terminal control characters and never contains the token.
  • Origins and minutes are validated by the app, from agent-browser/policy.ts: https only, bare origin, no wildcard, credentials or IP literal, private/local hosts refused, normalised and de-duplicated; minutes are whole numbers from 1 to 30.
  • update apply goes through the app's own gate (restartForUpdateDisposition then installStagedUpdate): it is refused, with the reason, while a recording is saving or in progress, Compose or a mockup is open, a protected sign-in write is pending, or remote control is in use. It never signals the process.
  • resume, remote-control enable and agent-browser allow raise limits, so they are refused while a remote controller holds a live lease (a lease shell runs as the same OS user and must not lift limits on itself), and refused if the audit record cannot be written. pause, remote-control disable, agent-browser revoke always work.
  • agent-browser allow runs the in-app dialog's own handler (prepare, then grant in agent-browser/main.ts) with the app's existing signed-in session, so the server round trip, local confirmation and identity fences are the same as a click. It ticks only the given origins; every other permission, publicWeb included, stays at its default (off). --minutes only shortens the local window (the server's session expiry and the 30-minute ceiling still apply). Repeating the same origins while the consent is live changes nothing (changed:false, the expiry is not extended); different origins replace it, as ticking again does. It refuses with a stable code when not signed in (not_signed_in), when Remote control is off (remote_off), or when the account has no approved agent (no_agent) or several (agent_ambiguous: the CLI never picks one for you). With several, name exactly one with --agent <id|name> (and --org <id|slug> when the signed-in organization is not the one you want). The app resolves them only among the organizations and approved agents this signed-in session already lists for this computer; it never creates or approves anything. An id wins over a name; names compare case-insensitively after Unicode normalisation; a name or id that matches two agents is agent_ambiguous (use the id), an unknown or unapproved one is agent_not_found / org_not_found, and a flag that does not match the only candidate is refused rather than ignored. Values are 1 to 100 letters, digits, spaces and _ . - : @ ( ) + (bad_agent / bad_org otherwise). The org slug matches only when the account's context supplies one. The audit record shows that a selector was given and the resolved org and agent ids, never the typed text. ctl status shows the allowed origins and expiry.
  • update check runs the app's silent background check once (checkForUpdatesNow in updater.ts, bounded to 25 s) and prints the resulting state. It never installs or prompts; it answers from state without touching the feed when the build is unpackaged, an update is already staged, or a manual check is running.
  • window-screenshot (0.2.57) captures the app's OWN window with Electron's webContents.capturePage, never the operating system's screen, so macOS Screen Recording permission is not needed and nothing from another app can appear. It writes the PNG into captures/ inside the app's data directory (directory 0700, file 0600, created with O_EXCL and without following links, named window-<main|settings>-<UTC timestamp>-<16 random hex>.png) and returns ONLY {path, sha256, bytes, width, height, windowTitle, capturedAt}: no image bytes, no URL, and no network call or upload of any kind (a test pins that the module imports nothing that can reach a network). --window is an allowlist (main by default, or settings). With no visible, un-minimised window it refuses with no_visible_window and never shows, raises or restores a window or changes any other state; a window that closes during the capture also writes nothing. A window larger than 8 million pixels or 4096 px on a side is downscaled (an ordinary 1280x900 page, even at 2x, is not), and a PNG over 8 MiB after shrinking is refused (capture_too_large). Each capture keeps at most 20 files and 24 hours, and the app also prunes at start: age and order come from the UTC stamp in the file name (never the modification time, which a same-user process can set), a file stamped in the future is removed so it cannot crowd real captures out, and only regular files whose names match the exact pattern above are ever deleted, so a foreign file, a link or a directory in that folder is never touched. The directory is checked (a real directory, not a link, owned by this user) and tightened to 0700 before every capture, and the file is created with O_EXCL|O_NOFOLLOW. A captures directory that is a link, not a plain directory, or owned by another user is refused (captures_dir_unsafe). One log line per capture holds a hash of the path and the byte count, never content; windowTitle has control, bidi and zero-width characters removed. The command is serialised and audited like the other ctl commands, but the audit and the log are best effort: if either cannot be written the capture still succeeds and a fixed warning is logged. It is deliberately allowed while a remote controller holds a live lease (it is read-only, local, token-checked and audited, and the same OS user can read the screen anyway), unlike resume, remote-control enable and agent-browser allow. PRIVACY: everything visible in the window is in the picture, including the signed-in user's data, tokens the page shows and secrets in a form. The file stays on this computer; the person who runs ctl is the OS user that owns the app (the socket is local-user-only and token-checked); nothing is attached to an issue or uploaded, and no route exists that would do so. Treat the file like the window itself.
  • Stop never pauses. pause and resume are explicit commands only.
  • Every state change is recorded in the agent host's hash-chained audit log by the app (audit.note, owner only) as ctl.<op> with source=cli.

We use essential cookies to keep you signed in. See our Privacy Policy for details.