feat(tui): navigate child sessions (subagents)

This commit is contained in:
adamdotdevin 2025-08-15 10:16:08 -05:00
commit 07dbc30c63
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -293,8 +293,18 @@ export namespace Server {
},
},
}),
zValidator(
"json",
z
.object({
parentID: z.string().optional(),
title: z.string().optional(),
})
.optional(),
),
async (c) => {
const session = await Session.create()
const body = c.req.valid("json") ?? {}
const session = await Session.create(body.parentID, body.title)
return c.json(session)
},
)