File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/opencode/src/cli/cmd/tui/routes/session Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1503,11 +1503,15 @@ ToolRegistry.register<typeof TaskTool>({
15031503 < Show when = { props . metadata . summary ?. length } >
15041504 < box >
15051505 < For each = { props . metadata . summary ?? [ ] } >
1506- { ( task ) => (
1507- < text style = { { fg : task . state . status === "error" ? theme . error : theme . textMuted } } >
1508- ∟ { Locale . titlecase ( task . tool ) } { task . state . status === "completed" ? task . state . title : "" }
1509- </ text >
1510- ) }
1506+ { ( task , index ) => {
1507+ const summary = props . metadata . summary ?? [ ]
1508+ return (
1509+ < text style = { { fg : task . state . status === "error" ? theme . error : theme . textMuted } } >
1510+ { index ( ) === summary . length - 1 ? "└" : "├" } { Locale . titlecase ( task . tool ) } { " " }
1511+ { task . state . status === "completed" ? task . state . title : "" }
1512+ </ text >
1513+ )
1514+ } }
15111515 </ For >
15121516 </ box >
15131517 </ Show >
You can’t perform that action at this time.
0 commit comments