feat(ui): enable Grok in Cloud agent setup - #13791
Open
devinfoley wants to merge 2 commits into
Open
devinfoley wants to merge 2 commits into
devinfoley wants to merge 2 commits into
Conversation
Cloud agent creation filters out the existing Grok adapter. Add it to the shared policy used by the picker and direct setup links. Cover Grok selection and subscription/API-key setup through the managed sandbox, including provider bindings and secret-free hire payloads. Document the supported Cloud adapters. Verified 45 targeted UI tests, UI typecheck/build, and token gates. Repository-wide checks are in progress; the full typecheck/build require cargo, which is absent locally. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Contributor
|
Four available adapters previously wrapped into a three-plus-one desktop grid, and the connection tile always loaded the light-theme Grok asset. Use two columns for four choices and reuse the shared theme-aware adapter mark. Verified 69 focused UI tests, UI typecheck, token gates, and a local production build. Browser checks confirmed a 2x2 grid at desktop and mobile widths and the correct visible Grok asset in both themes. Co-Authored-By: Paperclip <noreply@paperclip.ing>
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.
Thinking Path
Linked Issues or Issue Description
What existing behavior does this improve?
Agent creation on Cloud.
Current behavior
The Cloud picker offers Claude, Codex, and OpenCode. Direct Grok setup links also fail the shared adapter check.
Proposed behavior
Offer Grok alongside the existing choices. Use the existing xAI connection and managed sandbox setup.
Reason and benefit
Users can select an already-supported adapter through the Cloud creation flow.
Breaking changes
None. Loaded and enabled checks still apply. Other excluded adapters remain excluded.
What Changed
grok_localto the shared Cloud creation policy.Verification
cd ui && pnpm exec vitest run src/components/NewAgentDialog.test.tsx src/pages/NewAgent.test.tsx src/components/new-agent/AgentProviderConnection.test.tsx— 69 tests passed.pnpm --filter @paperclipai/ui typecheck— passed.pnpm --filter @paperclipai/ui build— passed.pnpm check:token-gates— passed.git diff origin/master...HEAD | gitleaks stdin --redact --no-banner— no leaks found; manual diff review found no private identifiers or user data.pnpm -r typecheckandpnpm build— blocked at the existing runner package becausecargois not installed locally.pnpm test:run— started locally, then stopped after the equivalent CI suites passed.Risks
Small UI policy change. The existing Grok adapter, authentication, and secret storage paths remain in use. No schema or control-plane change is required. Cloud must deploy a tenant-app release containing this change. Revert the policy entry to hide Grok from new-agent setup again.
Model Used
Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template#NNN/github.com/paperclipai/paperclipURLs)docs/...,fix/...) and contains no internal Paperclip ticket id or instance-derived details