{/* Keep identical line breaks before and after the idle highlighter finishes. */}
{searchQuery ? highlightSearchText(source, searchQuery) : tokens ? : source}
{highlightReactChildren(children, searchQuery)}
, li: ({ children, ...props }) =>{highlightReactChildren(children, searchQuery)}, code: ({ children, className, ...props }) => (
{className ? children : highlightReactChildren(children, searchQuery)}
),
};
}, [searchQuery]);
return (
{block.resource.text}
>
) : (
{pair.left?.text ? : " "}
{pair.right?.text ? : " "}
{line.text ? : " "}
{line.text ? : " "}
{reply.answer}
{item.kind === "driver" ? `会话控制:${item.driver === "desktop" ? "电脑端" : item.driver === "remote" ? "远程端" : "空闲"}` : item.stopReason === "cancelled" ? "本轮已停止" : item.stopReason === "error" ? "本轮执行失败" : item.stopReason === "max_tokens" ? "达到输出上限,回复被截断" : item.stopReason === "max_turn_requests" ? "达到本轮请求次数上限" : item.stopReason === "refusal" ? "Agent 拒绝了这个请求" : item.stopReason === "unknown" ? "本轮已结束,Agent 未提供明确原因" : "本轮结束"}
); if (item.kind === "user" && item.agentMessages?.length) return ({userEventLabel(said.event)}
); if (said?.shell || said?.output !== undefined) { // A command run from the prompt (`!`), or what a local slash command printed: the // person's, so on their side, in the terminal's type. const output = said.shell ? [said.shell.stdout, said.shell.stderr].filter(Boolean).join("\n") : said.output; return (
!
)}
{output && }
{live &&
${output && ( <>
> )} {ended && {ended}}
{item.status === "in_progress" &&
) : (
} > ) : exploring ? (
) : ( <> {item.output && ( <>
>
)}
{item.content.map((content, index) =>
content.type === "content" ? (