summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/cli/cmd/tui/routes/session/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
index 9af2ce378..83f44c944 100644
--- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
@@ -1101,7 +1101,11 @@ const PART_MAPPING = {
function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: AssistantMessage }) {
const { theme, subtleSyntax } = useTheme()
const ctx = use()
- const content = createMemo(() => props.part.text.trim())
+ const content = createMemo(() => {
+ // Filter out redacted reasoning chunks from OpenRouter
+ // OpenRouter sends encrypted reasoning data that appears as [REDACTED]
+ return props.part.text.replace("[REDACTED]", "").trim()
+ })
return (
<Show when={content() && ctx.showThinking()}>
<box