github Yeachan-Heo/oh-my-claudecode v4.1.12

latest releases: v4.10.2, v4.10.1, v4.10.0...
one month ago

Fix: Codex/Gemini MCP bridge agent roles

Bug Fix

  • Codex/Gemini MCP bridges were rejecting all agent_role values with "Unknown agent_role" and an empty available roles list
  • Root cause: getValidAgentRoles() runtime filesystem scan silently failed in the bundled CJS context

Solution

  • Agent roles list and prompt contents are now embedded at build time via esbuild define, eliminating the runtime filesystem dependency
  • Dev/test environments still work via the filesystem fallback
  • All 30 agent roles and their full prompt content are inlined in the bundle

Files Changed

  • src/mcp/prompt-injection.ts - Build-time __AGENT_ROLES__ injection with runtime fallback
  • src/agents/utils.ts - Build-time __AGENT_PROMPTS__ injection with runtime fallback
  • scripts/build-codex-server.mjs - Scans agents/*.md and passes roles/prompts via esbuild define
  • scripts/build-gemini-server.mjs - Same treatment

Full Changelog: v4.1.11...v4.1.12

Don't miss a new oh-my-claudecode release

NewReleases is sending notifications on new releases.