sandbox-agent/foundry/packages
Nathan Flurry 8ddec6831b fix(foundry): deduplicate OAuth callbacks and cache actor handles to fix production auth
The production proxy chain (Cloudflare -> Fastly -> Railway) retries
OAuth callback requests when they take >10s. The first request succeeds
and deletes the verification record, so the retry fails with
"verification not found" -> ?error=please_restart_the_process.

- Add callback deduplication by OAuth state param in the auth handler.
  Duplicate requests wait for the original and return a cloned response.
- Cache appOrganization() and getUser() actor handles to eliminate
  redundant getOrCreate RPCs during callbacks (was 10+ per sign-in).
- Add diagnostic logging for auth callback timing and adapter operations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 22:29:17 -07:00
..
backend fix(foundry): deduplicate OAuth callbacks and cache actor handles to fix production auth 2026-03-16 22:29:17 -07:00
cli chore(foundry): migrate to actions (#262) 2026-03-16 15:23:59 -07:00
client feat(foundry): task owner git auth + manual owner change UI (#263) 2026-03-16 17:05:11 -07:00
desktop chore(foundry): workbench action responsiveness (#254) 2026-03-14 20:42:18 -07:00
frontend feat(foundry): task owner git auth + manual owner change UI (#263) 2026-03-16 17:05:11 -07:00
shared feat(foundry): task owner git auth + manual owner change UI (#263) 2026-03-16 17:05:11 -07:00