fix: keep teacher runtime prompts within interface boundary

This commit is contained in:
鲨鱼辣椒
2026-09-28 14:38:58 +08:00
parent 998796d77c
commit 54a40d2636
12 changed files with 313 additions and 32 deletions

View File

@@ -386,6 +386,7 @@ export function TeacherChatPanel({
{request.intent !== 'suggestions' && request.status === 'completed' && Boolean(request.suggestedQuestions?.length) && <div className="consultation-follow-ups" aria-label="接着聊">
{request.suggestedQuestions?.map((question, index) => <button type="button" key={`${request.id}:${index}`} disabled={helpUnavailable} onClick={() => void send({ text: question })} className="consultation-follow-up"><span className="min-w-0 flex-1">{question}</span><ChevronRight className="h-4 w-4 shrink-0 opacity-70" aria-hidden="true" /></button>)}
</div>}
{request.replyParseError && <p role="status" className="text-xs text-destructive">{request.replyParseError}</p>}
{request.unparsedResponse && <details className="min-w-0 text-xs text-muted-foreground">
<summary className="cursor-pointer">查看收到的原始内容</summary>
<pre className="mt-2 max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-lg border p-3">{request.unparsedResponse}</pre>