mirror of https://github.com/kortix-ai/suna.git
fix: timing
This commit is contained in:
parent
cf7e16fdc8
commit
a1c470231e
|
@ -56,10 +56,10 @@ export const ShowToolStream: React.FC<ShowToolStreamProps> = ({
|
|||
}
|
||||
|
||||
const elapsed = Date.now() - effectiveStartTime;
|
||||
if (elapsed >= 1500) {
|
||||
if (elapsed >= 2000) {
|
||||
setShouldShowContent(true);
|
||||
} else {
|
||||
const delay = 1500 - elapsed;
|
||||
const delay = 2000 - elapsed;
|
||||
const timer = setTimeout(() => {
|
||||
setShouldShowContent(true);
|
||||
}, delay);
|
||||
|
|
Loading…
Reference in New Issue