Repository navigation
Ask for moves only on OpenBot Cloud - #2041
Merged
Merged
Conversation
The reconnect bar in the app's frame asked every OpenBot for the person's moves, and every OpenBot but Cloud answers 404, so each page of a self-hosted OpenBot or the personal edition made a failing request. Moves are now asked only where the deployment says hostedSignIn.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 22, 2026 20:02
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 was wrong
#2034 put the reconnect bar in the app's frame, and it asks for the person's moves (
listImports) on every page. Only OpenBot Cloud takes a move: every other OpenBot answers 404MOVE_UNAVAILABLE. The app reads that as no moves, so nothing showed, but every page of a self-hosted OpenBot and of the personal edition made a failing request. The server's personal-edition journey (every API request Admin makes succeeds) caught it on the 1.2.0-rc.2 candidate:404 GET /api/v2/organizations/default/imports, twice.The fix
useMovedAppsasks for moves only where the deployment sayshostedSignIn: OpenBot Cloud, where people sign in with their OpenBot by CopilotKit account. Everywhere else it settles at once on none, without asking. This is the pattern the app already uses for memory (useOffersMemory) and the edition: ask only an OpenBot that has the thing. A deployment answer that failed reads as not hosted, as every capability does.Test
app/tests/moved-apps-reconnect.test.tsx, the whole app on its real route tree in Chromium and WebKit. The fake server now sayshostedSignIn(true for OpenBot Cloud, as every existing case is), counts the moves it is asked for, and records every request it answered 400 or more./reconnecton a non-hosted OpenBot ask for moves zero times, with no failed/importsrequest and no bar or notice. Red before the fix (the moves were asked on the first page), green after.