fix: harden reviewer workflow and memory handling
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
import type { WidgetProps } from "./types";
|
||||
import { ReservedControls } from "./ReservedControls";
|
||||
|
||||
@@ -56,7 +58,24 @@ export function MultiselectWidget({ descriptor, onRespond }: WidgetProps) {
|
||||
checked={checked.has(o.id)}
|
||||
onChange={() => toggle(o.id)}
|
||||
/>
|
||||
<span>{o.label}</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className="block font-medium">{o.label}</span>
|
||||
{o.detail && (
|
||||
<div className="thot-prose mt-1 text-sm text-muted-foreground">
|
||||
<ReactMarkdown remarkPlugins={[remarkGfm]}>{o.detail}</ReactMarkdown>
|
||||
</div>
|
||||
)}
|
||||
{o.rationale && (
|
||||
<span className="mt-1 block text-xs text-foreground/80">
|
||||
Motivo: {o.rationale}
|
||||
</span>
|
||||
)}
|
||||
{typeof o.meta?.question_context === "string" && o.meta.question_context && (
|
||||
<span className="mt-1 block text-xs text-muted-foreground">
|
||||
Domanda di contesto: {o.meta.question_context}
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user