#14934: fix: add mistral to MemorySearchSchema provider/fallback unions
stale
size: XS
Cluster:
Voice Transcription Enhancements
## Summary
- The Mistral embedding provider was added to the runtime code but the Zod config schema (`MemorySearchSchema`) was not updated
- Setting `agents.defaults.memorySearch.provider: "mistral"` or `fallback: "mistral"` causes config validation to fail with `Invalid input`
- This silently breaks cron job execution since the gateway cannot load the config
## Changes
- Added `z.literal("mistral")` to the `provider` union in `MemorySearchSchema`
- Added `z.literal("mistral")` to the `fallback` union in `MemorySearchSchema`
## Test plan
- [ ] Set `agents.defaults.memorySearch.provider` to `"mistral"` in config
- [ ] Verify `openclaw doctor` passes config validation
- [ ] Verify cron jobs execute without config load errors
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the agent runtime Zod config schema (`src/config/zod-schema.agent-runtime.ts`) to recognize the Mistral embedding provider in `MemorySearchSchema`.
Concretely, it adds `"mistral"` to the allowed literal unions for both `memorySearch.provider` and `memorySearch.fallback`, aligning schema validation with the already-supported runtime provider so configs like `agents.defaults.memorySearch.provider: "mistral"` no longer fail validation (which previously prevented config load and could block cron job execution).
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- The change is a small, additive schema update (adding a single allowed literal value) in the same pattern as existing providers, with no behavioral logic changes and no new branching paths.
- No files require special attention
<sub>Last reviewed commit: 59f05ef</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#10197: fix: add missing allowAgents to agent defaults subagents schema
by Yida-Dev · 2026-02-06
77.4%
#10807: fix(config): coerce numeric meta.lastTouchedAt to ISO string
by mcaxtr · 2026-02-07
76.9%
#16258: feat(models): add Mistral AI provider support
by joeVenner · 2026-02-14
75.1%
#14640: feat(agents): support per-agent temperature and maxTokens in agents...
by lailoo · 2026-02-12
75.0%
#20673: fix #20566: allow unknown fields in provider config
by neipor · 2026-02-19
74.0%
#10943: fix(config): resolve Control UI "Unsupported schema node" for confi...
by kraftbj · 2026-02-07
73.5%
#8252: Config: honor legacy memorySearch alias
by sauerdaniel · 2026-02-03
73.4%
#22140: feat(config): add usageDefault to agent defaults for persistent /us...
by Mellowambience · 2026-02-20
73.1%
#16290: fix: add field-level validation for custom LLM provider config
by superlowburn · 2026-02-14
72.4%
#12499: fix(config): add missing customBindHost to gateway Zod schema
by sfo2001 · 2026-02-09
71.7%