fix(docs+ui): add MDX frontmatter to Codex CLI guide, fix setState-in-effect lint

- docs/guides/CODEX-CLI-CONFIGURATION.md was missing the YAML frontmatter
  block required by fumadocs (title/version/lastUpdated), causing the
  production build to fail with "invalid frontmatter" MDX error.
- CodexCliGuideModal.tsx called setLoading/setError synchronously in a
  useEffect body, triggering the react-hooks/set-state-in-effect lint error.
  Refactored to an internal async function with an `cancelled` guard to
  prevent state updates on unmounted components.
This commit is contained in:
diegosouzapw
2026-06-08 08:37:51 -03:00
parent 67d79f6c44
commit e328e257d1
2 changed files with 25 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
---
title: "Codex CLI — Configuration with OmniRoute"
version: 3.8.16
lastUpdated: 2026-06-08
---
# Codex CLI — Configuration with OmniRoute
Complete guide for using the Codex CLI pointed at OmniRoute as an OpenAI-compatible backend.