Skip to content

Ask for moves only on OpenBot Cloud - #2041

Merged
davidmckayv merged 1 commit into
mainfrom
fix/moves-only-on-cloud
Nov 22, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/moves-only-on-cloud

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

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 404 MOVE_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

useMovedApps asks for moves only where the deployment says hostedSignIn: 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 says hostedSignIn (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.

  • New: "an OpenBot that isn't OpenBot Cloud is never asked for moves, on any page". Home, Connections and /reconnect on a non-hosted OpenBot ask for moves zero times, with no failed /imports request and no bar or notice. Red before the fix (the moves were asked on the first page), green after.
  • Every existing case (the list, Connect your AI first, the admin's add, dismissal, a hosted OpenBot that answers no moves, the layout at 1440 and 390 in light and dark) still passes.

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
davidmckayv merged commit 043cc67 into main Nov 22, 2026
22 checks passed
@davidmckayv
davidmckayv deleted the fix/moves-only-on-cloud branch November 22, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant