Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add second splitter
Vasek Mlejnskycfa98f9eed61
diff --git a/components/AgentLogFileContent.tsx b/components/AgentLogFileContent.tsxindex f81c094b8..648da2216 100644--- a/components/AgentLogFileContent.tsx+++ b/components/AgentLogFileContent.tsx@@ -2,6 +2,8 @@ import {useState,} from 'react'import { useRouter } from 'next/router'+import Splitter from '@devbookhq/splitter'+import clsx from 'clsx'import { log_files } from 'db/prisma'import {@@ -40,9 +42,17 @@ function AgentLogFileContent({if (!logFile) return nullreturn (- <div className="flex space-x-2 items-start justify-start max-w-full">+ <div className="flex-1 flex space-x-2 items-start justify-start max-w-full">{logFile.filename.includes('full_message_history') || logFile.filename.includes('current_context') ? (- <>+ <Splitter+ gutterClassName={clsx(+ 'bg-gray-900 hover:bg-[#6366F1] transition-all delay-75 duration-[400ms] px-0.5 rounded-sm group',+ )}+ draggerClassName={clsx(+ 'bg-gray-700 group-hover:bg-[#6366F1] transition-all delay-75 duration-[400ms] w-0.5 h-full',+ )}+ classes={['flex pr-2 overflow-auto', 'bg-gray-900 flex pl-2']}+ ><AgentPromptLogsListlogs={(logFile.content as AgentPromptLogs).logs}onSelected={setSelectedLog}@@ -50,7 +60,7 @@ function AgentLogFileContent({<AgentPrompLogDetaillog={selectedLog}/>- </>+ </Splitter>) : logFile.filename.includes('next_action') ? (<AgentNextActionLogDetaillog={logFile.content as AgentNextActionLog}diff --git a/components/AgentPromptLogDetail.tsx b/components/AgentPromptLogDetail.tsxindex c5037386e..a465fe187 100644--- a/components/AgentPromptLogDetail.tsx+++ b/components/AgentPromptLogDetail.tsx@@ -14,7 +14,7 @@ function AgentPrompLogDetail({log,}: Props) {return (- <div className="overflow-auto p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 border border-gray-800 min-w-[300px]">+ <div className="overflow-auto p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 border border-gray-800 min-w-[550px]">{log && (<><div className="flex flex-col space-y-1 w-full">diff --git a/pages/api/log_file/[:logFileID].ts b/pages/api/log_file/[:logFileID].tsindex 43a23e041..2ffb79e11 100644--- a/pages/api/log_file/[:logFileID].ts+++ b/pages/api/log_file/[:logFileID].ts@@ -84,7 +84,6 @@ async function handler(req: NextApiRequest,res: NextApiResponse,) {- console.log('HANDLER')if (req.method === 'GET') {await getLog(req, res)return