Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(desktop): remove the always-on project-bluebird flag checks (#113180)

posthog[bot]923cfdca765b
diff --git a/products/desktop/packages/shared/src/flags.ts b/products/desktop/packages/shared/src/flags.ts
index 4b036eb85550..4c92930216c7 100644
--- a/products/desktop/packages/shared/src/flags.ts
+++ b/products/desktop/packages/shared/src/flags.ts
@@ -10,13 +10,9 @@ export const AUTORESEARCH_FLAG = featureFlagKeys.AUTORESEARCH_FLAG;
export const DISCOVERY_RUN_FLAG = featureFlagKeys.DISCOVERY_RUN_FLAG;
export const ONBOARDING_TEST_TOOLS_FLAG =
featureFlagKeys.ONBOARDING_TEST_TOOLS_FLAG;
-// Gates the entire canvas feature: the app rail's Channels space, the /website
-// routes, channels and dashboards.
-export const PROJECT_BLUEBIRD_FLAG = featureFlagKeys.PROJECT_BLUEBIRD_FLAG;
/**
* Gates the new channels layout (channel-scoped sidebar + task Activity panel).
- * Off keeps the previous experience and its "Enable channels" toggle. Requires
- * project-bluebird. The key predates the rename, matching the live flag.
+ * Off keeps the previous experience and its "Enable channels" toggle. The key predates the rename, matching the live flag.
*/
export const CHANNELS_LAYOUT_FLAG = featureFlagKeys.CHANNELS_LAYOUT_FLAG;
// Gates the Loops feature: the sidebar Loops space and the per-channel Loops tab.
@@ -66,7 +62,7 @@ export const ANNOUNCEMENTS_FLAG = featureFlagKeys.ANNOUNCEMENTS_FLAG;
export const SIGNALS_PR_REFUNDS_FLAG = featureFlagKeys.SIGNALS_PR_REFUNDS_FLAG;
/**
* Gates reports living in the channels sidebar: the per-space Reports tab and its
- * report detail route, plus report entries in the feed. Requires project-bluebird.
+ * report detail route, plus report entries in the feed.
*/
export const CHANNEL_REPORTS_FLAG = featureFlagKeys.CHANNEL_REPORTS_FLAG;
diff --git a/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.test.ts b/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.test.ts
deleted file mode 100644
index 322d2ab3e12d..000000000000
--- a/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.test.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { isBluebirdOnlyPath } from "./bluebirdRoutes";
-
-describe("isBluebirdOnlyPath", () => {
- // These paths lost the `/website` prefix that used to mark them flag-only, so
- // nothing but this list stops a flag-off user restoring one.
- it.each([
- "/spaces",
- "/spaces/chan-1",
- "/spaces/chan-1/tasks/task-1",
- "/activity",
- "/feeds/feed-1",
- ])("claims %s", (path) => {
- expect(isBluebirdOnlyPath(path)).toBe(true);
- });
-
- it.each(["/", "/new", "/inbox", "/loops", "/command-center", "/spacesuit"])(
- "leaves %s alone",
- (path) => {
- expect(isBluebirdOnlyPath(path)).toBe(false);
- },
- );
-});
diff --git a/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.ts b/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.ts
deleted file mode 100644
index e64cadf96dbf..000000000000
--- a/products/desktop/packages/ui/src/features/canvas/bluebirdRoutes.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Paths that only exist inside project-bluebird: the spaces themselves, the
- * activity feed and a feed page.
- *
- * These used to sit behind a `/website` prefix, which was the flag-off check.
- * Flattening the routes took the prefix away, so the paths are listed here
- * instead — a flag-off user restoring one has to be sent somewhere they can use.
- */
-const BLUEBIRD_ONLY_ROOTS = [
- "/spaces",
- "/activity",
- "/feeds",
- "/canvases",
-] as const;
-
-export function isBluebirdOnlyPath(pathname: string): boolean {
- return BLUEBIRD_ONLY_ROOTS.some(
- (root) => pathname === root || pathname.startsWith(`${root}/`),
- );
-}
diff --git a/products/desktop/packages/ui/src/features/canvas/channelTaskSuggestions.ts b/products/desktop/packages/ui/src/features/canvas/channelTaskSuggestions.ts
index 496ee6c36df0..10a63c0fc60b 100644
--- a/products/desktop/packages/ui/src/features/canvas/channelTaskSuggestions.ts
+++ b/products/desktop/packages/ui/src/features/canvas/channelTaskSuggestions.ts
@@ -10,7 +10,7 @@ import {
} from "@phosphor-icons/react";
import type { SuggestedPrompt } from "@posthog/ui/features/task-detail/components/SuggestedPromptCard";
-// Starter prompts shown as cards on the channels (project-bluebird) new-task
+// Starter prompts shown as cards on the channels new-task
// screen. Clicking a card drops its `prompt` into the composer, ready to
// edit/send. Each prompt ends with a "User input:" block of fill-in lines the
// user completes before sending. Channels-only — the /code new-task screen
diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.test.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.test.tsx
index b103ee3a0078..ac4f8183c066 100644
--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.test.tsx
+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.test.tsx
@@ -114,7 +114,6 @@ vi.mock("@tanstack/react-router", () => ({
}),
}));
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import { ANALYTICS_EVENTS } from "@posthog/shared/analytics-events";
import {
showChannelList,
@@ -483,7 +482,6 @@ describe("ChannelsSidebar", () => {
// with it — that part is deliberate.
it("is absent in the channels alpha", () => {
useSidebarStore.setState({ channelsEnabled: true });
- mocks.featureFlags.set(PROJECT_BLUEBIRD_FLAG, true);
renderSidebar();
expect(screen.queryByText("Archived")).toBeNull();
});
diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.tsx
index 697723e8557e..437b1c107483 100644
--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.tsx
+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelsSidebar.tsx
@@ -259,9 +259,6 @@ function ChannelsSidebarImpl() {
// while peeked (route without it), a stale peek would greet the remount.
useEffect(() => () => cancelSidebarPeek(), []);
- // Channels stay behind project-bluebird: the switch only appears where the
- // canvas backend is wired, and a persisted "on" is ignored when the flag is
- // off so the sidebar can't strand a user on an unsupported feature.
const channelsWorld = useChannelsWorld();
const bodyChannelsWorld = useDeferredValue(channelsWorld);
// Under the layout the row moves into the account menu (ProjectSwitcher),
diff --git a/products/desktop/packages/ui/src/features/canvas/components/TaskRowMenu.tsx b/products/desktop/packages/ui/src/features/canvas/components/TaskRowMenu.tsx
index 36309e53dc6a..794b162ad3be 100644
--- a/products/desktop/packages/ui/src/features/canvas/components/TaskRowMenu.tsx
+++ b/products/desktop/packages/ui/src/features/canvas/components/TaskRowMenu.tsx
@@ -32,7 +32,6 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@posthog/quill";
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import type { Task } from "@posthog/shared/domain-types";
import {
TaskArchiveMenuItem,
@@ -44,7 +43,6 @@ import { useChannels } from "@posthog/ui/features/canvas/hooks/useChannels";
import { useFileTaskToChannel } from "@posthog/ui/features/canvas/hooks/useFileTaskToChannel";
import { copyCanvasLink } from "@posthog/ui/features/canvas/utils/copyCanvasLink";
import { copyChannelLink } from "@posthog/ui/features/canvas/utils/copyChannelLink";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useSidebarPeekStore } from "@posthog/ui/features/sidebar/sidebarPeekStore";
import { useHoldSidebarPeek } from "@posthog/ui/features/sidebar/useHoldSidebarPeek";
import type { SidebarBulkActions } from "@posthog/ui/features/sidebar/useSidebarBulkActions";
@@ -148,16 +146,10 @@ function TaskRowMenuItems({
menu: TaskRowMenuProps;
}) {
const { Item, Sub, SubTrigger } = parts;
- // "File to…" is a Project Bluebird feature; gate the channel fetch behind the
- // flag so neither the submenu nor its request reaches ungated users.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
const isTask = menu.kind === "task";
const analysisTask = isTask && menu.task?.latest_run ? menu.task : null;
- const { channels } = useChannels({ enabled: bluebirdEnabled });
- const fileToChannel = useFileTaskToChannel({ enabled: bluebirdEnabled });
+ const { channels } = useChannels();
+ const fileToChannel = useFileTaskToChannel();
const openBrowserTab = useOpenBrowserTab();
const channelItems: MenuFlyoutItem[] = channels.map((channel) => ({
diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useCanvasDeepLink.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useCanvasDeepLink.ts
index c38157711b5f..906f7c690997 100644
--- a/products/desktop/packages/ui/src/features/canvas/hooks/useCanvasDeepLink.ts
+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useCanvasDeepLink.ts
@@ -25,11 +25,9 @@ const log = logger.scope("canvas-deep-link");
* Mirrors `useScoutDeepLink`: drains any link that arrived before the renderer
* was ready (the main process clears its pending entry on read) and also
* subscribes for links delivered while the app is already running. The live
- * subscription acts on every link unconditionally — gating it behind the
- * project-bluebird flag would drop a link that arrives before the flag resolves
- * (the main process emits rather than queues once a listener is attached, so a
- * discarded payload is unrecoverable). Navigation is safe regardless: the
- * Channels space is flag-gated at the route, which redirects out when off.
+ * subscription acts on every link unconditionally: the main process emits
+ * rather than queues once a listener is attached, so a discarded payload is
+ * unrecoverable.
*/
export function useCanvasDeepLink() {
const trpcReact = useHostTRPC();
diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelDeepLink.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelDeepLink.ts
index be148742f32b..a04dc5c2d44c 100644
--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelDeepLink.ts
+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelDeepLink.ts
@@ -30,11 +30,9 @@ const log = logger.scope("channel-deep-link");
* Mirrors `useCanvasDeepLink`: drains any link that arrived before the renderer
* was ready (the main process clears its pending entry on read) and also
* subscribes for links delivered while the app is already running. The live
- * subscription acts on every link unconditionally — gating it behind the
- * project-bluebird flag would drop a link that arrives before the flag resolves
- * (the main process emits rather than queues once a listener is attached, so a
- * discarded payload is unrecoverable). Navigation is safe regardless: the
- * Channels space is flag-gated at the route, which redirects out when off.
+ * subscription acts on every link unconditionally: the main process emits
+ * rather than queues once a listener is attached, so a discarded payload is
+ * unrecoverable.
*/
export function useChannelDeepLink() {
const trpcReact = useHostTRPC();
diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsLayout.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsLayout.ts
index 487f968aa4b2..8007069e1f31 100644
--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsLayout.ts
+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsLayout.ts
@@ -1,16 +1,11 @@
import { CHANNELS_LAYOUT_FLAG } from "@posthog/shared";
-import { useBluebirdFlag } from "@posthog/ui/features/feature-flags/useBluebirdFlag";
import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
/**
* The single gate for the new channels layout — read this, not the raw flag.
- * No dev default, so dev matches prod; bluebird keeps its own backend guard.
+ * Dev builds default it on unless the dev kill switch forces it off (see
+ * devFlagOverrides).
*/
export function useChannelsLayout(): boolean {
- const bluebirdEnabled = useBluebirdFlag();
- const layoutEnabled = useFeatureFlag(
- CHANNELS_LAYOUT_FLAG,
- import.meta.env.DEV,
- );
- return layoutEnabled && bluebirdEnabled;
+ return useFeatureFlag(CHANNELS_LAYOUT_FLAG, import.meta.env.DEV);
}
diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsWorld.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsWorld.ts
index db20d6eb6f39..b3f57908e2a7 100644
--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsWorld.ts
+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelsWorld.ts
@@ -1,5 +1,4 @@
import { useChannelsLayout } from "@posthog/ui/features/canvas/hooks/useChannelsLayout";
-import { useBluebirdFlag } from "@posthog/ui/features/feature-flags/useBluebirdFlag";
import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";
/**
@@ -7,13 +6,9 @@ import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";
* channels alpha behind the sidebar toggle. The shell's in-pane header, the
* right panel and the canvas frame host belong to both, so the routes under
* `_shell` ask this rather than the layout flag alone.
- *
- * A persisted "on" for the alpha is ignored without bluebird, so the toggle
- * can't strand a user on a feature whose backend isn't wired.
*/
export function useChannelsWorld(): boolean {
const layout = useChannelsLayout();
- const bluebird = useBluebirdFlag();
const toggledOn = useSidebarStore((s) => s.channelsEnabled);
- return layout || (toggledOn && bluebird);
+ return layout || toggledOn;
}
diff --git a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.test.tsx b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.test.tsx
index 66d116fbe6cb..4e3c3c256f92 100644
--- a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.test.tsx
+++ b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.test.tsx
@@ -16,7 +16,6 @@ const mocks = vi.hoisted(() => ({
currentProjectId: 2,
},
createdTask: { id: "task-2", title: "Composed in a tile" },
- spacesEnabled: true,
store: {
layout: "2x2",
cells: [null, null, null, null] as (string | null)[],
@@ -101,9 +100,6 @@ vi.mock("../../autoresearch/autoresearchDraftStore", () => ({
getState: () => ({ clearDraft: mocks.clearAutoresearchDraft }),
},
}));
-vi.mock("../../feature-flags/useBluebirdFlag", () => ({
- useBluebirdFlag: () => mocks.spacesEnabled,
-}));
vi.mock("../../canvas/hooks/useTaskChannels", () => ({
useTaskChannels: () => ({
channels: [
@@ -234,7 +230,6 @@ describe("CommandCenterPanel", () => {
mocks.currentUserUuid = "user-1";
mocks.taskCreatedCallback = null;
mocks.store.composer = null;
- mocks.spacesEnabled = true;
mocks.store.finishCreating.mockReturnValue(true);
});
@@ -336,22 +331,6 @@ describe("CommandCenterPanel", () => {
);
});
- // A project without spaces has nowhere to file a task, and the shared
- // task-channels cache can hold spaces another surface loaded.
- it("hides the space chip when spaces are off", () => {
- mocks.spacesEnabled = false;
- mocks.store.composer = {
- cellIndex: 2,
- sessionId: "cc-cell-us:2:user-1-2",
- };
- render(<CommandCenterPanel cell={emptyCell} isActiveSession={false} />);
-
- expect(screen.queryByRole("button", { name: "Space me" })).toBeNull();
- expect(screen.getByText("Send").parentElement).not.toHaveAttribute(
- "data-channel-id",
- );
- });
-
it("does not open a created task when the auth scope changed", () => {
mocks.store.composer = {
cellIndex: 2,
diff --git a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.tsx b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.tsx
index 8ac9a9e06897..a2e7445c570d 100644
--- a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.tsx
+++ b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterPanel.tsx
@@ -52,7 +52,6 @@ import { useCurrentUser } from "../../auth/useCurrentUser";
import { useAutoresearchDraftStore } from "../../autoresearch/autoresearchDraftStore";
import { SpaceSelect } from "../../canvas/components/SpaceSelect";
import { useTaskChannels } from "../../canvas/hooks/useTaskChannels";
-import { useBluebirdFlag } from "../../feature-flags/useBluebirdFlag";
import { useFolders } from "../../folders/useFolders";
import { useCloudPrUrl } from "../../git-interaction/useCloudPrUrl";
import { useDraftStore } from "../../message-editor/draftStore";
@@ -180,17 +179,10 @@ function EmptyCell({
const layout = useCommandCenterStore((s) => s.layout);
const cells = useCommandCenterStore((s) => s.cells);
const brainrotMode = useSettingsStore((s) => s.brainrotMode);
- const spacesEnabled = useBluebirdFlag();
- const { channels, personalChannel } = useTaskChannels({
- enabled: spacesEnabled,
- });
+ const { channels, personalChannel } = useTaskChannels();
const [pickedSpaceId, setPickedSpaceId] = useState<string | null>(null);
- // A task created without a space lands in #me, so the chip starts there. The
- // flag gates the chip here rather than through the query, whose cache another
- // surface may have already filled.
- const spaceId = spacesEnabled
- ? (pickedSpaceId ?? personalChannel?.id ?? null)
- : null;
+ // A task created without a space lands in #me, so the chip starts there.
+ const spaceId = pickedSpaceId ?? personalChannel?.id ?? null;
const space = channels.find((c) => c.id === spaceId);
const authIdentity = useAuthStateValue(getAuthIdentity);
const client = useOptionalAuthenticatedClient();
diff --git a/products/desktop/packages/ui/src/features/command/CommandMenu.search.test.tsx b/products/desktop/packages/ui/src/features/command/CommandMenu.search.test.tsx
index e964f6d5f540..e595730856b7 100644
--- a/products/desktop/packages/ui/src/features/command/CommandMenu.search.test.tsx
+++ b/products/desktop/packages/ui/src/features/command/CommandMenu.search.test.tsx
@@ -127,7 +127,7 @@ describe("CommandMenu global search", () => {
);
await user.type(
- screen.getByPlaceholderText(/Search commands and tasks/),
+ screen.getByPlaceholderText(/Search commands, channels, and tasks/),
"run",
);
diff --git a/products/desktop/packages/ui/src/features/command/CommandMenu.tsx b/products/desktop/packages/ui/src/features/command/CommandMenu.tsx
index 9a3d16eb748f..f607e567b907 100644
--- a/products/desktop/packages/ui/src/features/command/CommandMenu.tsx
+++ b/products/desktop/packages/ui/src/features/command/CommandMenu.tsx
@@ -46,11 +46,7 @@ import {
Kbd,
KbdGroup,
} from "@posthog/quill";
-import {
- LOOPS_FLAG,
- PROJECT_BLUEBIRD_FLAG,
- singleLineTitle,
-} from "@posthog/shared";
+import { LOOPS_FLAG, singleLineTitle } from "@posthog/shared";
import {
ANALYTICS_EVENTS,
type CommandMenuAction,
@@ -261,12 +257,8 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
const openSettingsDialog = openSettings;
const closeSettingsDialog = closeSettings;
const { folders } = useFolders();
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
const loopsEnabled = useFeatureFlag(LOOPS_FLAG);
- const { channels } = useChannels({ enabled: bluebirdEnabled });
+ const { channels } = useChannels();
const openBrowserTab = useOpenBrowserTab();
const { theme, setTheme } = useThemeStore();
const toggleLeftSidebar = useSidebarStore((state) => state.toggle);
@@ -531,26 +523,22 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
openTaskInput();
},
},
- ...(bluebirdEnabled
- ? [
- {
- id: "create-channel",
- label: spacesLayout ? "New space" : "New channel",
- keywords: "create add space channel context",
- icon: spacesLayout ? (
- <CubeIcon size={12} className="text-muted-foreground" />
- ) : (
- <HashIcon size={12} className="text-muted-foreground" />
- ),
- action: "create-channel" as CommandMenuAction,
- onRun: () => {
- closeSettingsDialog();
- setCreateChannelUsed(true);
- setCreateChannelOpen(true);
- },
- },
- ]
- : []),
+ {
+ id: "create-channel",
+ label: spacesLayout ? "New space" : "New channel",
+ keywords: "create add space channel context",
+ icon: spacesLayout ? (
+ <CubeIcon size={12} className="text-muted-foreground" />
+ ) : (
+ <HashIcon size={12} className="text-muted-foreground" />
+ ),
+ action: "create-channel" as CommandMenuAction,
+ onRun: () => {
+ closeSettingsDialog();
+ setCreateChannelUsed(true);
+ setCreateChannelOpen(true);
+ },
+ },
{
id: "toggle-left-sidebar",
label: "Toggle left sidebar",
@@ -752,7 +740,6 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
canSearchFiles,
openFilePicker,
loopsEnabled,
- bluebirdEnabled,
spacesLayout,
]);
@@ -786,17 +773,16 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
keywords: channel?.name,
icon: <TaskCommandIcon task={task} />,
action: "open-task" as CommandMenuAction,
- channelId: bluebirdEnabled ? channel?.id : undefined,
- href: taskHref(task, bluebirdEnabled ? channel?.id : undefined),
+ channelId: channel?.id,
+ href: taskHref(task, channel?.id),
onRun: () => {
closeSettingsDialog();
- // Bluebird: a task filed to a channel opens in the channel-
- // organized view under /website, keeping the channels chrome.
- // Otherwise fall back to the /code task detail.
- const channelTarget =
- bluebirdEnabled && channel
- ? { channelId: channel.id }
- : undefined;
+ // A task filed to a channel opens in the channel-organized view
+ // under /website, keeping the channels chrome. An unfiled task
+ // falls back to the /code task detail.
+ const channelTarget = channel
+ ? { channelId: channel.id }
+ : undefined;
void openTask(task, channelTarget);
},
},
@@ -809,7 +795,6 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
workspacesFetched,
provisioningTaskIds,
channels,
- bluebirdEnabled,
closeSettingsDialog,
]);
@@ -867,7 +852,6 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
tasks,
taskSections,
channels,
- bluebirdEnabled,
});
const [feedModalQuery, setFeedModalQuery] = useState<string | null>(null);
@@ -1138,9 +1122,7 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
placeholder={
spacesLayout
? "Search commands and tasks, or filter with created-by:"
- : bluebirdEnabled
- ? "Search commands, channels, and tasks…"
- : "Search commands and tasks…"
+ : "Search commands, channels, and tasks…"
}
autoFocus
showClear
diff --git a/products/desktop/packages/ui/src/features/command/commandRowHref.ts b/products/desktop/packages/ui/src/features/command/commandRowHref.ts
index d9b923ad4595..4295507103a5 100644
--- a/products/desktop/packages/ui/src/features/command/commandRowHref.ts
+++ b/products/desktop/packages/ui/src/features/command/commandRowHref.ts
@@ -22,7 +22,7 @@ function canvasId(result: TaskSearchResult): string | undefined {
/** Where a search match lives, or nothing when the row has no route of its own. */
export function searchResultHref(
result: TaskSearchResult,
- { task, bluebirdEnabled }: { task?: Task; bluebirdEnabled: boolean },
+ { task }: { task?: Task },
): string | undefined {
const channelId = result.channel_id ?? undefined;
if (result.kind === "channel") {
@@ -35,9 +35,9 @@ export function searchResultHref(
? canvasHref(channelId, canvas)
: `/canvases?canvas=${canvas}`;
}
- if (task) return taskHref(task, bluebirdEnabled ? channelId : undefined);
+ if (task) return taskHref(task, channelId);
if (!result.task_id) return undefined;
- return bluebirdEnabled && channelId
+ return channelId
? `/spaces/${channelId}/tasks/${result.task_id}`
: `/tasks/${result.task_id}`;
}
diff --git a/products/desktop/packages/ui/src/features/command/useSearchRows.test.tsx b/products/desktop/packages/ui/src/features/command/useSearchRows.test.tsx
index e33e964ac6d8..1a6f8a755a29 100644
--- a/products/desktop/packages/ui/src/features/command/useSearchRows.test.tsx
+++ b/products/desktop/packages/ui/src/features/command/useSearchRows.test.tsx
@@ -37,10 +37,7 @@ describe("useSearchRows", () => {
function render(
searchResults: TaskSearchResult[],
- { taskIds = [], bluebirdEnabled = true } = {} as {
- taskIds?: string[];
- bluebirdEnabled?: boolean;
- },
+ { taskIds = [] } = {} as { taskIds?: string[] },
) {
return renderHook(() =>
useSearchRows({
@@ -49,7 +46,6 @@ describe("useSearchRows", () => {
tasks,
taskSections: taskIds.length > 0 ? [taskSection(taskIds)] : [],
channels: [{ id: "channel-a", name: "growth" }],
- bluebirdEnabled,
}),
).result.current;
}
@@ -82,15 +78,6 @@ describe("useSearchRows", () => {
expect(rows[0].command.action).toBe("open-canvas");
});
- it("hides space matches while the spaces feature is off", () => {
- const rows = render(
- [searchResult({ id: "c1", kind: "channel", channel_id: "channel-b" })],
- { bluebirdEnabled: false },
- );
-
- expect(rows).toEqual([]);
- });
-
it("gives every row a place of its own to open in a tab", () => {
const rows = render([
searchResult({
diff --git a/products/desktop/packages/ui/src/features/command/useSearchRows.tsx b/products/desktop/packages/ui/src/features/command/useSearchRows.tsx
index e351462ef115..22214f78e103 100644
--- a/products/desktop/packages/ui/src/features/command/useSearchRows.tsx
+++ b/products/desktop/packages/ui/src/features/command/useSearchRows.tsx
@@ -31,7 +31,6 @@ type UseSearchRowsOptions = {
tasks: Task[];
taskSections: CommandSection[];
channels: SearchChannel[];
- bluebirdEnabled: boolean;
};
const SEARCH_ACTIONS: Record<TaskSearchResult["kind"], CommandMenuAction> = {
@@ -54,7 +53,6 @@ export function useSearchRows({
tasks,
taskSections,
channels,
- bluebirdEnabled,
}: UseSearchRowsOptions): ResultRow[] {
return useMemo(() => {
if (!remoteQuery || searchResults.length === 0) return [];
@@ -71,7 +69,6 @@ export function useSearchRows({
const rows: ResultRow[] = [];
for (const result of searchResults) {
- if (result.kind === "channel" && !bluebirdEnabled) continue;
if (
(result.kind === "task" &&
result.task_id &&
@@ -105,18 +102,12 @@ export function useSearchRows({
detailPrefix: "",
keywords: `${remoteQuery} ${result.subtitle} ${Object.values(result.metadata).join(" ")}`,
icon: searchResultIcon(result, { title, task }),
- href: searchResultHref(result, { task, bluebirdEnabled }),
+ href: searchResultHref(result, { task }),
action: SEARCH_ACTIONS[result.kind],
- channelId: bluebirdEnabled
- ? (result.channel_id ?? undefined)
- : undefined,
+ channelId: result.channel_id ?? undefined,
onRun: () => {
closeSettings();
- if (
- bluebirdEnabled &&
- result.kind === "channel" &&
- result.channel_id
- ) {
+ if (result.kind === "channel" && result.channel_id) {
navigateToChannel(result.channel_id);
} else if (result.kind === "canvas" && canvasId) {
if (result.channel_id) {
@@ -133,7 +124,7 @@ export function useSearchRows({
? { channelId: result.channel_id }
: undefined,
);
- } else if (bluebirdEnabled && result.task_id && result.channel_id) {
+ } else if (result.task_id && result.channel_id) {
navigateToChannelTask(result.channel_id, result.task_id);
} else if (result.task_id) {
navigateToTaskDetail(result.task_id);
@@ -144,12 +135,5 @@ export function useSearchRows({
}
return rows;
- }, [
- remoteQuery,
- searchResults,
- tasks,
- taskSections,
- channels,
- bluebirdEnabled,
- ]);
+ }, [remoteQuery, searchResults, tasks, taskSections, channels]);
}
diff --git a/products/desktop/packages/ui/src/features/deep-links/useHandleOpenTask.ts b/products/desktop/packages/ui/src/features/deep-links/useHandleOpenTask.ts
index b9ac24f96c49..5e0d24df01aa 100644
--- a/products/desktop/packages/ui/src/features/deep-links/useHandleOpenTask.ts
+++ b/products/desktop/packages/ui/src/features/deep-links/useHandleOpenTask.ts
@@ -8,9 +8,7 @@ import {
type TaskService,
} from "@posthog/core/task-detail/taskService";
import { useService } from "@posthog/di/react";
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import type { Task } from "@posthog/shared/domain-types";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useCommentNavigationStore } from "@posthog/ui/features/sessions/commentNavigationStore";
import { useTaskViewed } from "@posthog/ui/features/sidebar/useTaskViewed";
import { taskKeys } from "@posthog/ui/features/tasks/taskKeys";
@@ -49,11 +47,6 @@ export function useHandleOpenTask(): (
const { markAsViewed } = useTaskViewed();
const queryClient = useQueryClient();
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
-
return useCallback(
async (
taskId: string,
@@ -90,10 +83,9 @@ export function useHandleOpenTask(): (
queryClient.invalidateQueries({ queryKey: taskKeys.lists() });
markAsViewed(taskId);
- const channelTarget =
- bluebirdEnabled && task.channel
- ? { channelId: task.channel, newTab: true }
- : { newTab: true };
+ const channelTarget = task.channel
+ ? { channelId: task.channel, newTab: true }
+ : { newTab: true };
void openTaskHelper(task, channelTarget);
if (comment) {
useCommentNavigationStore
@@ -110,6 +102,6 @@ export function useHandleOpenTask(): (
toast.error("Failed to open task");
}
},
- [markAsViewed, queryClient, taskService, bluebirdEnabled],
+ [markAsViewed, queryClient, taskService],
);
}
diff --git a/products/desktop/packages/ui/src/features/deep-links/useTaskDeepLink.test.tsx b/products/desktop/packages/ui/src/features/deep-links/useTaskDeepLink.test.tsx
index 4b5cb36198b2..3c085dbe0a43 100644
--- a/products/desktop/packages/ui/src/features/deep-links/useTaskDeepLink.test.tsx
+++ b/products/desktop/packages/ui/src/features/deep-links/useTaskDeepLink.test.tsx
@@ -80,39 +80,27 @@ describe("useTaskDeepLink", () => {
// Both entry points (cold-start pending link, warm-start subscription event)
// run the same routing dispatch: a channel-filed task opens in its /website
- // channel view, otherwise it falls back to /code — and only when the bluebird
- // flag is on.
+ // channel view, otherwise it falls back to /code.
it.each([
{
name: "cold-start unfiled task → /code",
trigger: "pending" as const,
- enabled: true,
channel: null,
expected: { newTab: true },
},
{
name: "cold-start channel-filed task → its channel view",
trigger: "pending" as const,
- enabled: true,
channel: "chan-1",
expected: { channelId: "chan-1", newTab: true },
},
- {
- name: "cold-start filed task with flag off → /code",
- trigger: "pending" as const,
- enabled: false,
- channel: "chan-1",
- expected: { newTab: true },
- },
{
name: "warm-start channel-filed task → its channel view",
trigger: "warm" as const,
- enabled: true,
channel: "chan-1",
expected: { channelId: "chan-1", newTab: true },
},
- ])("$name", async ({ trigger, enabled, channel, expected }) => {
- bluebirdState.enabled = enabled;
+ ])("$name", async ({ trigger, channel, expected }) => {
taskState.channel = channel;
if (trigger === "pending") {
diff --git a/products/desktop/packages/ui/src/features/feature-flags/useBluebirdFlag.ts b/products/desktop/packages/ui/src/features/feature-flags/useBluebirdFlag.ts
deleted file mode 100644
index 627b119f48e4..000000000000
--- a/products/desktop/packages/ui/src/features/feature-flags/useBluebirdFlag.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
-
-/**
- * The project-bluebird gate. Read this rather than the raw flag: the dev
- * default lives here once, so a surface can't ship with the flag on in dev and
- * off for a colleague (or the reverse) because a call site forgot it.
- *
- * Space-scoped surfaces want {@link useChannelsLayout} instead — that's this
- * flag *and* the channels layout, which is what actually puts a page inside a
- * space.
- */
-export function useBluebirdFlag(): boolean {
- return useFeatureFlag(PROJECT_BLUEBIRD_FLAG, import.meta.env.DEV);
-}
diff --git a/products/desktop/packages/ui/src/features/loops/components/LoopForm.test.tsx b/products/desktop/packages/ui/src/features/loops/components/LoopForm.test.tsx
index 0494bfea2616..1afe8d65e927 100644
--- a/products/desktop/packages/ui/src/features/loops/components/LoopForm.test.tsx
+++ b/products/desktop/packages/ui/src/features/loops/components/LoopForm.test.tsx
@@ -20,9 +20,6 @@ const mocks = vi.hoisted(() => ({
toastError: vi.fn(),
}));
-vi.mock("@posthog/ui/features/feature-flags/useBluebirdFlag", () => ({
- useBluebirdFlag: () => false,
-}));
vi.mock("@posthog/ui/features/canvas/hooks/useChannelsLayout", () => ({
useChannelsLayout: () => false,
}));
diff --git a/products/desktop/packages/ui/src/features/loops/components/LoopForm.tsx b/products/desktop/packages/ui/src/features/loops/components/LoopForm.tsx
index 596eb4dc16c5..422b10f76140 100644
--- a/products/desktop/packages/ui/src/features/loops/components/LoopForm.tsx
+++ b/products/desktop/packages/ui/src/features/loops/components/LoopForm.tsx
@@ -10,7 +10,6 @@ import { channelDisplayLabel } from "@posthog/core/canvas/channelName";
import { Button, cn, Input, Textarea } from "@posthog/quill";
import { ANALYTICS_EVENTS } from "@posthog/shared";
import { useChannelsLayout } from "@posthog/ui/features/canvas/hooks/useChannelsLayout";
-import { useBluebirdFlag } from "@posthog/ui/features/feature-flags/useBluebirdFlag";
import type { LoopSchemas } from "@posthog/ui/features/loops/loopSchemas";
import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";
import { useSetHeaderContent } from "@posthog/ui/hooks/useSetHeaderContent";
@@ -179,9 +178,7 @@ export function LoopForm({
// Contexts are a channels surface; hide the attachment UI when channels are
// off, unless this loop is already attached so the link stays visible and
// detachable.
- const bluebirdEnabled = useBluebirdFlag();
- const channelsEnabled =
- useSidebarStore((s) => s.channelsEnabled) && bluebirdEnabled;
+ const channelsEnabled = useSidebarStore((s) => s.channelsEnabled);
const showContextField = channelsEnabled || !!values.contextTarget;
const createLoop = useCreateLoop();
diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/UserMessage.test.tsx b/products/desktop/packages/ui/src/features/sessions/components/session-update/UserMessage.test.tsx
index e75d38316a43..8e4aba595dfc 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/UserMessage.test.tsx
+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/UserMessage.test.tsx
@@ -3,16 +3,16 @@ import { Theme } from "@radix-ui/themes";
import { render, screen } from "@testing-library/react";
import { Container } from "inversify";
import type { ReactNode } from "react";
-import { afterEach, describe, expect, it, vi } from "vitest";
+import { describe, expect, it } from "vitest";
import {
FEATURE_FLAGS,
type FeatureFlags,
} from "../../../feature-flags/identifiers";
import { UserMessage } from "./UserMessage";
-function renderWithFlags(node: ReactNode, bluebirdEnabled: boolean) {
+function renderMessage(node: ReactNode) {
const flags: FeatureFlags = {
- isEnabled: () => bluebirdEnabled,
+ isEnabled: () => false,
getPayload: () => undefined,
getVariant: () => undefined,
onFlagsLoaded: () => () => {},
@@ -47,14 +47,8 @@ const PROMPT_FROM_PEER_AGENT =
"schema changed, see peers.py";
describe("UserMessage", () => {
- // useFeatureFlag falls back to import.meta.env.DEV, which is true under
- // vitest. Pin DEV off in the flag-gating cases so they exercise the flag
- // itself, not the dev default.
- afterEach(() => {
- vi.unstubAllEnvs();
- });
it("renders attachment chips for cloud prompts", () => {
- renderWithFlags(
+ renderMessage(
<UserMessage
content="read this file"
attachments={[
@@ -62,7 +56,6 @@ describe("UserMessage", () => {
{ id: "attachment://notes.md", label: "notes.md" },
]}
/>,
- true,
);
expect(screen.getByText("read this file")).toBeInTheDocument();
@@ -73,7 +66,7 @@ describe("UserMessage", () => {
it("renders a peer agent message as the body plus a provenance chip, never the raw envelope", () => {
// Regression: the envelope boilerplate rendering inline made a peer message
// indistinguishable from something this run's user typed.
- renderWithFlags(<UserMessage content={PROMPT_FROM_PEER_AGENT} />, false);
+ renderMessage(<UserMessage content={PROMPT_FROM_PEER_AGENT} />);
expect(
screen.getByText("schema changed, see peers.py"),
@@ -87,41 +80,25 @@ describe("UserMessage", () => {
expect(screen.queryByText(/peer message content/)).not.toBeInTheDocument();
});
- it("shows the channel CONTEXT.md tag when project-bluebird is enabled", () => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
+ it("shows the channel CONTEXT.md tag and strips the raw block", () => {
+ renderMessage(
<UserMessage content={PROMPT_WITH_CONTEXT} taskId="task-1" />,
- true,
);
expect(screen.getByText("do the thing")).toBeInTheDocument();
expect(screen.getByText("#billing CONTEXT.md")).toBeInTheDocument();
- });
-
- it("hides the tag but still strips the block when project-bluebird is off", () => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
- <UserMessage content={PROMPT_WITH_CONTEXT} taskId="task-1" />,
- false,
- );
-
- // Prompt still renders, the channel-context tag does not.
- expect(screen.getByText("do the thing")).toBeInTheDocument();
- expect(screen.queryByText("#billing CONTEXT.md")).not.toBeInTheDocument();
- // The raw <channel_context> XML must never leak to flag-off viewers.
+ // The raw <channel_context> XML must never leak into the rendered message.
expect(screen.queryByText(/channel_context/)).not.toBeInTheDocument();
});
it("replaces a whole-message onboarding brief with a chip", () => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
+ renderMessage(
<UserMessage
content={
"<onboarding_brief>\nWrite the first message.\n</onboarding_brief>"
}
taskId="task-1"
/>,
- false,
);
expect(
@@ -135,64 +112,36 @@ describe("UserMessage", () => {
});
it("renders Pi skill invocations as a command chip", () => {
- renderWithFlags(<UserMessage content={PROMPT_WITH_PI_SKILL} />, true);
+ renderMessage(<UserMessage content={PROMPT_WITH_PI_SKILL} />);
expect(screen.getByText("/code-review")).toBeInTheDocument();
expect(screen.getByText("Review this pull request.")).toBeInTheDocument();
expect(screen.queryByText("Inspect the diff.")).not.toBeInTheDocument();
});
- it("shows the canvas-instructions tag when project-bluebird is enabled", () => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
+ it("shows the canvas-instructions tag and strips the raw block", () => {
+ renderMessage(
<UserMessage content={PROMPT_WITH_CANVAS_INSTRUCTIONS} taskId="task-1" />,
- true,
);
expect(screen.getByText("add a retention chart")).toBeInTheDocument();
expect(screen.getByText("Canvas instructions")).toBeInTheDocument();
// The contract body is collapsed into the tag, not rendered inline.
expect(screen.queryByText("authoring contract")).not.toBeInTheDocument();
- });
-
- it("hides the canvas-instructions tag but still strips the block when off", () => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
- <UserMessage content={PROMPT_WITH_CANVAS_INSTRUCTIONS} taskId="task-1" />,
- false,
- );
-
- expect(screen.getByText("add a retention chart")).toBeInTheDocument();
- expect(screen.queryByText("Canvas instructions")).not.toBeInTheDocument();
expect(
screen.queryByText(/canvas_generation_instructions/),
).not.toBeInTheDocument();
});
- it.each([
- {
- name: "shows the PostHog context tag when project-bluebird is enabled",
- bluebirdEnabled: true,
- },
- {
- name: "hides the PostHog context tag but still strips the blocks when off",
- bluebirdEnabled: false,
- },
- ])("$name", ({ bluebirdEnabled }) => {
- vi.stubEnv("DEV", false);
- renderWithFlags(
+ it("shows the PostHog context tag and strips the raw blocks", () => {
+ renderMessage(
<UserMessage content={PROMPT_WITH_POSTHOG_CONTEXT} taskId="task-1" />,
- bluebirdEnabled,
);
expect(
screen.getByText("How many monthly active users do we have"),
).toBeInTheDocument();
- if (bluebirdEnabled) {
- expect(screen.getByText("PostHog context")).toBeInTheDocument();
- } else {
- expect(screen.queryByText("PostHog context")).not.toBeInTheDocument();
- }
+ expect(screen.getByText("PostHog context")).toBeInTheDocument();
expect(
screen.queryByText(/posthog_trusted_context/),
).not.toBeInTheDocument();
diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/injectedBlocks.tsx b/products/desktop/packages/ui/src/features/sessions/components/session-update/injectedBlocks.tsx
index 76feebc1211d..970b8bbe70b4 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/injectedBlocks.tsx
+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/injectedBlocks.tsx
@@ -87,10 +87,6 @@ export const INJECTED_BLOCK_PRESENTATION: Record<
export function visibleInjectedBlocks(
blocks: InjectedBlock[],
- canOpenTabs: boolean,
): InjectedBlock[] {
- return blocks.filter((block) => {
- const { chip, tab } = INJECTED_BLOCK_PRESENTATION[block.kind];
- return chip && (canOpenTabs || !tab);
- });
+ return blocks.filter((block) => INJECTED_BLOCK_PRESENTATION[block.kind].chip);
}
diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/useVisibleInjectedBlocks.ts b/products/desktop/packages/ui/src/features/sessions/components/session-update/useVisibleInjectedBlocks.ts
index 0ac13dfe9e1c..115b03ddf9d5 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/useVisibleInjectedBlocks.ts
+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/useVisibleInjectedBlocks.ts
@@ -1,14 +1,9 @@
import type { InjectedBlock } from "@posthog/core/editor/injectedBlocks";
-import { useBluebirdFlag } from "@posthog/ui/features/feature-flags/useBluebirdFlag";
import { visibleInjectedBlocks } from "@posthog/ui/features/sessions/components/session-update/injectedBlocks";
import { useMemo } from "react";
export function useVisibleInjectedBlocks(
blocks: InjectedBlock[],
): InjectedBlock[] {
- const canOpenTabs = useBluebirdFlag();
- return useMemo(
- () => visibleInjectedBlocks(blocks, canOpenTabs),
- [blocks, canOpenTabs],
- );
+ return useMemo(() => visibleInjectedBlocks(blocks), [blocks]);
}
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/SidebarNavSection.tsx b/products/desktop/packages/ui/src/features/sidebar/components/SidebarNavSection.tsx
index 1d267eabef16..3607710695a6 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/SidebarNavSection.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/components/SidebarNavSection.tsx
@@ -1,4 +1,4 @@
-import { LOOPS_FLAG, PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
+import { LOOPS_FLAG } from "@posthog/shared";
import {
ANALYTICS_EVENTS,
type SidebarNavItem,
@@ -70,11 +70,6 @@ export function SidebarNavSection({
// Loops stays behind the loops flag. Also gates the per-channel Loops tab
// (see ChannelTabs).
const loopsEnabled = useFeatureFlag(LOOPS_FLAG);
- // Channels stay behind project-bluebird, including channel-only nav items.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
const mentionsEnabled = useActivityFilterStore(
(state) => state.mentionsEnabled,
);
@@ -142,7 +137,7 @@ export function SidebarNavSection({
inbox: true,
"command-center": true,
contexts: contextEnabled,
- activity: bluebirdEnabled,
+ activity: true,
configure: true,
loops: loopsEnabled,
};
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.test.tsx b/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.test.tsx
index 53ac46a2fe49..1b66dd04b0dc 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.test.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.test.tsx
@@ -103,17 +103,4 @@ describe("TasksHeader", () => {
{ group_by: "date", sort_by: "updated", surface: "sidebar" },
);
});
-
- it("hides the mode selector when Channels is unavailable", () => {
- featureFlagEnabled.value = false;
-
- render(
- <Theme>
- <TasksHeader />
- </Theme>,
- );
-
- expect(screen.getByText("List")).toBeInTheDocument();
- expect(screen.queryByText("Channels")).not.toBeInTheDocument();
- });
});
diff --git a/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.tsx b/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.tsx
index 9368136c48bf..4d681041abd0 100644
--- a/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/components/TasksHeader.tsx
@@ -24,10 +24,9 @@ import {
DropdownMenuTrigger,
MenuLabel,
} from "@posthog/quill";
-import { PROJECT_BLUEBIRD_FLAG, type WorkspaceMode } from "@posthog/shared";
+import type { WorkspaceMode } from "@posthog/shared";
import { ANALYTICS_EVENTS } from "@posthog/shared/analytics-events";
import { useMeQuery } from "@posthog/ui/features/auth/useMeQuery";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useFolders } from "@posthog/ui/features/folders/useFolders";
import { EditListItemAppearanceDialog } from "@posthog/ui/features/sidebar/components/EditListItemAppearanceDialog";
import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";
@@ -248,12 +247,7 @@ function TaskFilterMenu() {
}
export function TasksHeader() {
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
- const channelsEnabled =
- useSidebarStore((state) => state.channelsEnabled) && bluebirdEnabled;
+ const channelsEnabled = useSidebarStore((state) => state.channelsEnabled);
const setChannelsEnabled = useSidebarStore(
(state) => state.setChannelsEnabled,
);
@@ -274,35 +268,31 @@ export function TasksHeader() {
return (
<div className="shrink-0 px-2">
<div className="flex min-h-7 items-center justify-between pb-0.5">
- {bluebirdEnabled ? (
- <fieldset
- className="m-0 flex min-w-0 items-center gap-px rounded border-0 bg-fill-secondary p-px"
- aria-label="Sidebar content"
+ <fieldset
+ className="m-0 flex min-w-0 items-center gap-px rounded border-0 bg-fill-secondary p-px"
+ aria-label="Sidebar content"
+ >
+ <Button
+ type="button"
+ size="xs"
+ className="px-1.5 font-normal text-gray-10 text-xs normal-case hover:text-gray-12 data-[active]:bg-accent-4 data-[active]:font-medium data-[active]:text-gray-12 data-[active]:shadow-sm"
+ aria-pressed={channelsEnabled}
+ data-active={channelsEnabled || undefined}
+ onClick={() => handleModeChange(true)}
>
- <Button
- type="button"
- size="xs"
- className="px-1.5 font-normal text-gray-10 text-xs normal-case hover:text-gray-12 data-[active]:bg-accent-4 data-[active]:font-medium data-[active]:text-gray-12 data-[active]:shadow-sm"
- aria-pressed={channelsEnabled}
- data-active={channelsEnabled || undefined}
- onClick={() => handleModeChange(true)}
- >
- Channels
- </Button>
- <Button
- type="button"
- size="xs"
- className="px-1.5 font-normal text-gray-10 text-xs normal-case hover:text-gray-12 data-[active]:bg-accent-4 data-[active]:font-medium data-[active]:text-gray-12 data-[active]:shadow-sm"
- aria-pressed={!channelsEnabled}
- data-active={!channelsEnabled || undefined}
- onClick={() => handleModeChange(false)}
- >
- List
- </Button>
- </fieldset>
- ) : (
- <span className="font-medium text-xs">List</span>
- )}
+ Channels
+ </Button>
+ <Button
+ type="button"
+ size="xs"
+ className="px-1.5 font-normal text-gray-10 text-xs normal-case hover:text-gray-12 data-[active]:bg-accent-4 data-[active]:font-medium data-[active]:text-gray-12 data-[active]:shadow-sm"
+ aria-pressed={!channelsEnabled}
+ data-active={!channelsEnabled || undefined}
+ onClick={() => handleModeChange(false)}
+ >
+ List
+ </Button>
+ </fieldset>
{!channelsEnabled && (
<span className="flex items-center">
<AddFolderButton />
diff --git a/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.test.tsx b/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.test.tsx
index 7f323ff3ba5f..9ad9db9c236c 100644
--- a/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.test.tsx
+++ b/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.test.tsx
@@ -11,7 +11,6 @@ const hoisted = vi.hoisted(() => ({
placeTasksInCommandCenter: vi.fn(),
fileTask: vi.fn(),
useChannels: vi.fn(),
- useFeatureFlag: vi.fn(),
useTasks: vi.fn(),
pinnedTaskIds: new Set<string>(),
toast: {
@@ -39,10 +38,6 @@ vi.mock("@posthog/ui/features/command-center/placeTaskInCommandCenter", () => ({
placeTasksInCommandCenter: hoisted.placeTasksInCommandCenter,
}));
-vi.mock("@posthog/ui/features/feature-flags/useFeatureFlag", () => ({
- useFeatureFlag: hoisted.useFeatureFlag,
-}));
-
vi.mock("./usePinnedTasks", () => ({
usePinnedTasks: () => ({
pinnedTaskIds: hoisted.pinnedTaskIds,
@@ -93,7 +88,6 @@ describe("useSidebarBulkActions", () => {
channels: [{ id: "c1", name: "support" }],
isLoading: false,
});
- hoisted.useFeatureFlag.mockReturnValue(true);
hoisted.useTasks.mockReturnValue({ data: [{ id: "t1" }, { id: "t2" }] });
hoisted.setPinnedMany.mockResolvedValue({
succeeded: ["t1", "t2"],
@@ -390,22 +384,6 @@ describe("useSidebarBulkActions", () => {
expect(hoisted.toast.error).toHaveBeenCalledWith("1 filed, 1 failed");
});
- // `enabled: false` stops the fetch but still hands back whatever an ungated
- // surface already put in the shared cache, so the flag has to gate the list.
- it("offers no channels when the bluebird flag is off", () => {
- hoisted.useFeatureFlag.mockReturnValue(false);
- hoisted.useChannels.mockReturnValue({
- channels: [{ id: "c1", name: "support" }],
- isLoading: false,
- });
-
- const { result } = render();
-
- expect(result.current.channels).toEqual([]);
- expect(result.current.fileDisabledReason).not.toBeNull();
- expect(hoisted.useChannels).toHaveBeenCalledWith({ enabled: false });
- });
-
it.each([
{ action: "archiveDisabledReason" },
{ action: "pinDisabledReason" },
diff --git a/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.ts b/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.ts
index 65dc6627a4a8..1f7e1dd16839 100644
--- a/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.ts
+++ b/products/desktop/packages/ui/src/features/sidebar/useSidebarBulkActions.ts
@@ -6,7 +6,6 @@ import {
} from "@posthog/core/sidebar/selection";
import type { TaskData } from "@posthog/core/sidebar/sidebarData.types";
import { isTaskActivelyRunning } from "@posthog/core/sidebar/taskRunning";
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import {
archiveTasksImperative,
useArchiveCacheKeys,
@@ -15,7 +14,6 @@ import type { Channel } from "@posthog/ui/features/canvas/hooks/useChannels";
import { useChannels } from "@posthog/ui/features/canvas/hooks/useChannels";
import { useChannelTaskMutations } from "@posthog/ui/features/canvas/hooks/useChannelTasks";
import { placeTasksInCommandCenter } from "@posthog/ui/features/command-center/placeTaskInCommandCenter";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useArchivingTasksStore } from "@posthog/ui/features/sidebar/archivingTasksStore";
import { useScopedTaskSelectionStore } from "@posthog/ui/features/sidebar/TaskSelectionScope";
import { usePinnedTasks } from "@posthog/ui/features/sidebar/usePinnedTasks";
@@ -27,9 +25,6 @@ import { useCallback, useMemo, useState } from "react";
const log = logger.scope("sidebar-bulk-actions");
-/** Stable empty list, so a gated-off channels array keeps a steady identity. */
-const EMPTY_CHANNELS: Channel[] = [];
-
/** Clause after "Disabled because …" (see `@posthog/ui/primitives/Button`). */
const NO_SELECTION = "you haven't selected any sessions";
const NO_CHANNELS = "this project has no channels to file to";
@@ -82,17 +77,7 @@ export function useSidebarBulkActions(
const { pinnedTaskIds, setPinnedMany, isSettingPinnedMany } =
usePinnedTasks();
- // "File to…" is a Project Bluebird feature. `enabled` only stops the fetch, and
- // an ungated surface elsewhere can still have filled the shared cache, so the
- // flag has to gate the list itself rather than just the request.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
- const { channels: fetchedChannels } = useChannels({
- enabled: bluebirdEnabled,
- });
- const channels = bluebirdEnabled ? fetchedChannels : EMPTY_CHANNELS;
+ const { channels } = useChannels();
const { fileTask } = useChannelTaskMutations();
const liveTaskIds = useLiveTaskIds(selectedCount > 0);
diff --git a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.test.tsx b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.test.tsx
index cf18a902d22a..2974334048a9 100644
--- a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.test.tsx
+++ b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.test.tsx
@@ -9,15 +9,11 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
// none of which a unit test has. Stubbed at the module boundary, as
// ChannelItemRow.test.tsx does for the same reason.
const mocks = vi.hoisted(() => ({
- bluebird: true,
status: null as TaskStatusInput | null,
togglePin: vi.fn(async (_taskId: string) => undefined),
openExternalUrl: vi.fn(),
toast: { success: vi.fn(), error: vi.fn() },
}));
-vi.mock("@posthog/ui/features/feature-flags/useBluebirdFlag", () => ({
- useBluebirdFlag: () => mocks.bluebird,
-}));
vi.mock("@posthog/ui/features/canvas/hooks/useChannelTaskStatus", () => ({
useTaskStatusInput: () => mocks.status,
}));
@@ -51,7 +47,6 @@ function renderMarks() {
describe("TaskHeaderStatus", () => {
beforeEach(() => {
- mocks.bluebird = true;
mocks.status = { workspaceMode: "cloud" };
mocks.togglePin.mockClear();
mocks.togglePin.mockResolvedValue(undefined);
@@ -63,24 +58,11 @@ describe("TaskHeaderStatus", () => {
it.each([
["needs your input", { needsPermission: true }, "Needs your input"],
["a settled session", {}, "All caught up"],
- ])(
- "names the state under project-bluebird for %s",
- (_case, status: TaskStatusInput, label) => {
- mocks.status = { workspaceMode: "cloud", ...status };
- renderMark();
-
- expect(screen.getByRole("img", { name: label })).toBeInTheDocument();
- },
- );
-
- it("keeps the workspace-mode glyph when project-bluebird is off", () => {
- mocks.bluebird = false;
- const { container } = renderMark();
+ ])("names the state for %s", (_case, status: TaskStatusInput, label) => {
+ mocks.status = { workspaceMode: "cloud", ...status };
+ renderMark();
- // The mode glyph carries its name in a tooltip rather than a role, so the
- // dot's absence is what says the old header is still drawn.
- expect(screen.queryByRole("img")).not.toBeInTheDocument();
- expect(container.querySelector("svg")).toBeInTheDocument();
+ expect(screen.getByRole("img", { name: label })).toBeInTheDocument();
});
it("moves where the session runs into a badge, so cloud stays silent", () => {
diff --git a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.tsx b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.tsx
index 6aff819e28cd..f94eabc7f6c7 100644
--- a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.tsx
+++ b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderStatus.tsx
@@ -4,7 +4,6 @@ import type { WorkspaceMode } from "@posthog/shared";
import { getErrorMessage } from "@posthog/shared";
import type { Task } from "@posthog/shared/domain-types";
import { useTaskStatusInput } from "@posthog/ui/features/canvas/hooks/useChannelTaskStatus";
-import { useBluebirdFlag } from "@posthog/ui/features/feature-flags/useBluebirdFlag";
import {
RowTooltip,
TaskStatusDot,
@@ -28,16 +27,13 @@ import { type ReactNode, useState } from "react";
const ICON_SIZE = 12;
/**
- * The session's state for the window header, or `null` where the header keeps
- * its old workspace-mode glyph — outside project-bluebird, and before the
- * task's state has landed.
+ * The session's state for the window header, or `null` before the task's state
+ * has landed, where the header keeps its old workspace-mode glyph.
*/
function useHeaderStatus(task: Task): TaskStatusInput | null {
- const bluebird = useBluebirdFlag();
// The PR lookup is the one part that reaches the host, so it goes no further
// than the surface that draws it.
- const status = useTaskStatusInput(task, { withPrStatus: bluebird });
- return bluebird ? status : null;
+ return useTaskStatusInput(task, { withPrStatus: true });
}
/**
diff --git a/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts b/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
index ad0a3cf82b91..ea8c738440bf 100644
--- a/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
+++ b/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
@@ -18,7 +18,6 @@ import {
type AgentRuntime,
ANALYTICS_EVENTS,
type ModelAccess,
- PROJECT_BLUEBIRD_FLAG,
type TaskCreationInput,
type WorkspaceMode,
} from "@posthog/shared";
@@ -27,7 +26,6 @@ import { SIMPLIFIED_TECHNICAL_ENGLISH_INSTRUCTION } from "@posthog/shared/produc
import { getCurrentBrowserTabId } from "@posthog/ui/features/browser-tabs/imperativeTabNavigation";
import { useTaskChannels } from "@posthog/ui/features/canvas/hooks/useTaskChannels";
import { useTaskRepositoryDraftStore } from "@posthog/ui/features/canvas/stores/taskRepositoryDraftStore";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import {
subscriptionModelAccess,
useAdapterSubscription,
@@ -267,18 +265,11 @@ export function useTaskCreation({
// Used to name the task occupying a branch's worktree when reuse is blocked.
const { data: tasks } = useTasks();
- // Tasks created without a channel default into the user's private #me channel so they
- // surface in the Channels space instead of staying unfiled. #me is per-user, so this
- // cannot collide across teammates; before the list loads the task is created unfiled.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
const currentProjectId = useAuthStateValue((state) => state.currentProjectId);
const claudeTokenStore = useServiceOptional<ClaudeSubscriptionTokenSettings>(
CLAUDE_SUBSCRIPTION_TOKEN_SETTINGS,
);
- const { personalChannel } = useTaskChannels({ enabled: bluebirdEnabled });
+ const { personalChannel } = useTaskChannels();
const hasRequiredPath = allowNoRepo
? true
@@ -457,10 +448,12 @@ export function useTaskCreation({
try {
const settings = useSettingsStore.getState();
+ // Tasks created without a channel default into the user's private #me
+ // channel so they surface in the Channels space instead of staying
+ // unfiled. #me is per-user, so this cannot collide across teammates;
+ // before the list loads the task is created unfiled.
const defaultedChannelId =
- bluebirdEnabled && !channelId && !channelName
- ? personalChannel?.id
- : undefined;
+ !channelId && !channelName ? personalChannel?.id : undefined;
const localMcpServersForRun = partitionLocalMcpServersForRun(
localMcpServers,
@@ -723,7 +716,6 @@ export function useTaskCreation({
channelId,
channelContextId,
allowNoRepo,
- bluebirdEnabled,
personalChannel?.id,
localMcpServers,
localMcpServersLoading,
diff --git a/products/desktop/packages/ui/src/features/tasks/useTaskContextMenu.ts b/products/desktop/packages/ui/src/features/tasks/useTaskContextMenu.ts
index ab8cbaa0d2cb..1909e3782510 100644
--- a/products/desktop/packages/ui/src/features/tasks/useTaskContextMenu.ts
+++ b/products/desktop/packages/ui/src/features/tasks/useTaskContextMenu.ts
@@ -3,13 +3,11 @@ import {
resolveTaskContextMenuIntent,
} from "@posthog/core/tasks/contextMenuActions";
import { useHostTRPCClient } from "@posthog/host-router/react";
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import type { Task } from "@posthog/shared/domain-types";
import { useArchiveTask } from "@posthog/ui/features/archive/useArchiveTask";
import { useChannels } from "@posthog/ui/features/canvas/hooks/useChannels";
import { useFileTaskToChannel } from "@posthog/ui/features/canvas/hooks/useFileTaskToChannel";
import { useExternalAppAction } from "@posthog/ui/features/external-apps/useExternalAppAction";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useRestoreTask } from "@posthog/ui/features/suspension/useRestoreTask";
import { useSuspendTask } from "@posthog/ui/features/suspension/useSuspendTask";
import { useDeleteTask } from "@posthog/ui/features/tasks/useTaskCrudMutations";
@@ -26,16 +24,8 @@ export function useTaskContextMenu() {
const { archiveTask } = useArchiveTask();
const { suspendTask } = useSuspendTask();
const { restoreTask } = useRestoreTask();
- // "File to…" is a Project Bluebird feature. Gate the channel fetch behind the
- // flag so the submenu (and its API request) never reaches ungated users.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
- const { channels } = useChannels({ enabled: bluebirdEnabled });
- const fileTaskToChannel = useFileTaskToChannel({
- enabled: bluebirdEnabled,
- });
+ const { channels } = useChannels();
+ const fileTaskToChannel = useFileTaskToChannel();
const showContextMenu = useCallback(
async (
diff --git a/products/desktop/packages/ui/src/router/routes/__root.tsx b/products/desktop/packages/ui/src/router/routes/__root.tsx
index fd46334a0239..986f3d5f8961 100644
--- a/products/desktop/packages/ui/src/router/routes/__root.tsx
+++ b/products/desktop/packages/ui/src/router/routes/__root.tsx
@@ -5,7 +5,7 @@ import {
} from "@phosphor-icons/react";
import { useHostTRPC, useHostTRPCClient } from "@posthog/host-router/react";
import { Button, ButtonGroup, cn } from "@posthog/quill";
-import { BILLING_FLAG, PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
+import { BILLING_FLAG } from "@posthog/shared";
import { ANALYTICS_EVENTS } from "@posthog/shared/analytics-events";
import { isContentlessTask } from "@posthog/shared/domain-types";
import { AnnouncementBanner } from "@posthog/ui/features/announcements/AnnouncementBanner";
@@ -17,7 +17,6 @@ import { UsageLimitModal } from "@posthog/ui/features/billing/UsageLimitModal";
import { useSpendGuardrails } from "@posthog/ui/features/billing/useSpendGuardrails";
import { BrowserTabStrip } from "@posthog/ui/features/browser-tabs/BrowserTabStrip";
import { BrowserTabsDndProvider } from "@posthog/ui/features/browser-tabs/BrowserTabsDnd";
-import { isBluebirdOnlyPath } from "@posthog/ui/features/canvas/bluebirdRoutes";
import { ChannelHotkeys } from "@posthog/ui/features/canvas/components/ChannelHotkeys";
import { ChannelRouteSync } from "@posthog/ui/features/canvas/components/ChannelRouteSync";
import { ChannelsSidebar } from "@posthog/ui/features/canvas/components/ChannelsSidebar";
@@ -76,7 +75,6 @@ import { useCommandMenuStore } from "@posthog/ui/shell/commandMenuStore";
import { GlobalEventHandlers } from "@posthog/ui/shell/GlobalEventHandlers";
import { HedgehogMode } from "@posthog/ui/shell/HedgehogMode";
import { logger } from "@posthog/ui/shell/logger";
-import { onFeatureFlagsLoaded } from "@posthog/ui/shell/posthogAnalyticsImpl";
import { SpaceSwitcher } from "@posthog/ui/shell/SpaceSwitcher";
import { useShortcutsSheetStore } from "@posthog/ui/shell/shortcutsSheetStore";
import { useHostCapabilities } from "@posthog/ui/shell/useHostCapabilities";
@@ -192,11 +190,7 @@ function RootLayout() {
const billingEnabled = useFeatureFlag(BILLING_FLAG);
useSpendGuardrails();
// "PostHog Web" is a channels-world affordance — show it only while the user
- // is actually seeing channels (toggle on, which itself requires the flag).
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
+ // is actually seeing channels.
const channelsWorld = useChannelsWorld();
// The new channels layout has exactly one gate: its feature flag (no
// sidebar toggle). When on it subsumes the channels alpha entirely.
@@ -275,11 +269,6 @@ function RootLayout() {
});
}, [tasks, workspaces, workspacesFetched, queryClient, hostClient, trpc]);
- // Flags resolve asynchronously — flag-gated routes below wait for this
- // before redirecting away from a restored route the user can't access.
- const [flagsLoaded, setFlagsLoaded] = useState(false);
- useEffect(() => onFeatureFlagsLoaded(() => setFlagsLoaded(true)), []);
-
// Settings is a full-page route — drop the app chrome (header/sidebar/
// space-switcher) so the panel occupies the full window. A report opened
// from settings hosts the same portal, so it counts as settings here too.
@@ -289,19 +278,6 @@ function RootLayout() {
// ContentHeader is mounted only where that layout isn't.
const shellOwnsHeader = useShellOwnsHeader();
- // The bluebird routes stay registered regardless of the flag, so a stale URL,
- // a restored session, or a persisted browser tab could strand a flag-off user
- // on chrome they have no way back out of. Once flags resolve, send them back
- // to a new task.
- const onBluebirdOnlyPath = useRouterState({
- select: (s) => isBluebirdOnlyPath(s.location.pathname),
- });
- useEffect(() => {
- if (flagsLoaded && !bluebirdEnabled && onBluebirdOnlyPath) {
- openTaskInput();
- }
- }, [flagsLoaded, bluebirdEnabled, onBluebirdOnlyPath]);
-
return (
// DnD scope for the tab strip's drag-to-reorder (pill sortables live in
// the title bar; the provider must sit above them).
diff --git a/products/desktop/packages/ui/src/shell/GlobalEventHandlers.tsx b/products/desktop/packages/ui/src/shell/GlobalEventHandlers.tsx
index d149d3cd6695..f8df365c1067 100644
--- a/products/desktop/packages/ui/src/shell/GlobalEventHandlers.tsx
+++ b/products/desktop/packages/ui/src/shell/GlobalEventHandlers.tsx
@@ -6,7 +6,6 @@ import {
} from "@posthog/core/sessions/sessionService";
import { useService, useServiceOptional } from "@posthog/di/react";
import { useHostTRPC } from "@posthog/host-router/react";
-import { PROJECT_BLUEBIRD_FLAG } from "@posthog/shared";
import type { Task } from "@posthog/shared/domain-types";
import { useSpacesTabs } from "@posthog/ui/features/browser-tabs/useSpacesTabs";
import { useChannelsLayout } from "@posthog/ui/features/canvas/hooks/useChannelsLayout";
@@ -17,7 +16,6 @@ import {
GLOBAL_HOTKEY_OPTIONS,
SHORTCUTS,
} from "@posthog/ui/features/command/keyboard-shortcuts";
-import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { useFeedbackStore } from "@posthog/ui/features/feedback/feedbackStore";
import { useFolders } from "@posthog/ui/features/folders/useFolders";
import { toggleRightPanel } from "@posthog/ui/features/navigation/rightPanelSide";
@@ -91,12 +89,7 @@ function useGlobalEventHandlers({
// starred channels in the new layout (ChannelHotkeys, mounted from __root so
// the keys always have an owner), so task-switching only owns those keys in
// the Code nav.
- const bluebirdEnabled = useFeatureFlag(
- PROJECT_BLUEBIRD_FLAG,
- import.meta.env.DEV,
- );
- const channelsEnabled =
- useSidebarStore((s) => s.channelsEnabled) && bluebirdEnabled;
+ const channelsEnabled = useSidebarStore((s) => s.channelsEnabled);
const channelsLayout = useChannelsLayout();
const spacesTabs = useSpacesTabs();
const browserTabStripMounted = channelsLayout ? spacesTabs : true;