style: fix background task formatting

This commit is contained in:
Shoubhit Dash 2026-04-24 20:20:04 +05:30
commit 1357bb984f
5 changed files with 22 additions and 12 deletions

View file

@ -1751,7 +1751,8 @@ ToolRegistry.register({
const title = createMemo(() => agent().name ?? i18n.t("ui.tool.agent.default"))
const tone = createMemo(() => agent().color)
const subtitle = createMemo(() => {
const value = typeof props.input.description === "string" && props.input.description ? props.input.description : 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