From 911fb7063ad4a548690a91aaaa0e3705316d06c0 Mon Sep 17 00:00:00 2001
From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Date: Fri, 3 Jul 2026 12:06:58 -0500
Subject: [PATCH] fix(tui): align execute child calls with task indentation
(#35190)
---
packages/tui/src/routes/session/index.tsx | 24 +++++++++--------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx
index 32de4faf72..6df6b00d2d 100644
--- a/packages/tui/src/routes/session/index.tsx
+++ b/packages/tui/src/routes/session/index.tsx
@@ -2348,6 +2348,14 @@ function Execute(props: ToolProps) {
const hasRuntimeError = createMemo(() => props.metadata.error === true)
const outputPreview = createMemo(() => collapseToolOutput(output(), 4, 4 * Math.max(20, ctx.width - 6)).output)
const showOutput = createMemo(() => output() && hasRuntimeError())
+ const content = createMemo(() => {
+ const lines = ["execute"]
+ for (const call of calls()) {
+ const args = input(call.input ?? {})
+ lines.push(`↳ ${call.tool}${args ? ` ${args}` : ""}${call.status === "error" ? " (failed)" : ""}`)
+ }
+ return lines.join("\n")
+ })
return (
<>
@@ -2359,22 +2367,8 @@ function Execute(props: ToolProps) {
complete={true}
part={props.part}
>
- execute
+ {content()}
-
- {(call) => {
- const args = input(call.input ?? {})
- return (
-
-
- ↳ {call.tool}
- {args ? ` ${args}` : ""}
- {call.status === "error" ? " (failed)" : ""}
-
-
- )
- }}
-