Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): improve disconnected composer placeholder (#7122)

Inaya Yousfibcfd485869a5
diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx
index 07a9afecb..c697851cd 100644
--- a/apps/web/src/components/chat/ChatComposer.tsx
+++ b/apps/web/src/components/chat/ChatComposer.tsx
@@ -42,6 +42,7 @@ import {
replaceTextRange,
shouldSubmitComposerOnEnter,
} from "../../composer-logic";
+import { DISCONNECTED_COMPOSER_PLACEHOLDER } from "../../composerPlaceholder";
import { deriveComposerSendState, readFileAsDataUrl } from "../ChatView.logic";
import {
dataTransferHasComposerMention,
@@ -3075,7 +3076,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
: noProviderAvailable
? "Enable a provider in Settings to send a message"
: phase === "disconnected"
- ? "Ask for follow-up changes or attach images"
+ ? DISCONNECTED_COMPOSER_PLACEHOLDER
: "Ask anything, @tag files/folders, $use skills, or / for commands"
}
disabled={isConnecting || isComposerApprovalState || projectSelectionRequired}
diff --git a/apps/web/src/components/settings/SettingsFontPreviews.tsx b/apps/web/src/components/settings/SettingsFontPreviews.tsx
index a678c2ad5..57d714d20 100644
--- a/apps/web/src/components/settings/SettingsFontPreviews.tsx
+++ b/apps/web/src/components/settings/SettingsFontPreviews.tsx
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { ComposerPromptEditor, type ComposerPromptEditorHandle } from "../ComposerPromptEditor";
import { terminalThemeFromApp } from "../ThreadTerminalDrawer";
import { useTheme } from "../../hooks/useTheme";
+import { DISCONNECTED_COMPOSER_PLACEHOLDER } from "../../composerPlaceholder";
import { resolveDiffThemeName, type DiffThemeName } from "../../lib/diffRendering";
import { GhosttyTerminalSurface } from "~/terminal/ghostty/surface";
@@ -43,7 +44,7 @@ export function PromptFontPreview() {
terminalContexts={EMPTY_TERMINAL_CONTEXTS}
skills={EMPTY_SKILLS}
disabled={false}
- placeholder="Ask for follow-up changes or attach images"
+ placeholder={DISCONNECTED_COMPOSER_PLACEHOLDER}
className="max-h-40 min-h-12"
onRemoveTerminalContext={noop}
onChange={onChange}
diff --git a/apps/web/src/composerPlaceholder.ts b/apps/web/src/composerPlaceholder.ts
new file mode 100644
index 000000000..4fa933c68
--- /dev/null
+++ b/apps/web/src/composerPlaceholder.ts
@@ -0,0 +1,2 @@
+export const DISCONNECTED_COMPOSER_PLACEHOLDER =
+ "Ask for changes, send follow-ups, or attach images";