File tree Expand file tree Collapse file tree
src/lib/components/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2457,7 +2457,9 @@ async def update_task(
24572457 try :
24582458 status = status .strip ().lower ()
24592459 if status not in VALID_TASK_STATUSES :
2460- return json .dumps ({'error' : f'Invalid status: { status } . Must be one of: { ", " .join (sorted (VALID_TASK_STATUSES ))} ' })
2460+ return json .dumps (
2461+ {'error' : f'Invalid status: { status } . Must be one of: { ", " .join (sorted (VALID_TASK_STATUSES ))} ' }
2462+ )
24612463
24622464 all_tasks = await Chats .get_chat_tasks_by_id (__chat_id__ )
24632465
Original file line number Diff line number Diff line change @@ -1004,9 +1004,7 @@ async def get_terminal_servers(request: Request):
10041004 terminal_servers = []
10051005 if request .app .state .redis is not None :
10061006 try :
1007- terminal_servers = json .loads (
1008- await request .app .state .redis .get (f'{ REDIS_KEY_PREFIX } :terminal_servers' )
1009- )
1007+ terminal_servers = json .loads (await request .app .state .redis .get (f'{ REDIS_KEY_PREFIX } :terminal_servers' ))
10101008 request .app .state .TERMINAL_SERVERS = terminal_servers
10111009 except Exception as e :
10121010 log .error (f'Error fetching terminal_servers from Redis: { e } ' )
Original file line number Diff line number Diff line change 199199 {:else }
200200 <div class =" tool-call-body w-full max-w-none!" >
201201 <pre
202- class =" text-xs text-gray-600 dark:text-gray-300 whitespace-pre font-mono bg-gray-50 dark:bg-gray-900 rounded-lg p-2.5 overflow-x-auto"
203- >{formatJSONString (args )}</pre >
202+ class ="text-xs text-gray-600 dark:text-gray-300 whitespace-pre font-mono bg-gray-50 dark:bg-gray-900 rounded-lg p-2.5 overflow-x-auto" >{formatJSONString (
203+ args
204+ )}</pre >
204205 </div >
205206 {/if }
206207 </div >
217218 <div class =" w-full max-w-none!" >
218219 {#if typeof parsedResult === ' object' && parsedResult !== null }
219220 <pre
220- class =" text-xs text-gray-600 dark:text-gray-300 whitespace-pre font-mono bg-gray-50 dark:bg-gray-900 rounded-lg p-2.5 overflow-x-auto"
221- >{JSON .stringify (parsedResult , null , 2 )}</pre >
221+ class ="text-xs text-gray-600 dark:text-gray-300 whitespace-pre font-mono bg-gray-50 dark:bg-gray-900 rounded-lg p-2.5 overflow-x-auto" >{JSON .stringify (
222+ parsedResult ,
223+ null ,
224+ 2
225+ )}</pre >
222226 {:else }
223227 {@const resultStr = String (parsedResult )}
224228 {@const isTruncated = resultStr .length > RESULT_PREVIEW_LIMIT && ! expandedResult }
You can’t perform that action at this time.
0 commit comments