Skip to content

Commit 28385ce

Browse files
authored
update react, fix tool def (#2402)
1 parent 17d64ce commit 28385ce

4 files changed

Lines changed: 18 additions & 19 deletions

File tree

frontend/app/aipanel/aimessage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ export const AIMessage = memo(({ message, isStreaming }: AIMessageProps) => {
127127
const fileParts = parts.filter(
128128
(part): part is WaveUIMessagePart & { type: "data-userfile" } => part.type === "data-userfile"
129129
);
130-
const hasContent = displayParts.length > 0 && displayParts.some((part) =>
131-
(part.type === "text" && part.text) || part.type.startsWith("tool-")
132-
);
130+
const hasContent =
131+
displayParts.length > 0 &&
132+
displayParts.some((part) => (part.type === "text" && part.text) || part.type.startsWith("tool-"));
133133

134134
const showThinkingOnly = !hasContent && isStreaming && message.role === "assistant";
135135
const showThinkingInline = hasContent && isStreaming && message.role === "assistant";

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@
132132
"parse-srcset": "^1.0.2",
133133
"pngjs": "^7.0.0",
134134
"prop-types": "^15.8.1",
135-
"react": "19.1.1",
135+
"react": "^19.2.0",
136136
"react-dnd": "^16.0.1",
137137
"react-dnd-html5-backend": "^16.0.1",
138-
"react-dom": "19.1.1",
138+
"react-dom": "^19.2.0",
139139
"react-frame-component": "^5.2.7",
140140
"react-hook-form": "^7.63.0",
141141
"react-markdown": "^9.0.3",

pkg/aiusechat/tools_term.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ func GetTermGetScrollbackToolDefinition(tabId string) uctypes.ToolDefinition {
7979
DisplayName: "Get Terminal Scrollback",
8080
Description: "Fetch terminal scrollback from a widget as plain text. Index 0 is the most recent line; indices increase going upward (older lines).",
8181
ToolLogName: "term:getscrollback",
82-
Strict: true,
8382
InputSchema: map[string]any{
8483
"type": "object",
8584
"properties": map[string]any{

0 commit comments

Comments
 (0)