Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(assistant-ui): correct reasoning panel scroll comment

Steven Enamakele265feb0fe22
diff --git a/app/src/components/assistant-ui/elements/reasoning-panel.tsx b/app/src/components/assistant-ui/elements/reasoning-panel.tsx
index 29b2b326bf..9313ec8fb8 100644
--- a/app/src/components/assistant-ui/elements/reasoning-panel.tsx
+++ b/app/src/components/assistant-ui/elements/reasoning-panel.tsx
@@ -15,8 +15,8 @@
* reads best, Codex style) and localizes it.
* - Step bodies render through the registry's own `MarkdownText` (via
* assistant-ui's `TextMessagePartProvider`) instead of a plain `<p>`.
- * - A streaming list stays pinned to its newest step inside a bounded
- * scroll region (the runtime element's `ReasoningText` behaviour).
+ * - Automatic following belongs to the enclosing assistant-ui viewport; this
+ * panel never writes scroll offsets.
*/
import { cn } from '@/components/assistant-ui/lib/utils';
import { MarkdownText } from '@/components/assistant-ui/markdown-text';
diff --git a/app/test/e2e/specs/ui-polish.browser.mjs b/app/test/e2e/specs/ui-polish.browser.mjs
index 1ee3938808..bbd88263c6 100644
--- a/app/test/e2e/specs/ui-polish.browser.mjs
+++ b/app/test/e2e/specs/ui-polish.browser.mjs
@@ -72,6 +72,8 @@ export default async function uiPolish({ page, mock, screenshot, log }) {
await page.waitForFunction(
() => document.querySelector('[data-testid="todo-checklist"]')?.dataset.state === 'done'
);
+ await ui.testId('sidebar-nav-separator').waitFor({state: 'visible'});
+ assert.equal(await ui.slot('aui_thread-list-search').count(), 0);
const geometry = await page.evaluate(() => {
const card = document.querySelector('[data-testid="todo-checklist"]');
const content = card.closest('[data-slot="aui_assistant-message-content"]');
@@ -84,11 +86,15 @@ export default async function uiPolish({ page, mock, screenshot, log }) {
maxWidth: getComputedStyle(card).maxWidth,
inComposer: !!card.closest('form'),
state: card.dataset.state,
+ blur: getComputedStyle(card).backdropFilter,
+ opacity: getComputedStyle(card).opacity,
};
});
assert.equal(geometry.maxWidth, 'none');
assert.equal(geometry.inComposer, false);
assert.equal(geometry.state, 'done');
+ assert.equal(geometry.blur, 'none');
+ assert.equal(geometry.opacity, '1');
assert.ok(Math.abs(geometry.cardWidth - geometry.contentWidth) < 2);
await page.evaluate(() => {
window.__historyRoots = [...document.querySelectorAll('[data-role]')];
@@ -170,6 +176,6 @@ export default async function uiPolish({ page, mock, screenshot, log }) {
assert.equal(messages[3].second, true);
await screenshot('next-turn-stable');
log(
- 'PASS: real assistant-ui send/stream/settle preserves message order, DOM identity, completed-plan attachment, widths and running loader'
+ 'PASS: real assistant-ui send/stream/settle preserves message order, DOM identity, completed-plan attachment, widths, typing scroll stability, sidebar divider and running loader'
);
}