feat: add experimental background subagents (#27084)

This commit is contained in:
Shoubhit Dash 2026-05-14 22:10:15 +05:30 committed by GitHub
commit 22de34c4de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 975 additions and 101 deletions

View file

@ -1738,9 +1738,10 @@ ToolRegistry.register({
const title = createMemo(() => agent().name ?? i18n.t("ui.tool.agent.default"))
const tone = createMemo(() => agent().color)
const subtitle = createMemo(() => {
const value = props.input.description
if (typeof value === "string" && value) return value
return childSessionId()
const value = typeof props.input.description === "string" && props.input.description ? props.input.description : childSessionId()
if (!value) return value
if (props.metadata.background === true) return `${value} (background)`
return value
})
const running = createMemo(() => props.status === "pending" || props.status === "running")