Skip to content

fix(auxiliary): add xAI OAuth route to auth refresh provider resolver - #60264

Closed
isheng-eqi wants to merge 1 commit into
NousResearch:mainfrom
isheng-eqi:fix/aux-xai-auth-refresh-route
Closed

fix(auxiliary): add xAI OAuth route to auth refresh provider resolver#60264
isheng-eqi wants to merge 1 commit into
NousResearch:mainfrom
isheng-eqi:fix/aux-xai-auth-refresh-route

Conversation

@isheng-eqi

@isheng-eqi isheng-eqi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

_auth_refresh_provider_for_route() maps auto-routed base URLs to providers (#59837) but missed xAI OAuth. Adds api.x.ai -> xai-oauth mapping matching the sibling _resolve_provider_from_client().

Related Issue

Fixes sibling path of #59837 (#20832).

Type of Change

  • Bug fix

Changes Made

  • agent/auxiliary_client.py: Add xAI OAuth route to _auth_refresh_provider_for_route()

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/dashboard Web dashboard / control panel UI (dashboard/, landing) tool/skills Skills system (list, view, manage) platform/discord Discord bot adapter backend/modal Modal.com cloud execution backend/singularity Singularity container execution area/auth Authentication, OAuth, credential pools labels Jul 7, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Scope note: the title ("add xAI OAuth route") under-describes this PR. The diff spans 10 files and is dominantly a profile-scoped path-resolution fix (#40677) — resolving auth.json, the skills dir, and the modal/singularity snapshot stores at call time so long-lived multi-profile runtimes (Dashboard/TUI/Desktop backend, cron) respect the live profile-scoped HERMES_HOME, plus hermes_cli/web_server.py _profile_scope simplification (#60180). It also bundles an unrelated bounded Discord image download (memory guard, plugins/platforms/discord/adapter.py) and owner-only perms on snapshot writes (tools/environments/base.py). Completes merged #59837 and shares the xAI-OAuth auxiliary mechanism with open #34241 (related, not duplicate). Reviewers may want the profile-scope work split from the Discord download bound for cleaner review.

@isheng-eqi

Copy link
Copy Markdown
Contributor Author

Branch contaminated — rebuilding with clean base from upstream/main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools backend/modal Modal.com cloud execution backend/singularity Singularity container execution comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/dashboard Web dashboard / control panel UI (dashboard/, landing) P2 Medium — degraded but workaround exists platform/discord Discord bot adapter tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants