Skip to content

Commit c2400f3

Browse files
committed
fix(): ignore details for jobs
1 parent e70a9bd commit c2400f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bricks/ai-portal/src/chat-stream/useConversationStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function useConversationStream(
5252
for (const chunk of chunks) {
5353
if (chunk.type === "job") {
5454
const job = chunk.job;
55-
if (job.toolCall) {
55+
if (job.toolCall && !job.ignoreDetails) {
5656
lastDetail = {
5757
type: "job",
5858
id: job.id,

bricks/ai-portal/src/shared/interfaces.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ export interface Job {
116116

117117
// @ 的数字人 ID
118118
mentionedAiEmployeeId?: string;
119+
120+
// 忽略该容器在 chat 模式下的自动详情展示,但仍可主动点击查看详情
121+
ignoreDetails?: boolean;
119122
}
120123

121124
export type HumanAction = HumanActionConfirm | HumanActionSelect;

0 commit comments

Comments
 (0)