fix: Agent execution time duration display in streaming mode (#7852)

* Update events.py

* timer compotation update

* clean up

* add time elapsed for streaming

* [autofix.ci] apply automated fixes

* Update events.py

* preliminary fix

* Update src/backend/base/langflow/schema/message.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* Update src/backend/base/langflow/schema/message.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Edwin Jose 2025-05-02 13:23:07 -04:00 • committed by GitHub
commit a904db6220
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -327,7 +327,6 @@ export default function ChatMessage({
playgroundPage={playgroundPage}
contentBlocks={chat.content_blocks}
isLoading={
chatMessage === "" &&
chat.properties?.state === "partial" &&
isBuilding &&
lastMessage