mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-22 07:44:24 +01:00
Align chat input action buttons to bottom when large amount of text (#3455)
This commit is contained in:
@@ -892,7 +892,7 @@ export default function ChatInput({
|
||||
>
|
||||
<form onSubmit={onFormSubmit} className="flex flex-col">
|
||||
{/* Input row with inline action buttons */}
|
||||
<div className="relative flex items-center">
|
||||
<div className="relative flex items-end">
|
||||
<div className="relative flex-1">
|
||||
<textarea
|
||||
data-testid="chat-input"
|
||||
|
||||
@@ -120,7 +120,6 @@ export const useChatEngine = ({
|
||||
// If this is the first message in a new session, trigger a refresh immediately
|
||||
// Only trigger if we're starting a completely new session (no existing messages)
|
||||
if (messages.length === 0 && chat.messages.length === 0) {
|
||||
console.log('ChatEngine: New session detected, emitting session-created event');
|
||||
// Emit event to indicate a new session is being created
|
||||
window.dispatchEvent(new CustomEvent('session-created'));
|
||||
}
|
||||
|
||||
@@ -287,10 +287,7 @@ export function useMessageStream({
|
||||
: parsedEvent.message.sendToLLM,
|
||||
};
|
||||
|
||||
console.log('New message:', JSON.stringify(newMessage, null, 2));
|
||||
|
||||
// Update messages with the new message
|
||||
|
||||
if (
|
||||
newMessage.id &&
|
||||
currentMessages.length > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user