diff --git a/src/ui/components/chat-input.tsx b/src/ui/components/chat-input.tsx
index 62d8c33..5e7d5a5 100644
--- a/src/ui/components/chat-input.tsx
+++ b/src/ui/components/chat-input.tsx
@@ -7,7 +7,11 @@ interface ChatInputProps {
isStreaming: boolean;
}
-export function ChatInput({ input, isProcessing, isStreaming }: ChatInputProps) {
+export function ChatInput({
+ input,
+ isProcessing,
+ isStreaming,
+}: ChatInputProps) {
return (
❯
@@ -17,4 +21,4 @@ export function ChatInput({ input, isProcessing, isStreaming }: ChatInputProps)
);
-}
\ No newline at end of file
+}
diff --git a/src/ui/components/chat-interface.tsx b/src/ui/components/chat-interface.tsx
index d150c95..52ee3c5 100644
--- a/src/ui/components/chat-interface.tsx
+++ b/src/ui/components/chat-interface.tsx
@@ -58,7 +58,12 @@ function ChatInterfaceWithAgent({ agent }: { agent: GrokAgent }) {
useEffect(() => {
console.clear();
- cfonts.say("GROK", {
+
+ // Add top padding
+ console.log(" ");
+
+ // Generate logo with margin to match Ink paddingX={2}
+ const logoOutput = cfonts.render("GROK", {
font: "3d",
align: "left",
colors: ["magenta", "gray"],
@@ -70,15 +75,17 @@ function ChatInterfaceWithAgent({ agent }: { agent: GrokAgent }) {
env: "node",
});
- console.log("Tips for getting started:");
- console.log("1. Ask questions, edit files, or run commands.");
- console.log("2. Be specific for the best results.");
- console.log(
- "3. Create GROK.md files to customize your interactions with Grok."
- );
- console.log("4. Press Shift+Tab to toggle auto-edit mode.");
- console.log("5. /help for more information.");
- console.log("");
+ // Add horizontal margin (2 spaces) to match Ink paddingX={2}
+ const logoLines = (logoOutput as any).string.split("\n");
+ logoLines.forEach((line: string) => {
+ if (line.trim()) {
+ console.log(" " + line); // Add 2 spaces for horizontal margin
+ } else {
+ console.log(line); // Keep empty lines as-is
+ }
+ });
+
+ console.log(" "); // Spacing after logo
setChatHistory([]);
}, []);
@@ -135,7 +142,29 @@ function ChatInterfaceWithAgent({ agent }: { agent: GrokAgent }) {
};
return (
-
+
+ {/* Show tips only when no chat history and no confirmation dialog */}
+ {chatHistory.length === 0 && !confirmationOptions && (
+
+
+ Tips for getting started:
+
+
+
+ 1. Ask questions, edit files, or run commands.
+
+ 2. Be specific for the best results.
+
+ 3. Create GROK.md files to customize your interactions with Grok.
+
+
+ 4. Press Shift+Tab to toggle auto-edit mode.
+
+ 5. /help for more information.
+
+
+ )}
+
Type your request in natural language. Type 'exit' or Ctrl+C to quit.
@@ -175,7 +204,7 @@ function ChatInterfaceWithAgent({ agent }: { agent: GrokAgent }) {
isStreaming={isStreaming}
/>
-
+
{autoEditEnabled ? "▶" : "⏸"} auto-edit:{" "}
{autoEditEnabled ? "on" : "off"}