From 367ee47d7eb89ce52e55a9dfe346ce8c1642394e Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:07:03 -0400 Subject: [PATCH] fix(tui): tone down patch failure details (#46470) Co-authored-by: James Long <17031+jlongster@users.noreply.github.com> --- packages/tui/src/routes/session/index.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 7a3e57b728c..29db3fd10e4 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -3087,11 +3087,13 @@ function StatusBadge(props: { children: string }) { type BlockToolProps = { title?: string path?: { label: string; value: string } + headerColor?: RGBA children?: JSX.Element onClick?: () => void part?: SessionMessageAssistantTool spinner?: boolean error?: string + errorColor?: RGBA } function BlockTool(props: BlockToolProps) { @@ -3137,7 +3139,11 @@ function BlockToolContent(props: BlockToolProps & { borderColor: RGBA }) { {title()} + + {title()} + } > @@ -3153,7 +3159,10 @@ function BlockToolContent(props: BlockToolProps & { borderColor: RGBA }) { + {path().label} } @@ -3165,14 +3174,14 @@ function BlockToolContent(props: BlockToolProps & { borderColor: RGBA }) { )} {props.children} - {error()} + {error()} ) @@ -3777,6 +3786,8 @@ function ApplyPatch(props: ToolProps) { } part={props.part} spinner={props.part.state.status === "streaming" || props.part.state.status === "running"} + headerColor={props.part.state.status === "error" ? theme.text.feedback.error.default : undefined} + errorColor={props.part.state.status === "error" ? theme.text.subdued : undefined} />