feat(tui): navigate child sessions (subagents)

This commit is contained in:
adamdotdevin
2025-08-15 10:16:08 -05:00
parent 1ae38c90a3
commit 07dbc30c63
10 changed files with 294 additions and 65 deletions

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)
},
)