Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove delay / niceties #3951

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/app/chat/message/AgenticMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import rehypeKatex from "rehype-katex";
import "katex/dist/katex.min.css";
import SubQuestionsDisplay from "./SubQuestionsDisplay";
import { StatusRefinement } from "../Refinement";
import SubQuestionProgress from "./SubQuestionProgress";

export const AgenticMessage = ({
docSidebarToggled,
Expand Down Expand Up @@ -445,6 +444,7 @@ export const AgenticMessage = ({
<div className="flex items-center gap-x-2 px-4">
<div className="text-black text-lg font-medium">
Answer
{isViewingInitialAnswer ? "Original" : "Refined"}
</div>

<StatusRefinement
Expand Down
9 changes: 6 additions & 3 deletions web/src/app/chat/message/SubQuestionsDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,12 @@ const SubQuestionsDisplay: React.FC<SubQuestionsDisplayProps> = ({

useEffect(() => {
if (documents && documents.length > 0) {
setTimeout(() => {
setShownDocuments(documents);
}, 800);
setTimeout(
() => {
setShownDocuments(documents);
},
finishedGenerating ? 0 : 800
);
}
}, [documents]);

Expand Down
7 changes: 6 additions & 1 deletion web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,11 @@ ul > li > p {
color: white;
}

.dark li {
.dark li,
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5 {
color: #e5e5e5;
}
Loading