feat(tui): navigate child sessions (subagents)
This commit is contained in:
parent
1ae38c90a3
commit
07dbc30c63
1 changed files with 294 additions and 65 deletions
|
|
@ -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)
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue