Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(chat): keep handoff cards in the chat, out of the pinned sign-in slot (train fix for #6805)
milind-soni862316eeff37
diff --git a/src/components/PinnedSignInSlot.tsx b/src/components/PinnedSignInSlot.tsxindex 2b04d4df8a..f86edccb4f 100644--- a/src/components/PinnedSignInSlot.tsx+++ b/src/components/PinnedSignInSlot.tsx@@ -1,9 +1,10 @@-import { signInCardWaits } from "../../shared/sign-in-request";+import { isHandoff, signInCardWaits } from "../../shared/sign-in-request";import type { Bot, Message } from "@/state/store";import { SignInRequestCard } from "./SignInRequestCard";+/** A site sign-in card that still waits. A handoff card keeps its place in the chat, live picture and all. */export function isPinnedSignIn(message: Message): boolean {- return message.kind === "signin" && message.signIn !== undefined && signInCardWaits(message.signIn);+ return message.kind === "signin" && message.signIn !== undefined && !isHandoff(message.signIn) && signInCardWaits(message.signIn);}export const NO_PINNED_SIGN_INS: ReadonlySet<string> = new Set();diff --git a/src/components/SignInRequestCard.test.ts b/src/components/SignInRequestCard.test.tsindex 7ad8720cd6..d7f3c8ee9b 100644--- a/src/components/SignInRequestCard.test.ts+++ b/src/components/SignInRequestCard.test.ts@@ -281,6 +281,7 @@ describe("PinnedSignInSlot", () => {}expect(isPinnedSignIn({ ...card(), kind: "text", signIn: undefined })).toBe(false);expect(isPinnedSignIn({ ...card(), signIn: undefined })).toBe(false);+ expect(isPinnedSignIn(card({ instruction: "Approve the payment" }))).toBe(false);});it("renders a waiting card in the reserved slot, in-flow and still answering", () => {