Repository navigation
Conversation
While usage data is shared, the window's sign-in hands OpenBot Cloud's page the installation id in the fragment, and the page sends it with its new session once the code is traded. Move to Cloud's fresh sign-in sends it itself. Only OpenBot Cloud's own address is told, never staging or a company's OpenBot. One request each, a new Idempotency-Key, no retry, only a 204 counts, and the id is never logged. The page's report passes a new client option, renew: false, so a 401 asking for a sign-in renewal starts none and keeps nothing to send again.
ACl365
force-pushed
the
alex/2026-12-04/record-desktop-installation-callers
branch
from
December 4, 2026 19:41
557106e to
acd0b42
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenBot Desktop now tells OpenBot Cloud which installation signed in, through the operation #2932 added. Usage data can then join what an installation did before the sign-in with what the person does after it. Only OpenBot Cloud is told, and only while usage data is shared.
Why
OpenBot Cloud's events carry Cloud's own
deployment_id. Desktop's events carry its installation id, the random UUID its usage data is sent under. Nothing joins the two today.What changed
installation_id=<uuid>to the hand-off fragment, beside the code (connected/window.rs). The/desktop/signed-inpage takes the fragment off the address as before, and once the code is traded sends the id with its new session (window-session.ts). Once, with a new Idempotency-Key andkeepalive, no retry. A failed trade, no id, the id twice or anything but a version 4 UUID sends nothing.desktop_move.rs,move_to_cloud.rs). Before the request, and again once the token is in hand, it checks: Cloud's address, usage data on under the same id, the sign-in not ended, no sign-out begun, under 20 seconds. No redirect followed, no retry.renew: false. On a 401 asking for the hosted sign-in to be renewed, the shared client keeps the refused write and renews, so the report would be sent again later, the id held in session storage. The report passesrenew: false: no renewal, nothing kept. Other calls are unchanged.cloud::links_installationtakes onlyapi.open.botandmy.open.bot, https, default port. The window path checks the address and the window's origin. The id is never logged.What the leaders do
reporting_enabled. A person's choice in a client is not sent to a company's own server.This follows them: only the vendor's own service is told.
Routes
DO_NOT_TRACK, or no id yetNot covered here: Move to Cloud's thread end to end, since its base is the real Cloud address. What it runs is tested against a local server.
Tests
Across each boundary, neither side mocked:
fixtures/desktop-window-signed-in-address.jsonholds whatsigned_in_addressbuilds; Rust holds the function to it, and the page test reads it with the realtakeWindowSignIn.fixtures/desktop-installation-request.json, andapi/openapi-desktop-installations.test.tsparses that file with the spec's strict schema.Red, then green, at
557106e50(each change undone, then put back):Local runs at
557106e50: page test 22, real browser 44,bun test api/144 (14 skip),move_to_cloud52,connected::106,desktop_telemetry27,desktop_move2,desktop_connected2, all pass; tsc, lint, format, clippy clean. Full--lib --bins: all pass but 3 tests outside this PR that fail the same onmainhere (anen_GBspelling, 30 GB free disk).On a real Mac
A debug build with OpenBot Cloud on, own bundle id, home and project, Apple silicon, macOS 26.5.1. Built from
ac9375ca9; Desktop's code at the head is the same. Today's OpenBot Cloud, 4 Dec (UTC):DO_NOT_TRACK=1, a second home and project):Both runs then log
the window holds no sessionfour times andpage error: Error: A object was thrown (at https://my.open.bot/desktop/signed-in:291:145). Builds from before this change log the same, and run 2 has no id.Not run: Move to Cloud (it would move a real project). After the server change is on OpenBot Cloud: one sign-in from this PR's build, then a PostHog query for
oss.runtime.openbot.desktop_installation_linkedwith itsinstallation_id.Where it runs
Boundary and audit
API and database
bun run api:generateleaves git clean.Merge order
window-session.ts,desktop-window-sign-in.test.tsx,desktop/TELEMETRY.md,window.rs,desktop_connected.rs,desktop_telemetry.rs). InfinishWindowSignIn: record, then its signal. The second to merge rebases.reset()on sign-out points to a new id, but that changes every later Desktop event'sdeployment_id. That is a follow-up; say if you want it here.Changelog
Web app and OpenBot Desktop.