Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Scroll agent threads with MessageScroller (#3090)

sarah36c412e60c00
diff --git a/.changeset/acp-thread-message-scroller.md b/.changeset/acp-thread-message-scroller.md
new file mode 100644
index 000000000..6c9d21adb
--- /dev/null
+++ b/.changeset/acp-thread-message-scroller.md
@@ -0,0 +1,13 @@
+---
+'@inkeep/open-knowledge': patch
+---
+
+Agent chat threads now scroll like a real chat client. The transcript keeps itself pinned to the newest output while an agent is streaming, but the moment you scroll up to read something it stops fighting you — and a button appears to jump back to the live edge when you're ready.
+
+| Before | After |
+| --- | --- |
+| Scrolling up mid-stream was undone by the next chunk snapping you back to the bottom | Scrolling up holds; new output no longer yanks the view |
+| No way back to the latest message except scrolling by hand | A jump-to-bottom button returns you to the live edge |
+| Reopening a past thread dropped you at the very bottom | Reopening lands you at the last turn, with the previous message in view |
+
+Sending a message still brings you straight to the bottom so you see your prompt and the reply. Long threads with many tool calls also render more cheaply, since off-screen rows are no longer laid out until they scroll into view.
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index f01c14863..3ef0dcdd7 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -1966,6 +1966,11 @@ Homepage: https://github.com/Sec-ant/readable-stream
Copyright (c) 2022 Ze-Zheng Wu
+### `@shadcn/[email protected]`
+Homepage: https://ui.shadcn.com
+
+Copyright (c) 2023 shadcn
+
### `@simple-git/[email protected]`
Homepage: https://github.com/steveukx/git-js
diff --git a/packages/app/package.json b/packages/app/package.json
index d939628cc..0053477db 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -97,8 +97,6 @@
"@lezer/markdown": "^1.6.3",
"@lingui/core": "^6.0.1",
"@lingui/react": "^6.0.1",
- "@visimer/core": "^0.1.0",
- "@visimer/dom": "^0.1.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.204.0",
"@opentelemetry/instrumentation": "^0.204.0",
@@ -110,6 +108,7 @@
"@opentelemetry/semantic-conventions": "^1.30.0",
"@panzoom/panzoom": "^4.6.2",
"@pierre/trees": "1.0.0-beta.4",
+ "@shadcn/react": "^0.2.1",
"@tanstack/react-query": "^5.99.0",
"@tiptap/core": "^3.22.3",
"@tiptap/extension-collaboration": "^3.22.3",
@@ -123,6 +122,8 @@
"@tiptap/y-tiptap": "3.0.3",
"@u-wave/react-vimeo": "^0.9.12",
"@uiw/codemirror-theme-basic": "^4.25.9",
+ "@visimer/core": "^0.1.0",
+ "@visimer/dom": "^0.1.0",
"@xterm/addon-fit": "0.11.0",
"@xterm/addon-unicode11": "0.9.0",
"@xterm/addon-web-links": "0.12.0",
diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsx
index db71e2d2d..9dd205d2b 100644
--- a/packages/app/src/components/acp/ThreadView.tsx
+++ b/packages/app/src/components/acp/ThreadView.tsx
@@ -38,7 +38,6 @@ import {
type RefObject,
useEffect,
useId,
- useLayoutEffect,
useRef,
useState,
} from 'react';
@@ -69,6 +68,15 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
+import {
+ MessageScroller,
+ MessageScrollerButton,
+ MessageScrollerContent,
+ MessageScrollerItem,
+ MessageScrollerProvider,
+ MessageScrollerViewport,
+ useMessageScroller,
+} from '@/components/ui/message-scroller';
import { Skeleton } from '@/components/ui/skeleton';
import { Switch } from '@/components/ui/switch';
import { Textarea } from '@/components/ui/textarea';
@@ -104,6 +112,7 @@ import { AgentMarkdown } from './AgentMarkdown';
import { latestFollowTarget, loadFollowFilePref, saveFollowFilePref } from './follow-file';
import { appendPresenceWrite, latestAgentWrite, type PresenceWrite } from './presence-follow';
import { RegisteredAgentIcon } from './RegisteredAgentIcon';
+import { transcriptItemId } from './transcript-item-id';
/**
* Stop sends ACP `session/cancel` — a courtesy the agent may ignore while it
@@ -147,8 +156,9 @@ export function ThreadView({ info }: { info: ThreadInfo }): ReactNode {
// the draft, so the batch never silently rides a second message.
const [attachedComments, setAttachedComments] = useState<CommentBatchItem[] | null>(null);
const [followFile, setFollowFile] = useState(loadFollowFilePref);
- const scrollRef = useRef<HTMLDivElement>(null);
- const atBottomRef = useRef(true);
+ // Captured by ScrollToEndBridge (a child of the scroller Provider) so send/
+ // resume can imperatively jump to the live edge; null until the bridge mounts.
+ const scrollApiRef = useRef<ReturnType<typeof useMessageScroller> | null>(null);
// Follow-the-file bookkeeping: `initialSeqRef` marks the event log position
// at mount so a replayed history (reload, tab switch) never yanks the
// editor around — only events that arrive live do. `lastFollowedRef`
@@ -282,23 +292,6 @@ export function ThreadView({ info }: { info: ThreadInfo }): ReactNode {
}
};
- // Keep the transcript pinned to the bottom while the user hasn't scrolled up.
- // `lastSeq` is the trigger (a new event landed), not a value read in the body,
- // so it reads as an "unnecessary" dep to the analyzer — but dropping it makes
- // auto-scroll stop firing on new output.
- // biome-ignore lint/correctness/useExhaustiveDependencies: lastSeq is the render trigger for the scroll, not a body dependency
- useLayoutEffect(() => {
- const el = scrollRef.current;
- if (el === null || !atBottomRef.current) return;
- el.scrollTop = el.scrollHeight;
- }, [state?.lastSeq]);
-
- const onScroll = (): void => {
- const el = scrollRef.current;
- if (el === null) return;
- atBottomRef.current = el.scrollHeight - el.scrollTop - el.clientHeight < 40;
- };
-
// The last resume-carried message that failed — the "new thread" fallback
// re-sends it there. Kept out of the draft: the server's optimistic echo
// already shows it in the transcript, so putting it back in the composer
@@ -336,13 +329,14 @@ export function ThreadView({ info }: { info: ThreadInfo }): ReactNode {
.finally(() => setResumePending(false));
setDraft('');
setAttachedComments(null);
- atBottomRef.current = true;
+ // Sending re-engages the live edge even if the reader had scrolled up.
+ scrollApiRef.current?.scrollToEnd();
return;
}
client.prompt(info.threadId, text);
setDraft('');
setAttachedComments(null);
- atBottomRef.current = true;
+ scrollApiRef.current?.scrollToEnd();
};
const startFreshThread = (): void => {
@@ -374,63 +368,95 @@ export function ThreadView({ info }: { info: ThreadInfo }): ReactNode {
>
<ThreadHeader info={info} followFile={followFile} onToggleFollow={toggleFollow} />
{model !== null && model.plan.length > 0 ? <PlanChecklist plan={model.plan} /> : null}
- <div
- ref={scrollRef}
- onScroll={onScroll}
- className="min-h-0 flex-1 overflow-y-auto px-3 py-2 subtle-scrollbar scroll-fade-mask"
- data-testid="agent-thread-transcript"
- >
- {model === null || model.items.length === 0 ? (
+ {model === null || model.items.length === 0 ? (
+ // No messages yet: the empty state centers itself via `h-full`, which needs
+ // a plain definite-height block host. The scroller's managed flex layout
+ // won't provide one, so only real transcripts go through the scroller.
+ <div
+ className="min-h-0 flex-1 overflow-y-auto px-3 py-2 subtle-scrollbar scroll-fade-mask"
+ data-testid="agent-thread-transcript"
+ >
<ThreadEmptyState status={status} archived={archived} agent={info.agent} />
- ) : (
- <div className="flex flex-col gap-2 [&>[data-tool-call]+[data-tool-call]]:-mt-1">
- {model.items.map((item, index) => (
- <ThreadItem
- // biome-ignore lint/suspicious/noArrayIndexKey: transcript is append-only; index is stable
- key={index}
- item={item}
- threadId={info.threadId}
- // Thread liveness, not turn liveness: the server keeps an
- // unanswered request answerable until its timeout even after
- // the prompt settles (and some agents ask outside a turn) —
- // only a dead thread makes answering impossible.
- actionable={!archived && status !== 'exited' && status !== 'error'}
- terminals={model.terminals}
- permissionsByToolCall={model.permissionsByToolCall}
- />
- ))}
- {turnActive ? (
- status === 'awaiting_permission' ? (
- <div
- className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
- data-testid="agent-thread-awaiting-permission"
- >
- <span>{t`Waiting for your approval`}</span>
- </div>
- ) : (
- <div
- className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
- data-testid="agent-thread-working"
- >
- <Loader2 className="size-3.5 animate-spin" aria-hidden="true" />
- <span>{t`Working…`}</span>
- </div>
- )
- ) : status === 'installing' || status === 'spawning' ? (
- // A resume respawning its agent: the optimistic message echo is
- // already in the transcript above — show that the agent is on
- // its way rather than a silent gap until the turn opens.
- <div
- className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
- data-testid="agent-thread-starting"
- >
- <Loader2 className="size-3.5 animate-spin" aria-hidden="true" />
- <span>{t`Starting the agent…`}</span>
- </div>
- ) : null}
- </div>
- )}
- </div>
+ </div>
+ ) : (
+ // autoScroll = stick-to-bottom that yields to reader intent; last-anchor
+ // reopens archived/resumed threads at the final turn. The bridge lifts the
+ // scroller's imperative API up so send/resume can jump to the live edge.
+ <MessageScrollerProvider autoScroll defaultScrollPosition="last-anchor">
+ <ScrollToEndBridge apiRef={scrollApiRef} />
+ <MessageScroller className="min-h-0 flex-1">
+ <MessageScrollerViewport
+ // Overrides the primitive's hardcoded "Messages" — this focusable
+ // region is one agent's transcript, and its name must translate.
+ aria-label={t`Agent transcript`}
+ className="px-3 py-2 subtle-scrollbar scroll-fade-mask"
+ data-testid="agent-thread-transcript"
+ >
+ <MessageScrollerContent className="gap-2 [&>[data-tool-call]+[data-tool-call]]:-mt-1">
+ {model.items.map((item, index) => {
+ const id = transcriptItemId(item, index);
+ return (
+ <MessageScrollerItem
+ key={id}
+ messageId={id}
+ // Each item hosts its own flex column so per-message alignment
+ // (the user bubble's ml-auto hug-and-right) survives the wrapper
+ // the scroller requires for anchoring/measurement.
+ className="flex flex-col"
+ // A new user turn is the anchor the scroller peeks above.
+ scrollAnchor={item.kind === 'message' && item.role === 'user'}
+ // Re-hosts the adjacent-tool-call spacing selector on the wrapper.
+ data-tool-call={item.kind === 'tool_call' ? '' : undefined}
+ >
+ <ThreadItem
+ item={item}
+ threadId={info.threadId}
+ // Thread liveness, not turn liveness: the server keeps an
+ // unanswered request answerable until its timeout even after
+ // the prompt settles (and some agents ask outside a turn) —
+ // only a dead thread makes answering impossible.
+ actionable={!archived && status !== 'exited' && status !== 'error'}
+ terminals={model.terminals}
+ permissionsByToolCall={model.permissionsByToolCall}
+ />
+ </MessageScrollerItem>
+ );
+ })}
+ {turnActive ? (
+ status === 'awaiting_permission' ? (
+ <div
+ className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
+ data-testid="agent-thread-awaiting-permission"
+ >
+ <span>{t`Waiting for your approval`}</span>
+ </div>
+ ) : (
+ <div
+ className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
+ data-testid="agent-thread-working"
+ >
+ <Loader2 className="size-3.5 animate-spin" aria-hidden="true" />
+ <span>{t`Working…`}</span>
+ </div>
+ )
+ ) : status === 'installing' || status === 'spawning' ? (
+ // A resume respawning its agent: the optimistic message echo is
+ // already in the transcript above — show that the agent is on
+ // its way rather than a silent gap until the turn opens.
+ <div
+ className="flex items-center gap-2 px-1 py-1 text-muted-foreground text-sm shimmer"
+ data-testid="agent-thread-starting"
+ >
+ <Loader2 className="size-3.5 animate-spin" aria-hidden="true" />
+ <span>{t`Starting the agent…`}</span>
+ </div>
+ ) : null}
+ </MessageScrollerContent>
+ </MessageScrollerViewport>
+ <MessageScrollerButton direction="end" />
+ </MessageScroller>
+ </MessageScrollerProvider>
+ )}
{cancelStalled && turnActive ? (
<div
className="flex items-center gap-2 border-amber-500/30 border-t bg-amber-500/5 px-3 py-1.5 text-amber-700 text-xs dark:text-amber-400"
@@ -989,6 +1015,24 @@ function PlanChecklist({ plan }: { plan: { content: string; status?: string }[]
);
}
+// The scroller's imperative API only exists inside its Provider; this bridge
+// publishes it to a parent-owned ref so send/resume handlers (which live above
+// the Provider) can call scrollToEnd.
+function ScrollToEndBridge({
+ apiRef,
+}: {
+ apiRef: RefObject<ReturnType<typeof useMessageScroller> | null>;
+}): null {
+ const api = useMessageScroller();
+ useEffect(() => {
+ apiRef.current = api;
+ return () => {
+ apiRef.current = null;
+ };
+ }, [api, apiRef]);
+ return null;
+}
+
function ThreadItem({
item,
threadId,
diff --git a/packages/app/src/components/acp/transcript-item-id.test.ts b/packages/app/src/components/acp/transcript-item-id.test.ts
new file mode 100644
index 000000000..73682df6f
--- /dev/null
+++ b/packages/app/src/components/acp/transcript-item-id.test.ts
@@ -0,0 +1,35 @@
+import { describe, expect, it } from 'vitest';
+import type { RenderedItem } from '@/lib/acp/thread-event-model';
+import { transcriptItemId } from './transcript-item-id';
+
+// transcriptItemId only reads `kind` and the id field, so fixtures stay minimal.
+const msg = (messageId: string, role: 'user' | 'agent' | 'thought' = 'agent'): RenderedItem =>
+ ({ kind: 'message', role, text: '', messageId }) as RenderedItem;
+const tool = (toolCallId: string): RenderedItem =>
+ ({ kind: 'tool_call', toolCallId }) as RenderedItem;
+const notice = (): RenderedItem => ({ kind: 'notice', text: '', tone: 'info' }) as RenderedItem;
+
+describe('transcriptItemId', () => {
+ it('is unique across sibling messages that share the default messageId', () => {
+ // The ordinary turn: a thought chunk then an agent chunk, both arriving with
+ // no adapter messageId, so both key to 'default'.
+ const items = [msg('default', 'thought'), msg('default', 'agent')];
+ expect(new Set(items.map(transcriptItemId)).size).toBe(items.length);
+ });
+
+ it('is unique across a mixed append-only transcript', () => {
+ const items: RenderedItem[] = [
+ msg('default', 'user'),
+ msg('default', 'agent'),
+ tool('call-1'),
+ msg('default', 'agent'),
+ notice(),
+ notice(),
+ ];
+ expect(new Set(items.map(transcriptItemId)).size).toBe(items.length);
+ });
+
+ it('is stable for a coalesced message re-rendered at the same index', () => {
+ expect(transcriptItemId(msg('default'), 3)).toBe(transcriptItemId(msg('default'), 3));
+ });
+});
diff --git a/packages/app/src/components/acp/transcript-item-id.ts b/packages/app/src/components/acp/transcript-item-id.ts
new file mode 100644
index 000000000..d9c755afb
--- /dev/null
+++ b/packages/app/src/components/acp/transcript-item-id.ts
@@ -0,0 +1,23 @@
+import type { RenderedItem } from '@/lib/acp/thread-event-model';
+
+// Stable, unique per-item id for the scroller's anchoring/measurement (its
+// messageId prop) and the React key. Tool calls, permissions and consents carry
+// a unique domain id. A message's `messageId` is NOT unique — adapters that send
+// none all key to 'default', and a fresh block starts whenever anything
+// interrupts the tail — and notices have none at all, so both fold in the index.
+// The index is stable because the transcript is append-only and coalescing
+// rewrites an item in place at the same position.
+export function transcriptItemId(item: RenderedItem, index: number): string {
+ switch (item.kind) {
+ case 'message':
+ return `msg:${index}:${item.messageId}`;
+ case 'tool_call':
+ return `tool:${item.toolCallId}`;
+ case 'permission':
+ return `perm:${item.requestId}`;
+ case 'runtime_consent':
+ return `consent:${item.requestId}`;
+ case 'notice':
+ return `notice:${index}`;
+ }
+}
diff --git a/packages/app/src/components/ui/message-scroller.tsx b/packages/app/src/components/ui/message-scroller.tsx
new file mode 100644
index 000000000..883dc5bcf
--- /dev/null
+++ b/packages/app/src/components/ui/message-scroller.tsx
@@ -0,0 +1,131 @@
+import { Trans } from '@lingui/react/macro';
+import {
+ MessageScroller as MessageScrollerPrimitive,
+ useMessageScroller,
+ useMessageScrollerScrollable,
+ useMessageScrollerVisibility,
+} from '@shadcn/react/message-scroller';
+import { ArrowDownIcon } from 'lucide-react';
+import type * as React from 'react';
+import { Button } from '@/components/ui/button';
+import { cn } from '@/lib/utils';
+
+function MessageScrollerProvider(
+ props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>,
+) {
+ return <MessageScrollerPrimitive.Provider {...props} />;
+}
+
+function MessageScroller({
+ className,
+ ...props
+}: React.ComponentProps<typeof MessageScrollerPrimitive.Root>) {
+ return (
+ <MessageScrollerPrimitive.Root
+ data-slot="message-scroller"
+ className={cn(
+ 'group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+function MessageScrollerViewport({
+ className,
+ ...props
+}: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>) {
+ return (
+ <MessageScrollerPrimitive.Viewport
+ data-slot="message-scroller-viewport"
+ className={cn(
+ // `scroll-fade-b` and `scrollbar-gutter-stable` from the upstream registry
+ // resolve to nothing in this app (their CSS layer wasn't copied); the fade
+ // comes from `scroll-fade-mask` passed at the call site.
+ 'size-full min-h-0 min-w-0 scrollbar-thin overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+function MessageScrollerContent({
+ className,
+ ...props
+}: React.ComponentProps<typeof MessageScrollerPrimitive.Content>) {
+ return (
+ <MessageScrollerPrimitive.Content
+ data-slot="message-scroller-content"
+ className={cn('flex h-max min-h-full flex-col gap-6', className)}
+ {...props}
+ />
+ );
+}
+
+function MessageScrollerItem({
+ className,
+ scrollAnchor = false,
+ ...props
+}: React.ComponentProps<typeof MessageScrollerPrimitive.Item>) {
+ return (
+ <MessageScrollerPrimitive.Item
+ data-slot="message-scroller-item"
+ scrollAnchor={scrollAnchor}
+ className={cn(
+ 'min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+function MessageScrollerButton({
+ direction = 'end',
+ className,
+ children,
+ render,
+ variant = 'secondary',
+ size = 'icon-sm',
+ ...props
+}: React.ComponentProps<typeof MessageScrollerPrimitive.Button> &
+ Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>) {
+ return (
+ <MessageScrollerPrimitive.Button
+ data-slot="message-scroller-button"
+ data-direction={direction}
+ data-variant={variant}
+ data-size={size}
+ direction={direction}
+ className={cn(
+ 'absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180',
+ className,
+ )}
+ render={render ?? <Button variant={variant} size={size} />}
+ {...props}
+ >
+ {children ?? (
+ <>
+ <ArrowDownIcon aria-hidden="true" />
+ <span className="sr-only">
+ {direction === 'end' ? <Trans>Scroll to end</Trans> : <Trans>Scroll to start</Trans>}
+ </span>
+ </>
+ )}
+ </MessageScrollerPrimitive.Button>
+ );
+}
+
+export {
+ MessageScroller,
+ MessageScrollerButton,
+ MessageScrollerContent,
+ MessageScrollerItem,
+ MessageScrollerProvider,
+ MessageScrollerViewport,
+ useMessageScroller,
+ useMessageScrollerScrollable,
+ useMessageScrollerVisibility,
+};
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index f3a40940e..0dab4a1f6 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -886,6 +886,7 @@
"EPGePE": ["Uploaded as \"", ["0"], "\" — the name \"", ["1"], "\" was taken."],
"EPKVES": ["Update \"", ["skillName"], "\" over your edits?"],
"EPwuTC": [["usedLabel"], " / ", ["sizeLabel"], " tokens used"],
+ "EQXPXf": ["Scroll to end"],
"ETyvvg": ["No language match."],
"EUiJEM": ["Occurrences of ", ["0"]],
"EWCJFu": ["Created ", ["target"]],
@@ -2232,6 +2233,7 @@
"axQ1h6": ["Anything you'd like to add? (optional)"],
"az8lvo": ["Off"],
"b18t0_": ["Close diff"],
+ "b1FDss": ["Scroll to start"],
"b24kPi": ["Queue"],
"b2ezG_": ["Kept both — \"", ["0"], "\" is its own skill now"],
"b3Thhd": ["Upload failed"],
@@ -3501,6 +3503,7 @@
"vHlhDc": ["Double-click to edit"],
"vIxrEk": ["Fit width"],
"vLyv1R": ["Hide"],
+ "vPEyDz": ["Agent transcript"],
"vPF04k": ["Start a new chat"],
"vPKX2i": ["In app (beta)"],
"vPXOUw": ["Toggle source view"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 933f71cd1..94a3d00e5 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -1251,6 +1251,10 @@ msgstr "Agent settings"
msgid "Agent Skills"
msgstr "Agent Skills"
+#: src/components/acp/ThreadView.tsx
+msgid "Agent transcript"
+msgstr "Agent transcript"
+
#: src/components/ExploreSkills.tsx
msgid "Agents"
msgstr "Agents"
@@ -9085,6 +9089,14 @@ msgstr "Scope: "
msgid "Screenshot"
msgstr "Screenshot"
+#: src/components/ui/message-scroller.tsx
+msgid "Scroll to end"
+msgstr "Scroll to end"
+
+#: src/components/ui/message-scroller.tsx
+msgid "Scroll to start"
+msgstr "Scroll to start"
+
#: src/components/CommandPalette.tsx
#: src/components/EditorHeader.tsx
#: src/components/settings/SettingsDialogShell.tsx
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index d7a458f65..4c40c9515 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -886,6 +886,7 @@
"EPGePE": ["Ũƥĺōàďēď àś \"", ["0"], "\" — ţĥē ńàḿē \"", ["1"], "\" ŵàś ţàķēń."],
"EPKVES": ["Ũƥďàţē \"", ["skillName"], "\" ōvēŕ ŷōũŕ ēďĩţś?"],
"EPwuTC": [["usedLabel"], " / ", ["sizeLabel"], " ţōķēńś ũśēď"],
+ "EQXPXf": ["Śćŕōĺĺ ţō ēńď"],
"ETyvvg": ["Ńō ĺàńĝũàĝē ḿàţćĥ."],
"EUiJEM": ["Ōććũŕŕēńćēś ōƒ ", ["0"]],
"EWCJFu": ["Ćŕēàţēď ", ["target"]],
@@ -2232,6 +2233,7 @@
"axQ1h6": ["Àńŷţĥĩńĝ ŷōũ'ď ĺĩķē ţō àďď? (ōƥţĩōńàĺ)"],
"az8lvo": ["Ōƒƒ"],
"b18t0_": ["Ćĺōśē ďĩƒƒ"],
+ "b1FDss": ["Śćŕōĺĺ ţō śţàŕţ"],
"b24kPi": ["Ǫũēũē"],
"b2ezG_": ["Ķēƥţ ƀōţĥ — \"", ["0"], "\" ĩś ĩţś ōŵń śķĩĺĺ ńōŵ"],
"b3Thhd": ["Ũƥĺōàď ƒàĩĺēď"],
@@ -3501,6 +3503,7 @@
"vHlhDc": ["Ďōũƀĺē-ćĺĩćķ ţō ēďĩţ"],
"vIxrEk": ["Ƒĩţ ŵĩďţĥ"],
"vLyv1R": ["Ĥĩďē"],
+ "vPEyDz": ["Àĝēńţ ţŕàńśćŕĩƥţ"],
"vPF04k": ["Śţàŕţ à ńēŵ ćĥàţ"],
"vPKX2i": ["Ĩń àƥƥ (ƀēţà)"],
"vPXOUw": ["Ţōĝĝĺē śōũŕćē vĩēŵ"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index a3750e96d..f1b23be7e 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -1247,6 +1247,10 @@ msgstr ""
msgid "Agent Skills"
msgstr ""
+#: src/components/acp/ThreadView.tsx
+msgid "Agent transcript"
+msgstr ""
+
#: src/components/ExploreSkills.tsx
msgid "Agents"
msgstr ""
@@ -9081,6 +9085,14 @@ msgstr ""
msgid "Screenshot"
msgstr ""
+#: src/components/ui/message-scroller.tsx
+msgid "Scroll to end"
+msgstr ""
+
+#: src/components/ui/message-scroller.tsx
+msgid "Scroll to start"
+msgstr ""
+
#: src/components/CommandPalette.tsx
#: src/components/EditorHeader.tsx
#: src/components/settings/SettingsDialogShell.tsx
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d90f17931..434eec8aa 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -431,6 +431,9 @@ importers:
'@pierre/trees':
specifier: 1.0.0-beta.4
version: 1.0.0-beta.4(patch_hash=86ac804ac75d9f365ee9ef918460463a211ac5201ebc3cf04fc0534c5b3adf88)([email protected]([email protected]))([email protected])
+ '@shadcn/react':
+ specifier: ^0.2.1
+ version: 0.2.1(@types/[email protected])([email protected])
'@tanstack/react-query':
specifier: ^5.99.0
version: 5.101.2([email protected])
@@ -5444,6 +5447,17 @@ packages:
'@sec-ant/[email protected]':
resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}
+ '@shadcn/[email protected]':
+ resolution: {integrity: sha512-5krgi3dRMKb5jH6a+qPzVJUy/54s0kKE4Rw4LjDfLqOdVQTWKUgxWf1kW8r912I0jX/Lzxqc+pgjkjWxUIK5BQ==}
+ peerDependencies:
+ '@types/react': '>=19'
+ react: 19.2.5
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ react:
+ optional: true
+
'@shikijs/[email protected]':
resolution: {integrity: sha512-NSWQz0riNb67xthdm5br6lAkvpDJRTgB36fxlo37ZzM2yq0PQFFzbd8psqC2XMPgCzo1fW6cVi18+ArJ44wqgA==}
@@ -15638,6 +15652,11 @@ snapshots:
'@sec-ant/[email protected]': {}
+ optionalDependencies:
+ '@types/react': 19.2.17
+ react: 19.2.5
+
'@shikijs/[email protected]':
dependencies:
'@shikijs/types': 3.23.0