Skip to content

Commit 2ba14e3

Browse files
committed
fix: restore task message compatibility types
1 parent dedb8ef commit 2ba14e3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

frontend/src/components/console/task/message.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ interface MessageType {
2424
role: 'agent' | 'user' | 'system'
2525
type: 'agent_message_chunk' | 'agent_thought_chunk' | 'user_input' | 'user_cancel' | 'tool_call' | 'tool_call_update' | 'available_commands_update' | 'plan' | 'error_message' | 'ask_user_question' | 'system_message' | 'restart_session'
2626
data: {
27-
_meta?: unknown
27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
28+
_meta?: any
2829
requestId?: string
2930
details?: string
30-
content?: unknown
31+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
32+
content?: any
3133
kind?: string
3234
status?: string
3335
title?: string
3436
toolCallId?: string
35-
rawInput?: unknown
36-
rawOutput?: unknown
37+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
38+
rawInput?: any
39+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40+
rawOutput?: any
3741
locations?: string
3842
entries?: {
3943
content: string
@@ -53,7 +57,8 @@ interface MessageType {
5357
}[]
5458
}[]
5559
}
56-
onResponseAskUserQuestion?: (askId: string, answers: Record<string, string | string[]>) => "sent" | "queued" | "rejected"
60+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
61+
onResponseAskUserQuestion?: (askId: string, answers: any) => "sent" | "queued" | "rejected"
5762
onReloadSession?: () => void
5863
onUserInput?: (content: string) => void
5964
}

0 commit comments

Comments
 (0)