From 7070f79aa1393a165ed38b932407df27beef60ca Mon Sep 17 00:00:00 2001 From: linuxid10t Date: Mon, 30 Mar 2026 10:41:24 +0800 Subject: [PATCH] feat/fix: add regenerate button on failed message responses (#7844) * fix: align KV cache default settings with actual runtime behavior The documented defaults for cache_type_k and cache_type_v were f16, but the extension's migrateKvCacheDefaults() function converts these to q8_0 on initialization. This commit updates the documented defaults to match the actual runtime behavior. Co-Authored-By: Claude Opus 4.6 * feat: add regenerate button on failed message responses Show a "Regenerate" button when a message response errors out, allowing users to retry without leaving the thread. Excludes out-of-context-size errors which already have a dedicated button. Co-Authored-By: Claude Opus 4.6 * chore: revert lockfile changes from regenerate button commit Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: Claude Opus 4.6 --- web-app/src/routes/threads/$threadId.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx index 886935d36..f114cbce6 100644 --- a/web-app/src/routes/threads/$threadId.tsx +++ b/web-app/src/routes/threads/$threadId.tsx @@ -46,7 +46,7 @@ import { PromptProgress } from '@/components/PromptProgress' import { useToolAvailable } from '@/hooks/useToolAvailable' import { OUT_OF_CONTEXT_SIZE } from '@/utils/error' import { Button } from '@/components/ui/button' -import { IconAlertCircle } from '@tabler/icons-react' +import { IconAlertCircle, IconRefresh } from '@tabler/icons-react' import { useToolApproval } from '@/hooks/useToolApproval' import DropdownModelProvider from '@/containers/DropdownModelProvider' import { ExtensionTypeEnum, VectorDBExtension } from '@janhq/core' @@ -1037,7 +1037,17 @@ function ThreadDetail() { Increase Context Size - ) : null} + ) : ( + + )}