Skip to content

Commit f069c0a

Browse files
fix lint
1 parent 03616b7 commit f069c0a

3 files changed

Lines changed: 5 additions & 19 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/thinking-block/thinking-block.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ export function ThinkingBlock({
111111

112112
<Expandable expanded={expanded}>
113113
<ExpandableContent>
114-
<div
115-
ref={panelRef}
116-
className='max-h-[110px] overflow-y-scroll pt-0.5 pr-2 pl-6'
117-
>
114+
<div ref={panelRef} className='max-h-[110px] overflow-y-scroll pt-0.5 pr-2 pl-6'>
118115
<div className='whitespace-pre-wrap break-words font-base text-[13px] text-[var(--text-secondary)] leading-[18px] opacity-60'>
119116
{content}
120117
</div>

apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,7 @@ export function MessageContent({
432432
}
433433

434434
const lastSegment = segments[segments.length - 1]
435-
const hasTrailingContent =
436-
lastSegment.type === 'text' || lastSegment.type === 'stopped'
435+
const hasTrailingContent = lastSegment.type === 'text' || lastSegment.type === 'stopped'
437436

438437
let allLastGroupToolsDone = false
439438
if (lastSegment.type === 'agent_group') {
@@ -481,10 +480,7 @@ export function MessageContent({
481480
// persisted blocks) so we don't drop historical content.
482481
if (elapsedMs !== undefined && elapsedMs <= 3000) return null
483482
return (
484-
<div
485-
key={segment.id}
486-
className={isStreaming ? 'animate-stream-fade-in' : undefined}
487-
>
483+
<div key={segment.id} className={isStreaming ? 'animate-stream-fade-in' : undefined}>
488484
<ThinkingBlock
489485
content={segment.content}
490486
isActive={isActive}

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,10 +1777,7 @@ export function useChat(
17771777
return b
17781778
}
17791779

1780-
const ensureThinkingBlock = (
1781-
subagentName: string | undefined,
1782-
ts?: string
1783-
): ContentBlock => {
1780+
const ensureThinkingBlock = (subagentName: string | undefined, ts?: string): ContentBlock => {
17841781
const targetType = subagentName ? 'subagent_thinking' : 'thinking'
17851782
const last = blocks[blocks.length - 1]
17861783
if (last?.type === targetType && last.subagent === subagentName) return last
@@ -2559,11 +2556,7 @@ export function useChat(
25592556
if (name) {
25602557
for (let i = blocks.length - 1; i >= 0; i--) {
25612558
const b = blocks[i]
2562-
if (
2563-
b.type === 'subagent' &&
2564-
b.content === name &&
2565-
b.endedAt === undefined
2566-
) {
2559+
if (b.type === 'subagent' && b.content === name && b.endedAt === undefined) {
25672560
b.endedAt = endNow
25682561
break
25692562
}

0 commit comments

Comments
 (0)