From c3faeae9d0a71bb6434178f07ba5ac51f348196a Mon Sep 17 00:00:00 2001 From: adamjhf <50264672+adamjhf@users.noreply.github.com> Date: Sun, 1 Feb 2026 17:15:28 +1100 Subject: [PATCH] fix: correct pluralization of match count in grep and glob tools (#11565) --- .../opencode/src/cli/cmd/tui/routes/session/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 e5b3dc440..ada84e487 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1707,7 +1707,9 @@ function Glob(props: ToolProps) { return ( Glob "{props.input.pattern}" in {normalizePath(props.input.path)} - ({props.metadata.count} matches) + + ({props.metadata.count} {props.metadata.count === 1 ? "match" : "matches"}) + ) } @@ -1743,7 +1745,9 @@ function Grep(props: ToolProps) { return ( Grep "{props.input.pattern}" in {normalizePath(props.input.path)} - ({props.metadata.matches} matches) + + ({props.metadata.matches} {props.metadata.matches === 1 ? "match" : "matches"}) + ) }