From c89ba3b813e96effe0ea2cde350330dd8f186aed Mon Sep 17 00:00:00 2001 From: jasangill1 <56135840+jasangill1@users.noreply.github.com> Date: Sat, 10 Jun 2023 12:32:29 -0700 Subject: [PATCH 1/2] Fix code block overflow --- next/src/components/console/ChatWindow.tsx | 2 +- .../web/api/agent/agent_service/mock_agent_service.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/next/src/components/console/ChatWindow.tsx b/next/src/components/console/ChatWindow.tsx index f0eb7877e6..c74d2d5077 100644 --- a/next/src/components/console/ChatWindow.tsx +++ b/next/src/components/console/ChatWindow.tsx @@ -74,7 +74,7 @@ const ChatWindow = ({ return (
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) From 325840fb2d36117150108b8b1b333e886fd262ae Mon Sep 17 00:00:00 2001 From: Jasan Gill <56135840+jasangill1@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:19:29 -0700 Subject: [PATCH 2/2] Update platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py Co-authored-by: Adam Watkins --- .../web/api/agent/agent_service/mock_agent_service.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py b/platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py index a7004bacf5..56585b12b2 100644 --- a/platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py +++ b/platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py @@ -24,7 +24,4 @@ async def analyze_task_agent(self, **kwargs: Any) -> Analysis: ) async def execute_task_agent(self, **kwargs: Any) -> FastAPIStreamingResponse: - 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) + return stream_string("The task result is: " + kwargs.get("task", "task"), True)