Thinking disappeared on failure and never reached session storage. Keep the sanitized chain on disk and on errors, and regroup the sidebar around reports, charts, favorites, and dated history titles. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
642 B
TypeScript
29 lines
642 B
TypeScript
"use client";
|
|
|
|
export function ConversationFollowUps({
|
|
questions,
|
|
disabled = false,
|
|
onSelect,
|
|
}: Readonly<{
|
|
questions: readonly string[];
|
|
disabled?: boolean;
|
|
onSelect: (question: string) => void;
|
|
}>) {
|
|
if (questions.length === 0) return null;
|
|
return (
|
|
<div className="conversation-follow-ups" aria-label="可以继续问">
|
|
{questions.map((question) => (
|
|
<button
|
|
key={question}
|
|
className="conversation-follow-up"
|
|
type="button"
|
|
disabled={disabled}
|
|
onClick={() => onSelect(question)}
|
|
>
|
|
{question}
|
|
</button>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|