fix: fall back to legacy API when agent create returns HTML#19
fix: fall back to legacy API when agent create returns HTML#19michaelschecht wants to merge 1 commit intoax-platform:mainfrom
Conversation
The /agents/manage/create route is caught by the frontend, returning HTML instead of JSON. Add a fallback to /api/v1/agents when the management API fails with an HTTPStatusError. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Hi @michaelschecht — closing this with credit. Your fix landed on Why the cherry-pick instead of merging this PR directly: your branch is based on un-formatted Two minor review notes I filed as future-work suggestions, not blockers (fully visible in PR #23's description):
Both are nice-to-haves. The fix as-is ships real value. Thanks for the contribution! Closing this PR — tracking further work on PR #23. |
Summary
ax agents createfails because/agents/manage/createis caught by the frontend, returning HTML instead of JSONHTTPStatusError, retry via the legacy/api/v1/agentsendpointTest plan
ax agents create "test-agent" --jsonsucceeds after the fixax agents list🤖 Generated with Claude Code