Use aieo's xAI provider instead of hand-rolled workarounds - #5228
Merged
Conversation
aieo 0.1.35 ships xai as a first-class provider, so hive no longer needs the guards added in #5227 that assumed it didn't: - Bump aieo to ^0.1.35. - Remove the runCanvasAgent throw for xai/* models; Grok now flows through the same generic aieo provider branch as everything else. - Remove the client-side XAI filter in CanvasAgentSettingsPopover; the server-side key filter on /api/llm-models already covers availability. - Delete the test that pinned the throw. - Add models-aieo-parity.test.ts: models.ts can't import aieo (it's bundled client-side), so this pins its provider->env-var table to aieo's PROVIDERS and key lookup to prevent drift. - Rewrite stale comments claiming aieo lacks xai or pointing at nonexistent "feature notes". The Bifrost bypasses in the agent route and task-workflow stay: the remaining blocker is that the VK provider allow-list and the swarm gateways have no xai provider configured, not aieo. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Evanfeenstra
enabled auto-merge (squash)
September 2, 2026 15:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #5227. That PR added xAI as a provider but worked around the installed
aieo(0.1.34) lacking an xai entry, with a hard throw in the canvas agent, a client-side picker filter, and comments pointing at "feature notes" that don't exist. The xai support had actually landed in aieo (stakwork/stakgraph#1565) but was never published; aieo 0.1.35 is now out with it.aieoto^0.1.35runCanvasAgentthrow forxai/*models. Grok now flows through the same generic aieo provider branch as every other provider, with aieo doing the key lookupXAIfilter inCanvasAgentSettingsPopover;/api/llm-modelsalready filters by configured key server-siderunCanvasAgent-xai.test.ts, which pinned the throwmodels-aieo-parity.test.ts.models.tsis imported by client components so it can't import aieo directly; this test pins its provider→env-var table to aieo'sPROVIDERSandhasApiKeyForProviderso the two can't drift againmodels.ts, the agent route,task-workflow.ts, andenv.tsDeliberately kept
/api/agentandcallStakworkAPI. The blocker is no longer aieo:DEFAULT_PROVIDERSinsrc/services/bifrost/constants.tshas no xai entry and the swarm gateways have no xai provider key. Comments now say exactly that. Remove once the gateways carry an xai key.Test plan
tsc --noEmitclean on non-test files (afterprisma generate)eslintclean on changed fileslib/ai, user preferences, task-workflow, call-stakwork-api pass (980 tests incl. 10 new parity checks). The one failure ingraphWriteAuth.test.tsis pre-existing and reproduces on a clean tree.🤖 Generated with Claude Code