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

Fix code block overflow #758

Merged
merged 2 commits into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 next/src/components/console/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ChatWindow = ({
return (
<div
className={clsx(
"border-translucent flex-1 flex-col rounded-2xl border-2 border-white/20 bg-zinc-900 text-white shadow-2xl drop-shadow-lg xl:flex",
"overflow-auto border-translucent flex-1 flex-col rounded-2xl border-2 border-white/20 bg-zinc-900 text-white shadow-2xl drop-shadow-lg xl:flex",
className,
visibleOnMobile ? "flex" : "hidden"
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ async def analyze_task_agent(self, **kwargs: Any) -> Analysis:
)

async def execute_task_agent(self, **kwargs: Any) -> FastAPIStreamingResponse:
return stream_string("The task result is: " + kwargs.get("task", "task"), True)
return stream_string("""```
This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long This is really long

```""", True)
jasangill1 marked this conversation as resolved.
Show resolved Hide resolved