mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
Apply PR #24174: feat(core): add background subagent support
This commit is contained in:
commit
41851ddeaa
12 changed files with 809 additions and 61 deletions
|
|
@ -1756,9 +1756,11 @@ 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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue