mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
chore: apply Prettier formatting to BuilderChatPanel files
Three files were flagged by the CI lint/format check — apply prettier --write to bring them into compliance.
This commit is contained in:
@@ -156,16 +156,14 @@ export function MessageList({
|
||||
{textParts && <span>{textParts}</span>}
|
||||
{/* Render tool parts (edit_agent, run_agent, etc.) via the shared
|
||||
copilot renderer which knows how to display each tool type. */}
|
||||
{(msg.parts ?? [])
|
||||
.filter(isDynamicToolPart)
|
||||
.map((part, i) => (
|
||||
<MessagePartRenderer
|
||||
key={`${msg.id}-tool-${i}`}
|
||||
part={normalizePartForRenderer(part)}
|
||||
messageID={msg.id}
|
||||
partIndex={i}
|
||||
/>
|
||||
))}
|
||||
{(msg.parts ?? []).filter(isDynamicToolPart).map((part, i) => (
|
||||
<MessagePartRenderer
|
||||
key={`${msg.id}-tool-${i}`}
|
||||
part={normalizePartForRenderer(part)}
|
||||
messageID={msg.id}
|
||||
partIndex={i}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
) : (
|
||||
textParts
|
||||
|
||||
@@ -61,7 +61,7 @@ export function PanelInput({
|
||||
type="button"
|
||||
onClick={onSend}
|
||||
disabled={isDisabled || !value.trim()}
|
||||
className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2"
|
||||
className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2 disabled:opacity-40"
|
||||
aria-label="Send"
|
||||
>
|
||||
<PaperPlaneTilt size={18} />
|
||||
|
||||
@@ -463,9 +463,9 @@ export function useBuilderChatPanel({
|
||||
}
|
||||
}
|
||||
lastScannedToolCallIndexRef.current = messages.length - 1;
|
||||
// flowID is included so this effect re-runs on navigation, mirroring the
|
||||
// parse-actions effect. This ensures the skip guard is consumed in the
|
||||
// correct render cycle even when a stream is active during navigation.
|
||||
// flowID is included so this effect re-runs on navigation, mirroring the
|
||||
// parse-actions effect. This ensures the skip guard is consumed in the
|
||||
// correct render cycle even when a stream is active during navigation.
|
||||
}, [messages, status, onGraphEdited, setQueryStates, flowID]);
|
||||
|
||||
// Close the panel on Escape when focus is inside the panel, so pressing Escape
|
||||
|
||||
Reference in New Issue
Block a user