diff --git a/app/sessions/[sessionId]/chats/[chatId]/__tests__/catalogHost.test.tsx b/app/sessions/[sessionId]/chats/[chatId]/__tests__/catalogHost.test.tsx
index aece882fb..6dfa01b02 100644
--- a/app/sessions/[sessionId]/chats/[chatId]/__tests__/catalogHost.test.tsx
+++ b/app/sessions/[sessionId]/chats/[chatId]/__tests__/catalogHost.test.tsx
@@ -698,7 +698,7 @@ it.each([
},
);
-it.each(["workspace", "personal-account", "signed-out"] as const)(
+it.each(["workspace", "personal-account"] as const)(
"does not bind incomplete %s catalog context",
async (incomplete) => {
if (incomplete === "workspace")
@@ -707,7 +707,6 @@ it.each(["workspace", "personal-account", "signed-out"] as const)(
external.organization = null;
external.account = "account-label";
}
- if (incomplete === "signed-out") external.authenticated = false;
const fetch = mockFetch();
await mount();
expect(current.intelligentUI).toBeUndefined();
@@ -721,6 +720,17 @@ it.each(["workspace", "personal-account", "signed-out"] as const)(
},
);
+it("does not load, resume, or send catalog chat while signed out", async () => {
+ external.authenticated = false;
+ const fetch = mockFetch();
+ await mount();
+ expect(current.intelligentUI).toBeUndefined();
+ await send();
+ expect(external.getAccessToken).not.toHaveBeenCalled();
+ expect(fetch).not.toHaveBeenCalled();
+ expect(screen.queryByText("Catalog response.")).toBeNull();
+});
+
it("replaces artist admission with an explicit catalog subject without inferring a relationship", async () => {
external.artist = ids.artist;
const artistPart = part(1, "Historical artist answer.");
diff --git a/components/AccountOverrideBadge.tsx b/components/AccountOverrideBadge.tsx
index f36f2d8df..9cb1c73d9 100644
--- a/components/AccountOverrideBadge.tsx
+++ b/components/AccountOverrideBadge.tsx
@@ -4,17 +4,17 @@ import { X } from "lucide-react";
import { useAccountOverride } from "@/providers/AccountOverrideProvider";
/**
- * Displays a pill badge when an account override is active.
+ * Keeps an explicit account selection clearable even when resolution fails.
* Reads from AccountOverrideProvider context.
*/
export default function AccountOverrideBadge() {
const { email, accountIdOverride, clear } = useAccountOverride();
- if (!accountIdOverride || !email) return null;
+ if (!email) return null;
return (
-
Viewing as
+
{accountIdOverride ? "Viewing as" : "Selected account"}
{email}