diff options
| author | Kit Langton <[email protected]> | 2026-04-15 23:50:47 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-16 03:50:47 +0000 |
| commit | 8aa0f9fe9515ba0234ab6a0a58c868068913bb05 (patch) | |
| tree | d079fdd75796492449157256dafe7e309e04da63 /packages/web/src/components | |
| parent | c802695ee9555ccfd8b0a6ae2215f750bccda712 (diff) | |
| download | opencode-8aa0f9fe9515ba0234ab6a0a58c868068913bb05.tar.gz opencode-8aa0f9fe9515ba0234ab6a0a58c868068913bb05.zip | |
feat: enable type-aware no-base-to-string rule, fix 56 violations (#22750)
Diffstat (limited to 'packages/web/src/components')
| -rw-r--r-- | packages/web/src/components/share/part.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/web/src/components/share/part.tsx b/packages/web/src/components/share/part.tsx index c7d177df7..34cfe3f42 100644 --- a/packages/web/src/components/share/part.tsx +++ b/packages/web/src/components/share/part.tsx @@ -730,7 +730,13 @@ export function FallbackTool(props: ToolProps) { <> <div></div> <div>{arg[0]}</div> - <div>{String(arg[1] ?? "")}</div> + <div> + {typeof arg[1] === "string" || typeof arg[1] === "number" || typeof arg[1] === "boolean" + ? String(arg[1]) + : arg[1] == null + ? "" + : JSON.stringify(arg[1])} + </div> </> )} </For> |
