diff --git a/packages/opencode/src/cli/cmd/opentui/session.tsx b/packages/opencode/src/cli/cmd/opentui/session.tsx
index bca22de00..445c6bb51 100644
--- a/packages/opencode/src/cli/cmd/opentui/session.tsx
+++ b/packages/opencode/src/cli/cmd/opentui/session.tsx
@@ -203,6 +203,7 @@ function ToolPart(props: { part: ToolPart; message: AssistantMessage }) {
paddingTop: 1,
paddingBottom: 1,
paddingLeft: 2,
+ gap: 1,
backgroundColor: Theme.backgroundPanel,
customBorderChars: SplitBorder.customBorderChars,
borderColor: Theme.background,
@@ -220,7 +221,7 @@ function ToolPart(props: { part: ToolPart; message: AssistantMessage }) {
output={props.part.state.status === "completed" ? props.part.state.output : undefined}
/>
{props.part.state.status === "error" && (
-
+
{props.part.state.error.replace("Error: ", "")}
)}
@@ -273,19 +274,19 @@ ToolRegistry.register({
container: "block",
ready(props) {
return (
-
+ <>
{props.input.description}
-
- $ {props.input.command}
-
- {props.output?.trim()}
-
+ $ {props.input.command}
+
+
+
+ {props.output?.trim()}
-
+ >
)
},
})
@@ -341,7 +342,7 @@ ToolRegistry.register({
})
return (
-
+ <>
Wrote {props.input.filePath}
@@ -353,7 +354,7 @@ ToolRegistry.register({
{code()}
-
+ >
)
},
})
@@ -414,7 +415,7 @@ ToolRegistry.register({
Task {props.input.description}
-
+
{(task) => (
@@ -460,7 +461,7 @@ ToolRegistry.register({
return styled
})
return (
-
+ <>
Edit {normalizePath(props.input.filePath!)}
@@ -469,7 +470,7 @@ ToolRegistry.register({
{code()}
-
+ >
)
},
})