|
|
@@ -12,12 +12,11 @@ function callName(node: ToolCallBlock): string {
|
|
|
|
|
|
/** One atomic call dispatched through the Tool-owned keyed slot. */
|
|
|
const ToolCall = memo(function ToolCall({
|
|
|
- renderSlot, callId, toolName, block, openFile, selected, cwd, home, inspectCall, loadImage, t, children,
|
|
|
+ renderSlot, callId, toolName, block, openFile, cwd, home, inspectCall, loadImage, t, children,
|
|
|
}: Pick<ToolTreeProps, 'renderSlot' | 'openFile' | 'cwd' | 'inspectCall' | 'loadImage' | 't'> & {
|
|
|
callId: string
|
|
|
toolName: string
|
|
|
block: ToolCallBlock
|
|
|
- selected: boolean
|
|
|
home?: string | undefined
|
|
|
children?: ReactNode
|
|
|
}) {
|
|
|
@@ -36,7 +35,6 @@ const ToolCall = memo(function ToolCall({
|
|
|
className={css.callRow}
|
|
|
data-chat-anchor-key={`call:${callId}`}
|
|
|
data-chat-call-id={callId}
|
|
|
- data-selected={selected || undefined}
|
|
|
>
|
|
|
{renderSlot('tool.call.toolview', owner, {
|
|
|
entryKey: toolName,
|
|
|
@@ -48,8 +46,8 @@ const ToolCall = memo(function ToolCall({
|
|
|
})
|
|
|
|
|
|
const ToolCallBranch = memo(function ToolCallBranch({
|
|
|
- renderSlot, block, selectedCallId, cwd, home, openFile, inspectCall, loadImage, t,
|
|
|
-}: Pick<ToolTreeProps, 'renderSlot' | 'selectedCallId' | 'cwd' | 'openFile' | 'inspectCall' | 'loadImage' | 't'> & {
|
|
|
+ renderSlot, block, cwd, home, openFile, inspectCall, loadImage, t,
|
|
|
+}: Pick<ToolTreeProps, 'renderSlot' | 'cwd' | 'openFile' | 'inspectCall' | 'loadImage' | 't'> & {
|
|
|
block: ToolCallBlock
|
|
|
home?: string | undefined
|
|
|
}) {
|
|
|
@@ -60,7 +58,6 @@ const ToolCallBranch = memo(function ToolCallBranch({
|
|
|
toolName={callName(block)}
|
|
|
block={block}
|
|
|
openFile={openFile}
|
|
|
- selected={block.callId === selectedCallId}
|
|
|
cwd={cwd}
|
|
|
home={home}
|
|
|
inspectCall={inspectCall}
|
|
|
@@ -74,7 +71,6 @@ const ToolCallBranch = memo(function ToolCallBranch({
|
|
|
key={child.callId}
|
|
|
renderSlot={renderSlot}
|
|
|
block={child}
|
|
|
- selectedCallId={selectedCallId}
|
|
|
cwd={cwd}
|
|
|
home={home}
|
|
|
openFile={openFile}
|
|
|
@@ -96,7 +92,7 @@ const ToolCallBranch = memo(function ToolCallBranch({
|
|
|
* @returns the Tool call tree.
|
|
|
*/
|
|
|
export function ToolCallTree({
|
|
|
- renderSlot, node, selectedCallId, cwd, openFile, inspectCall, loadImage, useHostInfo, t,
|
|
|
+ renderSlot, node, cwd, openFile, inspectCall, loadImage, useHostInfo, t,
|
|
|
}: ToolTreeProps) {
|
|
|
const home = useHostInfo(info => info.home)
|
|
|
const block = node.data.root
|
|
|
@@ -104,7 +100,6 @@ export function ToolCallTree({
|
|
|
<ToolCallBranch
|
|
|
renderSlot={renderSlot}
|
|
|
block={block}
|
|
|
- selectedCallId={selectedCallId}
|
|
|
cwd={cwd}
|
|
|
home={home}
|
|
|
openFile={openFile}
|