@devries-cameron20 / t3code-1 / commits / a01f4107ca
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

chore(web): remove "use client" directives (#22587)

oliver committed Oct 20, 2026 at 18:28 UTC a01f4107ca46b8688e3f81c8878e37fdfadc3fd7
51 files changed -100
apps/web/src/browser/BrowserDeviceToolbar.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import {
2 PREVIEW_VIEWPORT_MAX_AREA,
3 PREVIEW_VIEWPORT_MAX_DIMENSION,
apps/web/src/browser/BrowserSurfaceSlot.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { useLayoutEffect, useRef } from "react";
2
3 import { acquireBrowserSurface } from "./browserSurfaceStore";
apps/web/src/browser/BrowserViewportResizeHandles.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type {
2 CSSProperties,
3 KeyboardEvent as ReactKeyboardEvent,
apps/web/src/browser/ElectronBrowserHost.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { parseScopedThreadKey } from "@t3tools/client-runtime/environment";
2 import {
3 AuthPreviewOperateScope,
apps/web/src/browser/HostedBrowserWebview.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type {
2 DesktopPreviewColorScheme,
3 PreviewViewportSetting,
apps/web/src/browser/ServerBrowserSurface.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import {
2 createPreviewFramePainter,
3 createPreviewStreamClient,
apps/web/src/browser/useBrowserViewportResize.ts
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type { PreviewViewportSetting, PreviewViewportSize } from "@t3tools/contracts";
2 import {
3 useEffect,
apps/web/src/components/AnimatedHeight.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { type ReactNode, useEffect, useLayoutEffect, useRef, useState } from "react";
2 import { observeResize } from "../lib/observeResize";
3
apps/web/src/components/CommandPalette.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { threadPullRequestLinkMode } from "@t3tools/client-runtime/thread-pull-request-compatibility";
2 import { visibleThreadPullRequests } from "@t3tools/shared/threadPullRequests";
3
apps/web/src/components/preview/AgentBrowserCursor.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type { DesktopPreviewPointerEvent } from "@t3tools/contracts";
2 import { MousePointer2 } from "lucide-react";
3 import { useEffect, useState } from "react";
apps/web/src/components/preview/PreviewMoreMenu.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type { DesktopPreviewColorScheme } from "@t3tools/contracts";
2 import { Minus, MoreVertical, Plus as PlusIcon, RotateCcw } from "lucide-react";
3
apps/web/src/components/preview/PreviewPanel.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import {
2 AuthPreviewOperateScope,
3 type PreviewAnnotationPayload,
apps/web/src/components/preview/PreviewView.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { scopeThreadRef, scopedThreadKey } from "@t3tools/client-runtime/environment";
2 import { settlePromise } from "@t3tools/client-runtime/state/runtime";
3 import { previewStreamDownloadUrl } from "@t3tools/client-runtime/preview/server-browser-stream";
apps/web/src/components/preview/ThreadPreviewMiniPlayer.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { FILL_PREVIEW_VIEWPORT, type ScopedThreadRef } from "@t3tools/contracts";
2 import { previewPdfAssetUrl } from "@t3tools/shared/preview";
3 import { useEnvironmentHttpBaseUrl } from "~/state/environments";
apps/web/src/components/preview/previewActionBus.ts
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 export type PreviewAction =
2 | "toggle-panel"
3 | "refresh"
apps/web/src/components/preview/usePreviewBridge.ts
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type {
2 DesktopPreviewTabState,
3 PreviewReportStatusInput,
apps/web/src/components/preview/usePreviewSession.ts
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { useAtomValue } from "@effect/atom-react";
2 import {
3 parseScopedThreadKey,
apps/web/src/components/settings/AddProviderInstanceDialog.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
2
3 import { Radio as RadioPrimitive } from "@base-ui/react/radio";
apps/web/src/components/settings/CustomModelEditor.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { PlusIcon, XIcon } from "lucide-react";
2 import { useState } from "react";
3 import type { ProviderDriverKind, ServerProviderModel } from "@t3tools/contracts";
apps/web/src/components/settings/ProviderAccentColorPicker.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { PlusIcon, XIcon } from "lucide-react";
2 import { useEffect, useRef, useState } from "react";
3
apps/web/src/components/settings/ProviderInstanceCard.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Spinner } from "~/components/ui/spinner";
2
3 import {
apps/web/src/components/settings/ProviderModelsSection.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { ArrowDownIcon, ArrowUpIcon, PencilIcon, PlusIcon, StarIcon, XIcon } from "lucide-react";
2 import { useEffect, useRef, useState } from "react";
3 import {
apps/web/src/components/settings/ProviderSettingsForm.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { useEffect, useRef, useState, type ReactNode } from "react";
2 import * as Option from "effect/Option";
3 import * as Schema from "effect/Schema";
apps/web/src/components/ui/alert-dialog.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/autocomplete.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Autocomplete as AutocompletePrimitive } from "@base-ui/react/autocomplete";
2 import { ChevronsUpDownIcon, XIcon } from "lucide-react";
3
apps/web/src/components/ui/badge.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { mergeProps } from "@base-ui/react/merge-props";
2 import { useRender } from "@base-ui/react/use-render";
3 import { cva, type VariantProps } from "class-variance-authority";
apps/web/src/components/ui/button.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { mergeProps } from "@base-ui/react/merge-props";
2 import { useRender } from "@base-ui/react/use-render";
3 import { cva, type VariantProps } from "class-variance-authority";
apps/web/src/components/ui/calendar.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { DayPicker } from "@daypicker/react";
2 import { ChevronLeftIcon, ChevronRightIcon, ChevronsUpDownIcon } from "lucide-react";
3 import type * as React from "react";
apps/web/src/components/ui/checkbox.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/collapsible.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/combobox.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Combobox as ComboboxPrimitive } from "@base-ui/react/combobox";
2 import { ChevronsUpDownIcon, SearchIcon, XIcon } from "lucide-react";
3 import * as React from "react";
apps/web/src/components/ui/command.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Dialog as CommandDialogPrimitive } from "@base-ui/react/dialog";
2 import { SearchIcon } from "lucide-react";
3 import type * as React from "react";
apps/web/src/components/ui/dialog.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
2 import { XIcon } from "lucide-react";
3 import { type ComponentProps, createContext, type ReactNode, use, useState } from "react";
apps/web/src/components/ui/draft-input.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { useCommitOnBlur } from "~/hooks/useCommitOnBlur";
2 import { Input, type InputProps } from "./input";
3
apps/web/src/components/ui/group.tsx
-1
@@ -1,4 +1,3 @@
1 -"use client";
1 import { cva, type VariantProps } from "class-variance-authority";
2 import type * as React from "react";
3
apps/web/src/components/ui/input-group.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { cva, type VariantProps } from "class-variance-authority";
2 import type * as React from "react";
3
apps/web/src/components/ui/input.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Input as InputPrimitive } from "@base-ui/react/input";
2 import type * as React from "react";
3
apps/web/src/components/ui/label.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { mergeProps } from "@base-ui/react/merge-props";
2 import { useRender } from "@base-ui/react/use-render";
3
apps/web/src/components/ui/menu.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Menu as MenuPrimitive } from "@base-ui/react/menu";
2 import { CheckIcon, ChevronRightIcon } from "lucide-react";
3 import type * as React from "react";
apps/web/src/components/ui/number-field.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { NumberField as NumberFieldPrimitive } from "@base-ui/react/number-field";
2 import { MinusIcon, PlusIcon } from "lucide-react";
3 import * as React from "react";
apps/web/src/components/ui/popover.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/radio-group.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Radio as RadioPrimitive } from "@base-ui/react/radio";
2 import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
3
apps/web/src/components/ui/scroll-area.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/select.tsx
-1
@@ -1,4 +1,3 @@
1 -"use client";
1 import { mergeProps } from "@base-ui/react/merge-props";
2 import { Select as SelectPrimitive } from "@base-ui/react/select";
3 import { useRender } from "@base-ui/react/use-render";
apps/web/src/components/ui/sheet.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
2 import { XIcon } from "lucide-react";
3 import type { CSSProperties } from "react";
apps/web/src/components/ui/switch.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
2
3 import { cn } from "~/lib/utils";
apps/web/src/components/ui/textarea.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Field as FieldPrimitive } from "@base-ui/react/field";
2 import { mergeProps } from "@base-ui/react/merge-props";
3 import type * as React from "react";
apps/web/src/components/ui/toast.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Spinner } from "~/components/ui/spinner";
2
3 import { Toast } from "@base-ui/react/toast";
apps/web/src/components/ui/toastHelpers.ts
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type { ToastManagerAddOptions } from "@base-ui/react/toast";
2 import type { ComponentPropsWithoutRef, ReactNode } from "react";
3
apps/web/src/components/ui/toggle-group.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import type { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
2 import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group";
3 import type { VariantProps } from "class-variance-authority";
apps/web/src/components/ui/toggle.tsx
-2
@@ -1,5 +1,3 @@
1 -"use client";
2 -
1 import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
2 import { cva, type VariantProps } from "class-variance-authority";
3