fix(agent): add title field to SDK Agent type definition

The SDK's Agent type definition was missing the `title` field, causing
TypeScript errors when accessing item.title in the agent dialog component.

**Changes:**
- Added optional `title?: string` field to Agent type in SDK

This aligns the SDK type with the config schema definition where
title was already added.

Fixes typecheck failure in PR #13839

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
pull/13839/head
hobostay 2026-02-16 20:16:29 +08:00
parent a55eb53a24
commit d7b3511689
1 changed files with 1 additions and 0 deletions

View File

@ -2211,6 +2211,7 @@ export type Command = {
export type Agent = {
name: string
title?: string
description?: string
mode: "subagent" | "primary" | "all"
native?: boolean