Skip to content

Commit 72430e5

Browse files
MarcMcIntoshJegernOUTT
authored andcommitted
enable compression button
1 parent 86ec25a commit 72430e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

refact-agent/gui/src/components/ChatForm/ChatForm.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,10 @@ export const ChatForm: React.FC<ChatFormProps> = ({
400400
type="button"
401401
onClick={() => void compressChat()}
402402
disabled={
403-
unCalledTools ||
404-
lastSentCompression === null ||
405-
lastSentCompression === "absent"
403+
messages.length === 0 ||
404+
isStreaming ||
405+
isWaiting ||
406+
unCalledTools
406407
}
407408
loading={compressChatRequest.isLoading || isCompressing}
408409
>

0 commit comments

Comments
 (0)