|
@@ -1646,33 +1646,15 @@ ToolRegistry.register<typeof ListTool>({
|
|
|
|
|
|
|
|
ToolRegistry.register<typeof TaskTool>({
|
|
ToolRegistry.register<typeof TaskTool>({
|
|
|
name: "task",
|
|
name: "task",
|
|
|
- container: "inline",
|
|
|
|
|
|
|
+ container: "block",
|
|
|
render(props) {
|
|
render(props) {
|
|
|
const { theme } = useTheme()
|
|
const { theme } = useTheme()
|
|
|
const keybind = useKeybind()
|
|
const keybind = useKeybind()
|
|
|
const dialog = useDialog()
|
|
const dialog = useDialog()
|
|
|
const renderer = useRenderer()
|
|
const renderer = useRenderer()
|
|
|
- const [hover, setHover] = createSignal(false)
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <box
|
|
|
|
|
- border={["left"]}
|
|
|
|
|
- customBorderChars={SplitBorder.customBorderChars}
|
|
|
|
|
- borderColor={theme.background}
|
|
|
|
|
- paddingTop={1}
|
|
|
|
|
- paddingBottom={1}
|
|
|
|
|
- paddingLeft={2}
|
|
|
|
|
- marginTop={1}
|
|
|
|
|
- gap={1}
|
|
|
|
|
- backgroundColor={hover() ? theme.backgroundElement : theme.backgroundPanel}
|
|
|
|
|
- onMouseOver={() => setHover(true)}
|
|
|
|
|
- onMouseOut={() => setHover(false)}
|
|
|
|
|
- onMouseUp={() => {
|
|
|
|
|
- const id = props.metadata.sessionId
|
|
|
|
|
- if (renderer.getSelection()?.getSelectedText() || !id) return
|
|
|
|
|
- dialog.replace(() => <DialogSubagent sessionID={id} />)
|
|
|
|
|
- }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <>
|
|
|
<ToolTitle icon="◉" fallback="Delegating..." when={props.input.subagent_type ?? props.input.description}>
|
|
<ToolTitle icon="◉" fallback="Delegating..." when={props.input.subagent_type ?? props.input.description}>
|
|
|
{Locale.titlecase(props.input.subagent_type ?? "unknown")} Task "{props.input.description}"
|
|
{Locale.titlecase(props.input.subagent_type ?? "unknown")} Task "{props.input.description}"
|
|
|
</ToolTitle>
|
|
</ToolTitle>
|
|
@@ -1695,7 +1677,7 @@ ToolRegistry.register<typeof TaskTool>({
|
|
|
{keybind.print("session_child_cycle")}, {keybind.print("session_child_cycle_reverse")}
|
|
{keybind.print("session_child_cycle")}, {keybind.print("session_child_cycle_reverse")}
|
|
|
<span style={{ fg: theme.textMuted }}> to navigate between subagent sessions</span>
|
|
<span style={{ fg: theme.textMuted }}> to navigate between subagent sessions</span>
|
|
|
</text>
|
|
</text>
|
|
|
- </box>
|
|
|
|
|
|
|
+ </>
|
|
|
)
|
|
)
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|