Skip to content

fix: support OpenClaude Codex auth path and disable broken agent chat#21

Draft
pedrotecinf wants to merge 2 commits intoEvolutionAPI:mainfrom
pedrotecinf:fix/codex-openclaude-agents
Draft

fix: support OpenClaude Codex auth path and disable broken agent chat#21
pedrotecinf wants to merge 2 commits intoEvolutionAPI:mainfrom
pedrotecinf:fix/codex-openclaude-agents

Conversation

@pedrotecinf
Copy link
Copy Markdown

Summary

This PR fixes two issues affecting EvoNexus when running with openclaude and Codex OAuth:

  1. openclaude was installed but not detected because the service/runtime PATH did not include user-local install
    locations such as ~/.npm-global/bin.
  2. Agent pages could open the structured Chat UI even when the active provider was codex_auth, but that flow still
    depended on the Anthropic SDK and failed with Not logged in · Please run /login.

What changed

  • Extended CLI path resolution to include common user-local bin directories.
  • Applied that resolution consistently across:
    • dashboard provider checks/tests
    • terminal session spawning
    • ADW runner execution
    • service startup PATH
  • Updated the agent detail page to treat agent Chat as unsupported when the active provider is not native claude.
  • Forced agent pages to fall back to Terminal mode under OAuth/OpenClaude until the chat bridge becomes provider-
    aware.
  • Added .gitignore entries for local EvoNexus workspace/runtime data to reduce accidental commits of personal
    conversations and logs.

Files changed

  • ADWs/runner.py
  • dashboard/backend/routes/providers.py
  • dashboard/terminal-server/src/claude-bridge.js
  • dashboard/frontend/src/pages/AgentDetail.tsx
  • start-services.sh
  • .gitignore

Behavior before

  • Providers page could show 'openclaude' not found in PATH even when it was installed in ~/.npm-global/bin.
  • Agent terminal/provider flow could work while agent Chat still failed with:
    • Claude Code returned an error result: Not logged in · Please run /login

Behavior after

  • EvoNexus resolves openclaude correctly from common user-local install paths.
  • Codex OAuth/OpenClaude users can use agents through Terminal mode without hitting the broken Anthropic chat path.
  • The UI now avoids exposing a chat mode that is known not to work for non-Anthropic providers.

Validation

  • Verified openclaude --version resolves successfully from the corrected path.
  • Restarted services with updated startup PATH.
  • Confirmed terminal-server logs show agent PTY sessions starting with openclaude.
  • Built the frontend successfully with npm run build.

Notes

This PR does not fully implement provider-aware support for dashboard/terminal-server/src/chat-bridge.js.
It prevents the broken UX path for now. A future PR can make the structured agent chat layer work with openclaude/
Codex OAuth as well.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @pedrotecinf, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

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.

1 participant