From 2fc798a2769c474ccebeb67a799959f1de8399da Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 21 Sep 2025 04:25:02 -0400 Subject: [PATCH] continue --- .../opencode/src/cli/cmd/opentui/session.tsx | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/packages/opencode/src/cli/cmd/opentui/session.tsx b/packages/opencode/src/cli/cmd/opentui/session.tsx index 0226bb0f4..84ed8d00c 100644 --- a/packages/opencode/src/cli/cmd/opentui/session.tsx +++ b/packages/opencode/src/cli/cmd/opentui/session.tsx @@ -214,10 +214,10 @@ function ToolPart(props: { part: ToolPart; message: AssistantMessage }) { return ( { - resize(this) - }, 0) + ref={(r) => { + r.renderAfter = function () { + resize(this as BoxRenderable) + } }} > ({ ToolRegistry.register({ name: "webfetch", - container: "block", + container: "inline", ready(props) { return ( - <> - - WebFetch {(props.input as any).url} - - - - {props.output?.trim()} - - - + + WebFetch {(props.input as any).url} + ) }, }) @@ -503,13 +496,15 @@ ToolRegistry.register({ container: "block", ready(props) { return ( - - {(todo) => ( - - [{todo.status === "completed" ? "✓" : " "}] {todo.content} - - )} - + + + {(todo) => ( + + [{todo.status === "completed" ? "✓" : " "}] {todo.content} + + )} + + ) }, })