Skip to content

chore: fix react warning #6687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gui/src/components/History/HistoryTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function HistoryTableRow({
navigate("/");
}}
>
<div className="flex-1 cursor-pointer space-y-1">
<td className="flex-1 cursor-pointer space-y-1">
{editing ? (
<div>
<Input
Expand Down Expand Up @@ -114,10 +114,10 @@ export function HistoryTableRow({
})}
</span> */}
</div>
</div>
</td>

{hovered && !editing && (
<div className="bg-badge absolute right-2 top-1/2 ml-auto flex -translate-y-1/2 transform items-center gap-x-1 rounded-full px-2 py-1 shadow-md">
<td className="bg-badge absolute right-2 top-1/2 ml-auto flex -translate-y-1/2 transform items-center gap-x-1 rounded-full px-2 py-1 shadow-md">
<HeaderButtonWithToolTip
text="Edit"
onClick={async (e) => {
Expand All @@ -136,7 +136,7 @@ export function HistoryTableRow({
>
<TrashIcon width="1em" height="1em" />
</HeaderButtonWithToolTip>
</div>
</td>
)}
</tr>
);
Expand Down
4 changes: 3 additions & 1 deletion gui/src/components/console/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export function renderMessage(message: ChatMessage, includeRole: boolean) {
{includeRole ? renderMessageRole(message.role) : ""}
{message.toolCalls
? message.toolCalls.map((toolCall) => (
<pre>Tool call: {JSON.stringify(toolCall, undefined, 2)}</pre>
<pre key={toolCall.id}>
Tool call: {JSON.stringify(toolCall, undefined, 2)}
</pre>
))
: ""}
{renderMessageContent(message)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ function ToolPolicyItem(props: ToolDropdownItemProps) {
{parameters ? (
<>
<span className="text-xs font-bold">Arguments:</span>
{parameters.map((param) => (
<div className="block">
{parameters.map((param, idx) => (
<div key={idx} className="block">
<code className="">{param[0]}</code>
<span className="ml-1">{`(${param[1].type}):`}</span>
<span className="ml-1 italic">{param[1].description}</span>
Expand Down
Loading