summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-04-26 19:31:41 -0700
committerN. Taylor Mullen <[email protected]>2025-04-26 19:32:56 -0700
commit688b2d0da7f59421312e132461b33c8c593698a0 (patch)
tree4be08e5c0dcb9b2e73c792a746db517056cdfd15 /packages/cli/src/ui/components
parent5be89befeff9c4d4f3ab9f508f030bc153fdd06b (diff)
Follow up fixes from flickering PR.
- The push for these changes didn't make it through.... Just doing a quick fix here which should have been in: https://github.com/google-gemini/gemini-code/pull/181
Diffstat (limited to 'packages/cli/src/ui/components')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.tsx6
-rw-r--r--packages/cli/src/ui/components/messages/UserMessage.tsx2
2 files changed, 2 insertions, 6 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx
index 153b4701..40956647 100644
--- a/packages/cli/src/ui/components/InputPrompt.tsx
+++ b/packages/cli/src/ui/components/InputPrompt.tsx
@@ -14,11 +14,7 @@ interface InputPromptProps {
}
export const InputPrompt: React.FC<InputPromptProps> = ({ onSubmit }) => {
- const [value, setValue] = React.useState(
- "I'd like to update my web fetch tool to be a little smarter about the content it fetches from web pages. Instead of returning the entire HTML to the LLM I was extract the body text and other important information to reduce the amount of tokens we need to use.",
- );
- // const [value, setValue] = React.useState('Add "Hello World" to the top of README.md');
- // const [value, setValue] = React.useState('show me "Hello World" in as many langauges as you can think of');
+ const [value, setValue] = React.useState('');
const { isFocused } = useFocus({ autoFocus: true });
diff --git a/packages/cli/src/ui/components/messages/UserMessage.tsx b/packages/cli/src/ui/components/messages/UserMessage.tsx
index a83ffea7..b73fb200 100644
--- a/packages/cli/src/ui/components/messages/UserMessage.tsx
+++ b/packages/cli/src/ui/components/messages/UserMessage.tsx
@@ -17,7 +17,7 @@ export const UserMessage: React.FC<UserMessageProps> = ({ text }) => {
const prefixWidth = prefix.length;
return (
- <Box flexDirection="row">
+ <Box flexDirection="row" marginY={1}>
<Box width={prefixWidth}>
<Text color={Colors.Gray}>{prefix}</Text>
</Box>