Skip to content

feat(foundry): implement provider credential management#266

Open
NathanFlurry wants to merge 1 commit intomainfrom
fix-foundry-auth-error
Open

feat(foundry): implement provider credential management#266
NathanFlurry wants to merge 1 commit intomainfrom
fix-foundry-auth-error

Conversation

@NathanFlurry
Copy link
Member

Summary

Add credential extraction, injection, and UI for managing Claude and Codex OAuth credentials in sandbox environments. Credentials are stored per-user in the user actor, injected on task owner swap, and periodically re-extracted to capture token refreshes.

Changes

  • User Actor: New userProviderCredentials table with upsertProviderCredential, getProviderCredentials, and getProviderCredentialStatus actions
  • Task Workspace: Extract/inject provider credentials, integrate with owner swap and derived state polling
  • App Snapshot: Include provider credential status (anthropic/openai booleans) in user view
  • Frontend: New Providers section in account settings showing sign-in status with action buttons

Test Plan

  • Verify typecheck passes: ✅ All foundry packages type-check successfully
  • Verify credential injection on owner swap: task actor fetches new owner's credentials and injects into sandbox
  • Verify credential extraction on polling: task actor periodically reads credential files and persists updates
  • Verify UI displays provider status: account settings shows credential status from snapshot

🤖 Generated with Claude Code

Add credential extraction, injection, and UI for managing Claude and Codex OAuth credentials in sandbox environments. Credentials are stored per-user in the user actor, injected on task owner swap, and periodically re-extracted to capture token refreshes. Frontend account settings show provider sign-in status.

Changes:
- User actor: new userProviderCredentials table with upsert/get actions
- Task workspace: extract/inject provider credentials, integrate with owner swap and polling
- App snapshot: include provider credential status (anthropic/openai booleans)
- Frontend: new Providers section in account settings

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@railway-app
Copy link

railway-app bot commented Mar 17, 2026

🚅 Deployed to the sandbox-agent-pr-266 environment in sandbox-agent

Service Status Web Updated (UTC)
website 😴 Sleeping (View Logs) Web Mar 23, 2026 at 4:29 pm
foundry-api ❌ Build Failed (View Logs) Mar 17, 2026 at 9:35 am
foundry-mock ❌ Build Failed (View Logs) Mar 17, 2026 at 9:35 am

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