Skip to content

Commit 6d71747

Browse files
committed
tweak prompts, don't allow clicking again
1 parent f1c8be1 commit 6d71747

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cli/src/components/tools/suggest-followups.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ const FollowupCard = ({
2929
const [isHovered, setIsHovered] = useState(false)
3030

3131
const handleClick = useCallback(() => {
32+
// Don't allow clicking already-selected followups
33+
if (isClicked) return
3234
onSendFollowup(followup.prompt, index)
33-
}, [followup.prompt, index, onSendFollowup])
35+
}, [followup.prompt, index, onSendFollowup, isClicked])
3436

3537
const handleMouseOver = useCallback(() => setIsHovered(true), [])
3638
const handleMouseOut = useCallback(() => setIsHovered(false), [])

common/src/tools/params/tool/suggest-followups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Use this tool after completing a task to suggest what the user might want to do
5050
5151
Don't include suggestions like:
5252
- "Commit these changes"
53-
- "Test the changes" without saying how you would test the changes (unit test, script, or something else?)
53+
- "Test x" without saying how you would test the changes (unit test, script, or something else?). Remember, this is a prompt for the assistant to do. Don't suggest manual testing that the user would have to do.
5454
5555
Aim for around 3 suggestions. The suggestions persist and remain clickable, with clicked ones visually updated to show they were used.
5656

0 commit comments

Comments
 (0)