File tree Expand file tree Collapse file tree
opencode/src/cli/cmd/tui/routes/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2000,7 +2000,8 @@ function Task(props: ToolProps<typeof TaskTool>) {
20002000
20012001 const content = createMemo ( ( ) => {
20022002 if ( ! props . input . description ) return ""
2003- let content = [ `${ Locale . titlecase ( props . input . subagent_type ?? "General" ) } Task — ${ props . input . description } ` ]
2003+ const description = props . metadata . background === true ? `${ props . input . description } (background)` : props . input . description
2004+ let content = [ `${ Locale . titlecase ( props . input . subagent_type ?? "General" ) } Task — ${ description } ` ]
20042005
20052006 if ( isRunning ( ) && tools ( ) . length > 0 ) {
20062007 // content[0] += ` · ${tools().length} toolcalls`
Original file line number Diff line number Diff line change @@ -1751,9 +1751,10 @@ ToolRegistry.register({
17511751 const title = createMemo ( ( ) => agent ( ) . name ?? i18n . t ( "ui.tool.agent.default" ) )
17521752 const tone = createMemo ( ( ) => agent ( ) . color )
17531753 const subtitle = createMemo ( ( ) => {
1754- const value = props . input . description
1755- if ( typeof value === "string" && value ) return value
1756- return childSessionId ( )
1754+ const value = typeof props . input . description === "string" && props . input . description ? props . input . description : childSessionId ( )
1755+ if ( ! value ) return value
1756+ if ( props . metadata . background === true ) return `${ value } (background)`
1757+ return value
17571758 } )
17581759 const running = createMemo ( ( ) => props . status === "pending" || props . status === "running" )
17591760
You can’t perform that action at this time.
0 commit comments