@devries-cameron20 / t3code Mirror · read-only / commits / bcfd485869
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 15:15 UTC

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

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <254055478+maria-rcks@users.noreply.github.com>

Inaya Yousfi committed Aug 19, 2026 at 01:32 UTC bcfd485869a5eb9e97c6d281ac839c1cd7c1bd99
3 files changed +6 -2
apps/web/src/components/chat/ChatComposer.tsx
+2 -1
@@ -42,6 +42,7 @@ import {
42 replaceTextRange,
43 shouldSubmitComposerOnEnter,
44 } from "../../composer-logic";
45 +import { DISCONNECTED_COMPOSER_PLACEHOLDER } from "../../composerPlaceholder";
46 import { deriveComposerSendState, readFileAsDataUrl } from "../ChatView.logic";
47 import {
48 dataTransferHasComposerMention,
@@ -3075,7 +3076,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
3076 : noProviderAvailable
3077 ? "Enable a provider in Settings to send a message"
3078 : phase === "disconnected"
3078 - ? "Ask for follow-up changes or attach images"
3079 + ? DISCONNECTED_COMPOSER_PLACEHOLDER
3080 : "Ask anything, @tag files/folders, $use skills, or / for commands"
3081 }
3082 disabled={isConnecting || isComposerApprovalState || projectSelectionRequired}
apps/web/src/components/settings/SettingsFontPreviews.tsx
+2 -1
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
3 import { ComposerPromptEditor, type ComposerPromptEditorHandle } from "../ComposerPromptEditor";
4 import { terminalThemeFromApp } from "../ThreadTerminalDrawer";
5 import { useTheme } from "../../hooks/useTheme";
6 +import { DISCONNECTED_COMPOSER_PLACEHOLDER } from "../../composerPlaceholder";
7 import { resolveDiffThemeName, type DiffThemeName } from "../../lib/diffRendering";
8 import { GhosttyTerminalSurface } from "~/terminal/ghostty/surface";
9
@@ -43,7 +44,7 @@ export function PromptFontPreview() {
44 terminalContexts={EMPTY_TERMINAL_CONTEXTS}
45 skills={EMPTY_SKILLS}
46 disabled={false}
46 - placeholder="Ask for follow-up changes or attach images"
47 + placeholder={DISCONNECTED_COMPOSER_PLACEHOLDER}
48 className="max-h-40 min-h-12"
49 onRemoveTerminalContext={noop}
50 onChange={onChange}
apps/web/src/composerPlaceholder.ts new
+2
@@ -0,0 +1,2 @@
1 +export const DISCONNECTED_COMPOSER_PLACEHOLDER =
2 + "Ask for changes, send follow-ups, or attach images";