Skip to content

Commit 1957550

Browse files
committed
fix: improoved error handling and reasoning icon render
1 parent 93c7b2c commit 1957550

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

custom/composables/agentStore/useAgentChat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export function createAgentChatManager({
197197
}),
198198
onError(error: unknown) {
199199
console.error('Chat error:', error);
200+
appendTextDelta(`Error: ${error instanceof Error ? error.message : String(error)}`);
200201
},
201202
onData: handleRealtimeChatData,
202203
});

custom/conversation_area/ProcessingTimeline.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<template v-if="ToolOrReasoningParts.length > 0 || inProgress">
33
<div
4-
class="shine-text-container ml-2 px-4 flex items-center gap-1 cursor-pointer select-none hover:opacity-80 tracking-wide font-medium text-sm text-listTableHeadingText dark:text-darkListTableHeadingText"
4+
class="shine-text-container ml-2 px-4 flex items-center gap-1 select-none hover:opacity-80 tracking-wide font-medium text-sm text-listTableHeadingText dark:text-darkListTableHeadingText"
5+
:class="[ToolOrReasoningParts.length > 0 ? 'cursor-pointer' : '']"
56
@click="isExpanded = !isExpanded"
67
>
78
<p
@@ -13,11 +14,12 @@
1314
`
1415
: '']"
1516
>
16-
{{ $t('Thoughts') }}
17+
{{ inProgress ? $t('Thinking') : $t('Thoughts') }}
1718
</p>
1819
<span v-if="thinkingDuration > 0">({{ (thinkingDuration/1000).toFixed(2) }} s)</span>
1920
<!-- <ThreeDotsAnimation v-if="inProgress" /> -->
2021
<IconAngleDownOutline
22+
v-if="ToolOrReasoningParts.length > 0"
2123
:class="isExpanded ? 'rotate-180' : 'rotate-0'"
2224
class="transition-transform duration-200"
2325
/>

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
allowBuilds:
2+
adminforth: true
3+
minimumReleaseAgeExclude:
4+
- adminforth@3.0.1

0 commit comments

Comments
 (0)