feat(tui): click on subagents to open them (#5761)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
Rohan Godha
2025-12-18 18:17:34 -06:00
committed by GitHub
co-authored by Aiden Cline
parent 427157c683
commit 5f03290534
2 changed files with 50 additions and 3 deletions
@@ -0,0 +1,26 @@
import { DialogSelect } from "@tui/ui/dialog-select"
import { useRoute } from "@tui/context/route"
export function DialogSubagent(props: { sessionID: string }) {
const route = useRoute()
return (
<DialogSelect
title="Subagent Actions"
options={[
{
title: "Open",
value: "subagent.view",
description: "open the subagent's session",
onSelect: (dialog) => {
route.navigate({
type: "session",
sessionID: props.sessionID,
})
dialog.clear()
},
},
]}
/>
)
}