Repository navigation
Computer: say a shared private Bot's computer is private, not starting - #2875
Open
davidmckayv wants to merge 3 commits into
Open
davidmckayv wants to merge 3 commits into
davidmckayv wants to merge 3 commits into
Conversation
davidmckayv
marked this pull request as ready for review
December 3, 2026 17:16
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 17:16
A teammate a private Bot is shared with opened its Computer and saw "Starting the Bot's computer" for ever, "Checking who has control" for ever and a terminal on "Reconnecting". OpenBot refuses them the computer by design: only an admin, anybody on a public Bot, and the Bot's owner see it, and every computer call and socket answers anybody else 404 BOT_NOT_FOUND. The Bot read now says so up front (Bot.computerAccess, allowed or refused, optional and additive), and the panel then shows one empty state and opens nothing: no screenshot, status, wheel or activity read, and no socket. A server older than the field still ends honestly. A refused screenshot, status read or wheel read is the refusal, not a computer starting, and nothing is asked again. A terminal socket that closes before it ever opened is checked over HTTP before it is retried, and a refusal ends the retries.
davidmckayv
force-pushed
the
fix/computer-refused-state
branch
from
December 3, 2026 17:39
b743ba1 to
4381f22
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.
What changed and why
A teammate a private Bot is shared with opened its Computer and saw "Starting Fernhill Guide's computer… The first start takes about a minute" for ever, "Checking who has control…" for ever, "Couldn't load the Bot's browser" in the full-size view, and the terminal on "Reconnecting…".
OpenBot refuses them by design. Only an admin, anybody on a public Bot, and the Bot's owner may see a Bot's computer. That rule is unchanged here. Every computer call, and the live screen and terminal sockets, answer anybody else 404 BOT_NOT_FOUND, and the app read each of those as a computer on its way up or a dropped connection.
Bot.computerAccess,allowedorrefused, an optional read-onlyx-extensible-enumon every Bot read. Old apps ignore it, and an unknown value reads as allowed. Clients regenerated. No existing field could say this:canManageandmineare other verdicts, and the spec tells clients never to recompute the server's.refused, the panel shows one empty state (the existingPageEmpty, as "No computers for Bots" does) and mounts nothing else, so there's no screenshot, status, wheel or activity read and no socket:refusedon the control store) swaps the panel to the same empty state, closing the screen and terminal.connectScreen) now checks over HTTP when a socket closes before it ever opened, because a browser can't tell a refused upgrade from a dropped connection. A 404 BOT_NOT_FOUND ends the retries. Anything else retries as before.Red/green
app/tests/computer-refused.test.tsxcovers the panel, the screen and the terminal's connection, drawn for real with the generated client against a server stand-in. The stand-in answers the owner, an admin and a teammate as the server does. A refused socket behaves as a browser reports one: an error and a close, never an open.Also run:
no-bot-computers,computer-control-bot-gone,src/lib/computers,tests/computer*(215 pass). Plusapi:generate(no drift),api:lint,oasdiff breaking(none), typecheck and biome.End to end (Chrome and Safari)
These ran on a team-edition stack in Chromium and WebKit, with real sign-ins and real Bot computers. Marcus, a member, owns a private Bot, Release Helper, and publishes it to everyone. He opens its Computer, then Priya (admin) does, then Lena (a teammate) does. Each was run three ways:
computerAccess: passes in both. The 404 path ends on the same empty state.In the after run the teammate's page opened no socket to the Bot's screen or terminal, and made no screenshot, status or activity read.
Teammate, before: the screen says "Starting Release Helper's computer… The first start takes about a minute" and "Checking who has control…". The Terminal tab sits on "Reconnecting…".
Teammate, after: one empty state, with no tabs, no spinner and no Activity.
Owner and admin are unchanged. Before and after are the same: Screen and Terminal tabs, the screen, "Release Helper has control" with Take control, and Activity.
Changelog
API.
Bot.computerAccess(allowedorrefused, read-only, open enum) says whether the caller may see the Bot's computer. Additive. Older apps ignore it.Fixed.