Skip to content

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

chore: I don't see a diff in your message — the Files, Stat, and Diff sections are all empty. Coul

Steven Enamakel58bad39acb22
diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsx
index 2e1f9ce52f..76718a0b59 100644
--- a/app/src/features/conversations/components/AssistantUiChat.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.tsx
@@ -11,6 +11,7 @@ import type { Attachment } from '../../../lib/attachments';
import { useT } from '../../../lib/i18n/I18nContext';
import { AssistantUiRuntimeProvider } from '../../../providers/AssistantUiRuntimeProvider';
import { useAppSelector } from '../../../store/hooks';
+import { InterruptedTurnNotice } from '../aui/InterruptedTurnNotice';
import { AgentRunningStatus } from '../aui/AgentRunningStatus';
import { ChatConversationMap } from '../aui/ChatConversationMap';
import { ComposerTriggers } from '../aui/ComposerTriggers';
@@ -113,6 +114,8 @@ export function AssistantUiChat({
inputValue,
onInputValueChange,
onEscape,
+ onRecallLastPrompt,
+ composerPlaceholder,
attachments,
onAttachFiles,
onRemoveAttachment,
@@ -142,7 +145,12 @@ export function AssistantUiChat({
composerReplacement?: ReactNode;
inputValue: string;
onInputValueChange: (value: string) => void;
- onEscape?: () => void;
+ /** Returns whether Escape acted (stopped a run); `false` lets the key through. */
+ onEscape?: () => boolean | void;
+ /** ArrowUp in an empty composer: recall the last prompt; returns whether it did. */
+ onRecallLastPrompt?: () => boolean;
+ /** State-aware placeholder (running / waiting on the user); default otherwise. */
+ composerPlaceholder?: string;
attachments: Attachment[];
onAttachFiles: (files: FileList | File[] | null) => Promise<void>;
onRemoveAttachment: (id: string) => void;
@@ -314,6 +322,8 @@ export function AssistantUiChat({
// Phase / reasoning round / active tool for the turn in flight. Reads the
// runtime's `extras`, so it needs no props and no dependency here.
RunningStatus: AgentRunningStatus,
+ // A crashed turn's partial reply and its "Interrupted" marker.
+ TranscriptFooter: InterruptedTurnNotice,
// The web pages the turn fetched, grouped from its `source` parts into
// one collapsed disclosure under the answer.
SourceGroup: ChatSources,
@@ -367,6 +377,8 @@ export function AssistantUiChat({
onModelChange={onModelChange}
loadError={loadError}
onEscape={onEscape}
+ onRecallLastPrompt={onRecallLastPrompt}
+ composerPlaceholder={composerPlaceholder}
/>
</ChatConversationMap>
</AssistantUiRuntimeProvider>