feat(agent): render local interactive answers and fold completed process

This commit is contained in:
2026-10-12 18:54:18 +08:00
parent e0eb6a721e
commit 2c5bf15cce
30 changed files with 1610 additions and 75 deletions
+19
View File
@@ -1808,3 +1808,22 @@ details[open] > summary > .disclosure-accordion-indicator {
border-radius: 8px 0 0 0 !important;
color: #475569 !important;
}
/* Keep the conversation composer readable in resizable chat panels. */
.agent-panel-shell form.agent-panel-control textarea,
.agent-panel-overlay form.agent-panel-control textarea {
min-height: 96px;
max-height: clamp(96px, 24dvh, 192px);
padding: 12px;
}
/* Locally registered answer components adapt to the resizable chat panel. */
.answer-ui-root { container-type: inline-size; min-width: 0; overflow-wrap: anywhere; }
.answer-ui-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.answer-ui-stack-compact { gap: 8px; }
.answer-ui-section { min-width: 0; padding-top: 12px; border-top: 1px solid var(--surface-divider); }
.answer-ui-evidence { border-top: 1px solid var(--surface-divider); }
.answer-ui-form { padding: 12px; border: 1px solid var(--surface-divider); border-radius: 12px; background: var(--surface-subtle); }
@container (min-width: 440px) {
.answer-ui-stack-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}