Skip to content

Commit

Permalink
simple prompt addition to have goose reflect on start (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale authored Feb 6, 2025
1 parent 691a065 commit ec0e87f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/desktop/src/components/SplashPills.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function SplashPill({ content, append, className = '' }) {
function SplashPill({ content, append, className = '', longForm = '' }) {
return (
<div
className={`px-4 py-2 text-sm text-center text-textSubtle dark:text-textStandard cursor-pointer border border-borderSubtle hover:bg-bgSubtle rounded-full transition-all duration-150 ${className}`}
onClick={async () => {
const message = {
content,
content: longForm || content,
role: 'user',
};
await append(message);
Expand All @@ -24,6 +24,7 @@ export default function SplashPills({ append }) {
content="What can you do?"
append={append}
className="bg-black dark:bg-white dark:hover:bg-gray-200 text-white dark:!text-black border-none hover:bg-slate"
longForm="Look around the users system, work out what capablities/apps there are there, what tools, and what sort user they are and suggest 3 serious and 3 fun tasks based on what you find that are likely to work (present fun markdown)."
/>
<SplashPill content="Demo writing and reading files" append={append} />
<SplashPill content="Make a snake game in a new folder" append={append} />
Expand Down

0 comments on commit ec0e87f

Please sign in to comment.