Repository navigation
[STALE: REBASE FROM NEW FORK] AgentRadar account pin admits Copilot, Cursor and Devin sign-ins (.22) - #20
Conversation
…vin sign-ins (.22) AgentRadar AGE-2323 (Vadym 21431, "Let them in too") adds hosted sign-ins for GitHub Copilot, Cursor and Devin next to Claude, ChatGPT, Grok and Kimi. Every hosted turn carries the x-agentradar-account-pin header, and the gateway refused any pin provider other than claude, codex, grok or kimi, so a signed-in Copilot, Cursor or Devin account could never serve a pinned turn. The pin's provider names now come from one table, AGENTRADAR_PIN_PROVIDERS, which maps each AgentRadar sign-in name to the OCX OAuth provider whose stored account it may serve (copilot -> github-copilot, cursor -> cursor, devin -> devin). The header parser and the route check in prepareResponsesRequest both read it, so they cannot drift. Codex keeps its own pool path. The check is otherwise unchanged: only an oauth candidate of exactly that provider serves the pin, so a pin never reaches another provider's account or an API key. Tests: tests/server/agentradar-account-pin-e2e.test.ts adds a github-copilot provider with two accounts. A copilot pin on the second-listed account serves with that account's token while the active account stays the other one, and a copilot pin on a kimi route is refused before any inference. Copilot, Cursor and Devin pins all join the cross-provider refusal loop. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
✅ Deterministic PR hygiene checks passed. |
|
This PR is based on the superseded 2.65 gateway line. Rebuild the change from |
|
Trial evidence: before the merge the build ran 30.5 h on the laptop gateway and 24 h on the personal Mac Mini gateway, both with For new work:
Before opening a PR, use pinned Bun 1.4.4 with an isolated
Hosted-only behavior needs For this PR: the pin provider allowlist on 🤖 Generated with Claude Code |
AgentRadar AGE-2323 (Vadym 21431, "Let them in too"): hosted sign-ins for GitHub Copilot, Cursor and Devin. Stacked on #19 (.21); release tag .22.
What changes
Every hosted AgentRadar turn carries an account pin. The gateway accepted only claude, codex, grok and kimi pins, so a Copilot, Cursor or Devin sign-in could never serve a pinned turn.
AGENTRADAR_PIN_PROVIDERSinsrc/server/responses/core-options.tsmaps each AgentRadar sign-in name to the OCX OAuth provider it may serve: claude -> anthropic, grok -> xai, kimi -> kimi, copilot -> github-copilot, cursor -> cursor, devin -> devin. Codex keeps its own pool path.request-prepare.tsboth read that table.Tests
tests/server/agentradar-account-pin-e2e.test.ts:Bearer tcA), and the active account stayscB.Lane run (typecheck plus the pin e2e):
TSC=0, 3 pass, 0 fail.Not in this PR
This PR adds no provider login, no model list and no adapter change. The Copilot, Cursor and Devin bridges are already in the fork; they are labelled experimental or unofficial there, and that label is with the AgentRadar lead before any of them is offered to customers.
🤖 Generated with Claude Code