merge: resolve conflict with main (keep both auth and subagents handlers)
This commit is contained in:
commit
e0f80b0054
11 changed files with 400 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ export interface ChatViewProps {
|
|||
errorAction?: { label: string; onClick: () => void };
|
||||
/** Initial prompt to pre-fill the input (e.g., from onboarding) */
|
||||
initialPrompt?: string;
|
||||
/** Optional slot rendered between the error bar and the input footer */
|
||||
bottomSlot?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function ChatView({
|
||||
|
|
@ -62,6 +64,7 @@ export function ChatView({
|
|||
onDisconnect,
|
||||
errorAction,
|
||||
initialPrompt,
|
||||
bottomSlot,
|
||||
}: ChatViewProps) {
|
||||
const mainRef = useRef<HTMLElement>(null);
|
||||
const sentinelRef = useRef<HTMLDivElement>(null);
|
||||
|
|
@ -259,6 +262,8 @@ export function ChatView({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{bottomSlot}
|
||||
|
||||
<footer className="container px-4 pb-3 pt-1">
|
||||
<ChatInput
|
||||
onSubmit={sendMessage}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue