Skip to content

Move to OpenBot Cloud: Connect your AI first, then a reconnect list that each app returns to - #2034

Merged
davidmckayv merged 8 commits into
mainfrom
fix/move-reconnect-through-ai-gate
Nov 22, 2026
Merged

davidmckayv merged 8 commits into
mainfrom
fix/move-reconnect-through-ai-gate

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

After moving an OpenBot (Self-Contained) install to OpenBot Cloud, the move's last screen in OpenBot Desktop listed the apps to reconnect, each with a Reconnect button. Every Reconnect opened OpenBot Cloud at Connections. When Cloud still needed the person's own AI, the signed-in gate sent them to Connect your AI and dropped where they were going, so its button left them on home. The list of apps was gone with the move screen, and nothing in OpenBot Cloud said they still needed reconnecting.

What changes

  • Connect your AI comes first. When OpenBot Cloud still needs the person's AI, Desktop asks Cloud once the move finishes. The result screen then leads with "Connect your AI first" and names the apps as the next step. It shows no per-app Reconnect buttons in that state.
  • The gate keeps the destination. The signed-in gate passes where the person was headed through onboarding and Connect your AI as ?next=. Every step keeps it, and a reload keeps it. The last button goes there. Only a page of the app is followed.
  • Reconnect list in the web app (/reconnect). It is built from OpenBot Cloud's own record of the move (listImports). Each app shows as reconnected once the person has connected it. Each app's Reconnect (/reconnect/<app>) opens that app's page, and connecting it returns the person to the list with that app marked reconnected. They leave when they choose to, or once every app is done. An app can be dismissed, which is saved to their preferences on every device. Connections keeps a pointer to the list while any app is left.
  • Desktop opens plain paths. These are /reconnect and /reconnect/<app>, because Desktop's relay accepts no query strings.

Tests

  • app/tests/connect-your-ai.test.tsx, in a real browser through the app's own gate:

    • an app's page asked for through Connect your AI opens once the AI is connected, including after a reload on the step;
    • a new person goes through all of onboarding and on to the app;
    • an address off the app is never followed.
  • Desktop: MoveToCloud.test.tsx covers the AI-first result and the per-app paths. setupLayout.browser.test.ts lays out the new result screen in Chromium and WebKit. A Rust test covers the AI answer.

  • app/tests/moved-apps-reconnect.test.tsx runs the whole app on its real route tree in Chromium and WebKit. It covers:

    • Connect your AI first, then the list;
    • each app's page and back to the list, marked reconnected;
    • a reload keeps the list;
    • home after the last app;
    • an app's Reconnect that meets Connect your AI lands on that app;
    • dismissal, and an app the organization hasn't added;
    • an OpenBot with no moves shows nothing.

    On the gate as it was, Reconnect ends on home.

  • The sidebar puts the reconnect list under Connections.

  • End to end on a local OpenBot Cloud stack, in Chromium and WebKit, the journey passes. It uses a real import through the API with two apps, the Desktop result screen, terms, Connect your AI with a real key, the list, and each app's real connect page and consent. Each app returns to the list, a reload keeps it, and the person lands on home after the last app.

…er Connect your AI

The signed-in gate sent anyone who had to finish onboarding or connect their own AI to /onboarding and dropped their destination, so an app's Reconnect after the move to OpenBot Cloud ended on home. The gate now passes it as ?next=, every step keeps it, and the last button follows it. Only a page of the app is followed.
…Connect your AI

After the move, Desktop asks OpenBot Cloud whether the person still has to connect their AI (getPersonalAiConnection: required and uses none) and returns it as connectAi. When it is true, the result leads with Connect your AI as its one button, which opens /reconnect so OpenBot Cloud runs Connect your AI and then lands on the list of apps to reconnect. The apps are named as the step after it, with no Reconnect to skip it. Otherwise each Reconnect opens /reconnect/<appId>, and Open OpenBot opens /reconnect when there are apps to reconnect. An app id the shell's relay can't carry opens the list, never home.
…ismissed

After a move to OpenBot Cloud, the apps the move listed to connect again
were said only on OpenBot Desktop's last screen, and nothing on Cloud said
it afterwards.

- /reconnect lists them (from listImports, every finished move), each
  marked Reconnected once the person's own connections have it, with a
  Reconnect button and a dismiss. Go to OpenBot leaves; the last one
  connected takes them home. A reload or another device shows the same.
- /reconnect/<appId> (a plain path, which Desktop opens too) remembers the
  list, resolves the app as the move named it to the app here (the one
  added from directory:<appId>, else that id) and opens its page, with a
  way back. An app the organization hasn't added is added first for an
  admin; anybody else, or a refused add, goes back to the list, whose row
  says why.
- The app page and Connections take the person back to the list once the
  app is connected. A failed sign-in connects nothing and stays where the
  failure is said.
- Connections shows one row with the count and a way to the list, and
  every frame shows the same as a slim bar beside the plan and update bars.
- Dismissing saves moved-app-<slug> to the person's dismissed notices.
@davidmckayv
davidmckayv force-pushed the fix/move-reconnect-through-ai-gate branch from 7cd6225 to b8c9692 Compare November 22, 2026 19:37
@davidmckayv
davidmckayv marked this pull request as ready for review November 22, 2026 19:37
@davidmckayv
davidmckayv merged commit e43fcaa into main Nov 22, 2026
38 checks passed
@davidmckayv
davidmckayv deleted the fix/move-reconnect-through-ai-gate branch November 22, 2026 19:47
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