Fix: Update display time for very short operations and fix outputs and titles for tool calling executions (#8718)

* update display time for very short operations and fix outputs and titles

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* cleanup

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Mike Fortman 2025-06-24 18:07:19 -05:00 • committed by GitHub
commit 927cdd0837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 8 deletions

View file

@ -41,7 +41,8 @@ export default function DurationDisplay({
const displayTime = duration ?? durations[chatId] ?? 0;
const secondsValue = displayTime / 1000;
const humanizedTime = `${secondsValue.toFixed(1)}s`;
const humanizedTime =
secondsValue < 0.05 ? "< 0.1s" : `${secondsValue.toFixed(1)}s`;
return (
<div