diff options
| author | Aiden Cline <[email protected]> | 2025-12-02 12:29:20 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-02 12:29:20 -0600 |
| commit | d9b0848a611eddb2283e888821e1dba7676a3744 (patch) | |
| tree | 968c216d012afe072f12503fa5ffca2616a95914 | |
| parent | 46dd3b8166d32d174cfb31b503629f86f248cf57 (diff) | |
| download | opencode-d9b0848a611eddb2283e888821e1dba7676a3744.tar.gz opencode-d9b0848a611eddb2283e888821e1dba7676a3744.zip | |
tweak: hide [REDACTED] chunks
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 6 |
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 |
