From 9ede0012024b1db7847048b298340f6cdd2fd3e9 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Thu, 10 Jul 2025 11:47:36 -0700 Subject: [PATCH] lint --- .../workflow-block/components/sub-block/components/code.tsx | 4 ++-- .../workflow-block/components/sub-block/sub-block.tsx | 2 +- apps/sim/executor/handlers/agent/agent-handler.ts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx index 35f65b4a2b..a5ca9bb3c1 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx @@ -1,6 +1,6 @@ import type { ReactElement } from 'react' import { useEffect, useMemo, useRef, useState } from 'react' -import { Wand2, AlertTriangle } from 'lucide-react' +import { Wand2 } from 'lucide-react' import { highlight, languages } from 'prismjs' import 'prismjs/components/prism-javascript' import 'prismjs/themes/prism.css' @@ -365,7 +365,7 @@ export function Code({ className={cn( 'group relative min-h-[100px] rounded-md border bg-background font-mono text-sm transition-colors', isConnecting && 'ring-2 ring-blue-500 ring-offset-2', - !isValidJson && 'border-destructive border-2 bg-destructive/10' + !isValidJson && 'border-2 border-destructive bg-destructive/10' )} title={!isValidJson ? 'Invalid JSON' : undefined} onDragOver={(e) => e.preventDefault()} diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx index c3bfd9ed87..54efcb75b8 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Info, AlertTriangle } from 'lucide-react' +import { AlertTriangle, Info } from 'lucide-react' import { Label } from '@/components/ui/label' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { getBlock } from '@/blocks/index' diff --git a/apps/sim/executor/handlers/agent/agent-handler.ts b/apps/sim/executor/handlers/agent/agent-handler.ts index e76d2ba33e..20a4e50d9a 100644 --- a/apps/sim/executor/handlers/agent/agent-handler.ts +++ b/apps/sim/executor/handlers/agent/agent-handler.ts @@ -718,13 +718,14 @@ export class AgentBlockHandler implements BlockHandler { // All parsing attempts failed logger.error('Failed to parse response content as JSON:', { content: content.substring(0, 200) + (content.length > 200 ? '...' : ''), - responseFormat: responseFormat + responseFormat: responseFormat, }) // Return standard response but include a warning const standardResponse = this.processStandardResponse(result) return Object.assign(standardResponse, { - _responseFormatWarning: 'Response format was specified but content could not be parsed as JSON. Falling back to standard format.', + _responseFormatWarning: + 'Response format was specified but content could not be parsed as JSON. Falling back to standard format.', }) }