mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-04-30 18:50:29 +08:00
fix(team-mode): reject empty team_create lead session override
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -22,7 +22,7 @@ const TEAM_CREATE_USAGE = "team_create requires exactly one of teamName or inlin
|
||||
const TeamCreateArgsSchema = z.object({
|
||||
teamName: z.string().min(1).optional(),
|
||||
inline_spec: z.unknown().optional(),
|
||||
leadSessionId: z.string().min(1).optional(),
|
||||
leadSessionId: z.string().optional(),
|
||||
}).superRefine((value, ctx) => {
|
||||
const optionCount = Number(value.teamName !== undefined) + Number(value.inline_spec !== undefined)
|
||||
if (optionCount !== 1) {
|
||||
|
||||
Reference in New Issue
Block a user