Repository navigation
Route arelay.to registry traffic to relay-agent - #151
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4987b31635
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Preview deployed!
This is a Cloudflare Workers preview version of this PR's build. |
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
View guided diff | Turn on auto-fix | Re-trigger cubic
Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013
Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013 Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013
Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013 Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013
Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013
fb899e8 to
b9746c0
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b9746c0. Configure here.
Session-Id: 01a1176f-b97d-7942-a94a-61f5b8b38013

Summary
POST /<handle>/<32hex>on arelay.to and www.arelay.to for every registry-shaped handle, leaving 404/410 decisions to relay-agentGET/HEAD /registerand bounded/api/v1/(registrations|agents)/**routes through the checked-in relay-agent service bindingarelay.to/<handle>rewrite to/u/<handle>and agents rewrite to/u/<handle>/agent.md; agentrelay.com uses the same paths under/uagent-relayconversation routeTests
npm --workspace router run typechecknpm --workspace router test(105/105)The relay-agent Worker and registry PRs must deploy before this router change. Rollback remains removal of
RELAY_AGENT_WORKER(andRELAY_AGENT_ORIGIN, if configured) followed by a router redeploy. No deploy, merge, secret, or production changes were performed.Note
High Risk
Changes edge routing for registration APIs and agent chat on a public short domain; misconfiguration or ordering vs relay-agent deploy could break registry signup or company handles, though rollback via removing the service binding is documented.
Overview
Routes
arelay.toagent registry and expanded chat traffic through therelay-agentWorker instead of only the hard-codedagent-relayslug.On
arelay.to,GET/HEAD/registerand prefix-bounded/api/v1/(registrations|agents)/**forward torelay-agent;POST /<handle>/<32hex>is accepted for any handle-shaped slug onarelay.toandwww.arelay.to(withagentrelay.comstill limited toagent-relay). Agent profile/guide negotiation atarelay.to/<handle>now works for arbitrary handles while reserved slugs (register,api,cloud, etc.) stay on their existing router meaning.When
RELAY_AGENT_WORKER(or origin) is configured, registry and chat hits go torelay-agentfirst; registry and non–agent-relaychat have no Cloud/marketing fallback and return 503 if the Worker is missing or fails. The legacyagent-relaychat path can still fall through to Cloud when relay-agent is rolled back. Traffic recorder and short-host redirects are updated so registry/chat secrets stay out of replay and agent routes are not redirected away incorrectly.Reviewed by Cursor Bugbot for commit fed8b90. Bugbot is set up for automated code reviews on this repo. Configure here.