Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge gh/main into fix/launch-saved-server-pairing

milind-soni17f3c486796a
diff --cc electron/main.mjs
index 19ad30fe04,fe61038e20..a6b7e0cb20
--- a/electron/main.mjs
+++ b/electron/main.mjs
@@@ -106,9 -106,9 +106,9 @@@ import { cloudPageSenderAllowed, cloudP
import { installCloudFiles } from "./cloud-sync-main.mjs";
import { createCloudEntry } from "./cloud-entry.mjs"; import { installTeamJoin } from "./team-join-main.mjs";
import { createLendingTarget } from "./lending-target.mjs"; import { createOpenAtLogin, installOpenAtLogin } from "./open-at-login.mjs";
-import { cleanWorkspaceDir, createCleanWorkspace, profilesDir } from "./clean-workspace.mjs"; import { createLocalProfiles, createProfileRegistry } from "./local-profiles.mjs"; import { createPlaceSwitch } from "./place-switch.mjs"; import { installOneHome } from "./one-home-main.mjs"; import { handSaved, installOwnHome } from "./own-home-main.mjs"; import { reopenSavedServer, serverOpens } from "./saved-server.mjs"; import { installTwoPlacesMain } from "./two-places-main.mjs";
+import { cleanWorkspaceDir, createCleanWorkspace, profilesDir } from "./clean-workspace.mjs"; import { createLocalProfiles, createProfileRegistry } from "./local-profiles.mjs"; import { createPlaceSwitch } from "./place-switch.mjs"; import { installOneHome } from "./one-home-main.mjs"; import { handSaved, installOwnHome } from "./own-home-main.mjs"; import { reopenSavedServer, reopenSavedServerAtLaunch, serverOpens } from "./saved-server.mjs"; import { installTwoPlacesMain } from "./two-places-main.mjs";
import { askForMicrophone, openPrivacySettings } from "./privacy-settings.mjs";
- import { createHomeWindow, installHomeWindowIpc, HOME_SCREEN_PATH } from "./home-window.mjs";
+ import { createHomeWindow, installHomeWindowIpc, HOME_SCREEN_PATH } from "./home-window.mjs"; import { createLocalSignInRepair } from "./local-sign-in-repair.mjs";
import { createTeamProfileSeeds } from "./team-profile-seed.mjs";
import { createHomePlaces } from "./home-places.mjs"; import { openStartPlace } from "./start-place.mjs"; import { createDesktopRing, installAccounts } from "./accounts-main.mjs"; import { createAddedCloudNotice, installCloudRail, railPlaces } from "./cloud-rail.mjs"; import { createPlaceInboxWatch } from "./place-inbox-watch.mjs"; import { homeLook, otherOwnClouds, withoutOldCloudHome } from "./cloud-list.mjs"; import { installPlaceLook } from "./place-look.mjs"; import { CHROME_RAIL_PATH, createChromeRail } from "./chrome-rail.mjs"; import { openComputerSettings } from "./open-computer-settings.mjs"; import { createPlacesTogether, installPlacesTogether, PLACES_TOGETHER_FILE, START_QUIET_MS, togetherComputer, togetherPrefFile } from "./places-together.mjs"; import { createBotLinkMain } from "./bot-link-main.mjs"; import { createPlaceChatMain } from "./place-chat-main.mjs"; import { createTogetherBackground } from "./together-background.mjs";
import { createWindowStateFile } from "./window-state-file.mjs"; import { createSystemProxyCache } from "./system-proxy.mjs"; import { createBootHeadStart } from "./boot-head-start.mjs";
diff --cc src/pair/PairPage.test.ts
index 672e1f0d6d,8104cb8cc6..5c053b5d47
--- a/src/pair/PairPage.test.ts
+++ b/src/pair/PairPage.test.ts
@@@ -6,7 -6,7 +6,7 @@@ const f = vi.hoisted(() => ({ effects:
vi.mock("react", async original => ({ ...await original<typeof import("react")>(), useEffect: (effect: EffectCallback) => { f.effects.push(effect); } }));
vi.mock("../lib/session", async original => ({ ...await original<typeof import("../lib/session")>(), pairWithCode: f.pair, readSessionState: vi.fn().mockResolvedValue({ kind: "unauthenticated", error: "" }) }));
vi.mock("../components/DesktopWorkspaceSwitcher", () => ({ DesktopWorkspaceSwitcher: () => null }));
- import { backToComputer, codeProblem, codeReady, openInAppLink, PairPage, pairIntro, pairsAutomatically, pairTitle, phoneBrowser, TeamLeftPage, teamPage, unencryptedPublic } from "./PairPage";
-import { codeProblem, codeReady, noCodeHint, openInAppLink, PairPage, pairIntro, pairsAutomatically, pairTitle, phoneBrowser, TeamLeftPage, teamPage, unencryptedPublic } from "./PairPage";
++import { backToComputer, codeProblem, codeReady, noCodeHint, openInAppLink, PairPage, pairIntro, pairsAutomatically, pairTitle, phoneBrowser, TeamLeftPage, teamPage, unencryptedPublic } from "./PairPage";
import en from "../locales/en.json";
import type { EnvironmentDescriptor } from "../lib/session";
diff --cc src/pair/PairPage.tsx
index bdae3a8f52,ded5d9e968..07149cf095
--- a/src/pair/PairPage.tsx
+++ b/src/pair/PairPage.tsx
@@@ -137,10 -140,9 +146,10 @@@ export function PairPage({ initialCode
const connected = isConnected(session);
const emailOffered = environment?.capabilities.emailSignIn === true;
const cloudHome = environment?.capabilities.cloudHome === true;
- const ownServer = !cloudHome && environment?.capabilities.cloudTeam !== true;
+ const hint = noCodeHint(environment);
const problem = codeProblem(code);
const where = typeof location !== "undefined" && typeof location.protocol === "string" ? location : null;
+ const back = backToComputer();
async function submitCode(e: React.FormEvent) {
e.preventDefault();