diff --git a/site/src/pages/AgentsPage/AgentChatInput.stories.tsx b/site/src/pages/AgentsPage/AgentChatInput.stories.tsx index 1170ae7fb8..198c2da1c0 100644 --- a/site/src/pages/AgentsPage/AgentChatInput.stories.tsx +++ b/site/src/pages/AgentsPage/AgentChatInput.stories.tsx @@ -137,6 +137,28 @@ export const LoadingDisablesSend: Story = { }, }; +export const Streaming: Story = { + args: { + isStreaming: true, + onInterrupt: fn(), + isInterruptPending: false, + initialValue: "", + onAttach: fn(), + onRemoveAttachment: fn(), + }, +}; + +export const StreamingInterruptPending: Story = { + args: { + isStreaming: true, + onInterrupt: fn(), + isInterruptPending: true, + initialValue: "", + onAttach: fn(), + onRemoveAttachment: fn(), + }, +}; + const longContent = Array.from( { length: 60 }, (_, i) => diff --git a/site/src/pages/AgentsPage/AgentChatInput.tsx b/site/src/pages/AgentsPage/AgentChatInput.tsx index 33f407634c..09f208a4d0 100644 --- a/site/src/pages/AgentsPage/AgentChatInput.tsx +++ b/site/src/pages/AgentsPage/AgentChatInput.tsx @@ -640,12 +640,12 @@ export const AgentChatInput = memo( type="button" variant="outline" size="icon" - className="size-7 shrink-0 rounded-full [&>svg]:p-0" + className="size-7 shrink-0 rounded-full [&>svg]:!size-icon-sm [&>svg]:p-0" onClick={() => fileInputRef.current?.click()} disabled={isDisabled} aria-label="Attach files" > - + )} @@ -653,11 +653,11 @@ export const AgentChatInput = memo( )} @@ -665,7 +665,7 @@ export const AgentChatInput = memo(