File tree Expand file tree Collapse file tree
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- const description = props . metadata . background === true ? `${ props . input . description } (background)` : props . input . description
2003+ const description =
2004+ props . metadata . background === true ? `${ props . input . description } (background)` : props . input . description
20042005 let content = [ `${ Locale . titlecase ( props . input . subagent_type ?? "General" ) } Task — ${ description } ` ]
20052006
20062007 if ( isRunning ( ) && tools ( ) . length > 0 ) {
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ export const layer: Layer.Layer<
8080 | Todo . Service
8181 | Agent . Service
8282 | Skill . Service
83- | Session . Service
84- | SessionStatus . Service
85- | Provider . Service
83+ | Session . Service
84+ | SessionStatus . Service
85+ | Provider . Service
8686 | LSP . Service
8787 | Instruction . Service
8888 | AppFileSystem . Service
Original file line number Diff line number Diff line change @@ -66,7 +66,11 @@ export const TaskStatusTool = Tool.define(
6666 }
6767
6868 const latestUser = yield * sessions . findMessage ( taskID , ( item ) => item . info . role === "user" )
69- if ( Option . isSome ( latestUser ) && latestUser . value . info . role === "user" && latestUser . value . info . id > latestAssistant . value . info . id ) {
69+ if (
70+ Option . isSome ( latestUser ) &&
71+ latestUser . value . info . role === "user" &&
72+ latestUser . value . info . id > latestAssistant . value . info . id
73+ ) {
7074 return {
7175 state : "running" as const ,
7276 text : "Task is starting." ,
@@ -96,8 +100,12 @@ export const TaskStatusTool = Tool.define(
96100 }
97101 } )
98102
99- const waitForTerminal : ( taskID : SessionID , timeout : number ) => Effect . Effect < { result : InspectResult ; timedOut : boolean } > =
100- Effect . fn ( "TaskStatusTool.waitForTerminal" ) ( function * ( taskID : SessionID , timeout : number ) {
103+ const waitForTerminal : (
104+ taskID : SessionID ,
105+ timeout : number ,
106+ ) => Effect . Effect < { result : InspectResult ; timedOut : boolean } > = Effect . fn (
107+ "TaskStatusTool.waitForTerminal" ,
108+ ) ( function * ( taskID : SessionID , timeout : number ) {
101109 const result = yield * inspect ( taskID )
102110 if ( result . state !== "running" ) return { result, timedOut : false }
103111 if ( timeout <= 0 ) return { result, timedOut : true }
Original file line number Diff line number Diff line change @@ -336,10 +336,10 @@ describe("tool.task", () => {
336336 const result = yield * def . execute (
337337 {
338338 description : "inspect bug" ,
339- prompt : "look into the cache key path" ,
340- subagent_type : "general" ,
341- task_id : SessionID . make ( "ses_missing" ) ,
342- } ,
339+ prompt : "look into the cache key path" ,
340+ subagent_type : "general" ,
341+ task_id : SessionID . make ( "ses_missing" ) ,
342+ } ,
343343 {
344344 sessionID : chat . id ,
345345 messageID : assistant . id ,
Original file line number Diff line number Diff line change @@ -1751,7 +1751,8 @@ 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 = typeof props . input . description === "string" && props . input . description ? props . input . description : childSessionId ( )
1754+ const value =
1755+ typeof props . input . description === "string" && props . input . description ? props . input . description : childSessionId ( )
17551756 if ( ! value ) return value
17561757 if ( props . metadata . background === true ) return `${ value } (background)`
17571758 return value
You can’t perform that action at this time.
0 commit comments