feat(asset-ai): add contextual analysis and unmet-demand feedback

This commit is contained in:
shishengliang
2026-09-23 16:01:10 +08:00
parent 0a32392215
commit 7e9760f5db
23 changed files with 5160 additions and 835 deletions
@@ -23,7 +23,7 @@ export function ThinkingState({
const timer = window.setInterval(update, 100);
return () => window.clearInterval(timer);
}, [working, started]);
const expanded = manualExpanded ?? working;
const expanded = manualExpanded ?? false;
return (
<div className="aq-thinking">
<button
@@ -33,7 +33,11 @@ export function ThinkingState({
>
<Sparkles size={15} aria-hidden="true" />
<span className={working ? "aq-shimmer" : ""}>
{working ? "正在分析" : failed ? "查询已停止" : "分析完成"}
{working
? steps.at(-1) || "正在分析"
: failed
? "本次未完成"
: "分析完成"}
</span>
<span className="aq-time">{elapsed.toFixed(1)}s</span>
<ChevronDown
@@ -53,7 +57,7 @@ export function ThinkingState({
<div className="aq-trace-clip">
<ol className="aq-trace">
{steps.map((step, index) => (
<li key={step}>
<li key={`${index}-${step}`}>
{working && index === steps.length - 1 ? (
<LoaderCircle
className="aq-spin"