simple prompt addition to have goose reflect on start (#1059)

This commit is contained in:
Michael Neale
2025-02-06 14:51:16 +11:00
committed by GitHub
parent 691a065a26
commit ec0e87f0c5

View File

@@ -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);
@@ -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} />