Skip to content

Commit

Permalink
minor QOL improvement on first chat (onyx-dot-app#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx authored and rajiv chodisetti committed Oct 2, 2024
1 parent c07fe1e commit 5601e5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function LLMProviderUpdateForm({
}}
>
{({ values, setFieldValue }) => (
<Form className="gap-y-6 mt-8">
<Form className="gap-y-6 items-stretch mt-8">
<TextFormField
name="name"
label="Display Name"
Expand Down
16 changes: 9 additions & 7 deletions web/src/app/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -924,13 +924,6 @@ export function ChatPage({

return;
}
updateRegenerationState(
regenerationRequest
? { regenerating: true, finalMessageIndex: messageIdToResend || 0 }
: null
);

updateChatState("loading");

setAlternativeGeneratingAssistant(alternativeAssistantOverride);
clientScrollToBottom();
Expand Down Expand Up @@ -987,6 +980,15 @@ export function ChatPage({
}

setSubmittedMessage(currMessage);

updateRegenerationState(
regenerationRequest
? { regenerating: true, finalMessageIndex: messageIdToResend || 0 }
: null
);

updateChatState("loading");

const currMessageHistory =
messageToResendIndex !== null
? messageHistory.slice(0, messageToResendIndex)
Expand Down

0 comments on commit 5601e5a

Please sign in to comment.