Skip to content

feat(dashboard): Add spawn modal credentials validation#108

Merged
khaliqgant merged 2 commits intomainfrom
fix/spawn-auth-check
Jan 8, 2026
Merged

feat(dashboard): Add spawn modal credentials validation#108
khaliqgant merged 2 commits intomainfrom
fix/spawn-auth-check

Conversation

@agent-relay-rachel
Copy link
Copy Markdown
Contributor

Summary

  • Block spawn button when AI provider credentials are missing
  • Show CTA with link to provider setup page for unauthenticated users
  • Fetch connected providers from cloudApi.getMe() when modal opens
  • Map agent templates to provider IDs for credential checking
  • Add loading state while checking credentials

Changes

  • SpawnModal.tsx: Added credentials validation logic, CTA banner, and loading state
  • App.tsx: Pass isCloudMode and workspaceId props to SpawnModal

Test plan

  • Open spawn modal without any provider connected - verify CTA appears
  • Verify spawn button is disabled when no credentials
  • Click "Connect [Provider]" CTA - verify redirect to provider setup page
  • Connect a provider, open spawn modal - verify spawn works normally
  • Select different templates - verify credentials check updates

🤖 Generated with Claude Code

Agent Relay and others added 2 commits January 8, 2026 13:07
- Block spawn button when AI provider credentials are missing
- Show CTA with link to provider setup page for unauthenticated users
- Fetch connected providers from cloudApi.getMe() when modal opens
- Map agent templates to provider IDs for credential checking
- Add loading state while checking credentials

Addresses issue where users could attempt to spawn agents without
valid provider credentials.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
/providers/setup/ only supports claude and codex. Other providers
(gemini, opencode, droid) should redirect to /providers page.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@khaliqgant
Copy link
Copy Markdown
Member

khaliqgant commented Jan 8, 2026

LGTM @willwashburn ACK?

@khaliqgant khaliqgant merged commit 14af603 into main Jan 8, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/spawn-auth-check branch January 8, 2026 23:40
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