diff --git a/packages/ui/src/components/prompt-input.tsx b/packages/ui/src/components/prompt-input.tsx index 53f6e1f4..0874c48c 100644 --- a/packages/ui/src/components/prompt-input.tsx +++ b/packages/ui/src/components/prompt-input.tsx @@ -7,7 +7,6 @@ import { createFileAttachment, createTextAttachment, createAgentAttachment } fro import type { Attachment } from "../types/attachment" import type { Agent } from "../types/session" import Kbd from "./kbd" -import HintRow from "./hint-row" import { getActiveInstance } from "../stores/instances" import { agents, getSessionDraftPrompt, setSessionDraftPrompt, clearSessionDraftPrompt } from "../stores/sessions" import { showAlertDialog } from "../stores/alerts" @@ -777,6 +776,7 @@ export default function PromptInput(props: PromptInputProps) { } const shellHint = () => (mode() === "shell" ? { key: "Esc", text: "to exit shell mode" } : { key: "!", text: "for shell mode" }) + const shouldShowOverlay = () => prompt().length === 0 const instance = () => getActiveInstance() @@ -884,28 +884,62 @@ export default function PromptInput(props: PromptInputProps) { -