Skip to content

fix: include Grok in --search help text, completions, and locales#2140

Open
Resistor52 wants to merge 2 commits into
danielmiessler:mainfrom
Resistor52:fix/search-help-grok-i18n
Open

fix: include Grok in --search help text, completions, and locales#2140
Resistor52 wants to merge 2 commits into
danielmiessler:mainfrom
Resistor52:fix/search-help-grok-i18n

Conversation

@Resistor52

Copy link
Copy Markdown

What

--search supports Grok (xAI) web search since #2092, but fabric --help still shows:

--search    Enable web search tool for supported models (Anthropic, OpenAI, Gemini)

The capability works (-V GrokAI -m grok-4.3 --search grounds correctly), but the help text, shell completions, and README still omit Grok, so the support is undiscoverable.

Root cause

--help renders flag descriptions from the i18n message catalog, not the go-flags struct tag. internal/cli/help.go maps the flag to a key:

"search": "enable_web_search_tool",

#2092 updated the struct tag in internal/cli/flags.go (...Gemini, Grok)) but not the catalog value, so the rendered help kept the old vendor list.

Change

Append Grok to the enable_web_search_tool value in all 11 locales (matching each locale's list separator, including the full-width for ja/zh and the Arabic comma for fa), the zsh and fish completions, and the generated README help block. No functional change; 14 files, one line each.

Test plan

  • go build ./cmd/fabric && ./fabric --help | grep -- --search now shows (Anthropic, OpenAI, Gemini, Grok).
  • go test ./internal/i18n/... passes.
  • All locale JSON files validate.

🤖 Generated with Claude Code

khartman and others added 2 commits June 15, 2026 16:39
PR danielmiessler#2092 added Grok (xAI) web search support and updated the go-flags
struct tag in internal/cli/flags.go, but `fabric --help` renders flag
descriptions from the i18n message catalog (internal/cli/help.go maps
"search" -> "enable_web_search_tool"), not from the struct tag. The
catalog value was never updated, so --help, the zsh/fish completions,
and the README help block still listed only Anthropic, OpenAI, Gemini,
leaving the Grok support undiscoverable even though it works.

Append "Grok" to the enable_web_search_tool value in all 11 locales
(matching each locale's list separator), the zsh and fish completions,
and the generated README help block. No functional change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants