Skip to content

fix(agent-relay): our own agent guide lost its identity and setup line - #163

Merged
khaliqgant merged 1 commit into
mainfrom
fix/agent-relay-guide-identity
Oct 8, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
fix/agent-relay-guide-identity

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Bug (live)

curl https://arelay.to/agent-relay shows "Chat with the registered agent "Agent Relay" for me" and no longer includes the "Before you set anything up for Agent Relay … confirm each step with it" line (added in #150 after a visitor's agent created a stray workspace).

Cause: agentChatAgentGuide passed normalizeAgentName(agentName) ('Agent Relay' when none was given) to agentChatSnippet. The snippet's isAgentRelay check treats a named agent without the agent-relay handle as a registered third-party agent.

Fix

For our own agent, pass no name to the snippet. Company handles are unchanged.

Test

A new test covers both the no-args and the agent-relay handle guides (our identity plus the setup line) and a company handle (registered label, no Agent Relay setup line). It fails on main, passes with the fix. Snippet tests pass 18/18.

🤖 Generated with Claude Code


Note

Low Risk
Copy-generation fix in agent chat snippets with a focused regression test; no auth or API behavior changes.

Overview
Fixes a regression where agentChatAgentGuide passed a normalized default name ("Agent Relay") into agentChatSnippet, so the snippet treated our own agent like a third-party registered agent. Visitors saw "Chat with the registered agent …" and lost the "Before you set anything up for Agent Relay …" confirmation block on curl / agent-fetch of the guide.

For Agent Relay (isAgentRelay), the guide now passes agentName: undefined into the snippet so identity and setup wording stay correct; company handles are unchanged.

Adds a test that locks in our-agent guides (no-args and agent-relay handle) vs a company handle.

Reviewed by Cursor Bugbot for commit 76be395. Bugbot is set up for automated code reviews on this repo. Configure here.


Summary by cubic

Fixes the agent guide at arelay.to/agent-relay so our own agent keeps its identity and the "Before you set anything up" line instead of appearing as a registered third-party agent.

  • A normalized name made the snippet treat Agent Relay as a registered agent, which dropped the setup hint.
  • The snippet now receives no name for our own agent; company handle guides keep their registered label.
  • A new test covers the no-args and agent-relay handle guides plus a company handle case, and fails without the fix.

Written for commit 76be395. Summary will update on new commits.

View guided diff Turn on auto-fix


Agent Relay sessions

  • claude session 1e2adfbe · opened via gh pr create · last active 2026-10-08

agentChatAgentGuide passed the normalized display name to the snippet, so the
official page read "Chat with the registered agent 'Agent Relay'" and
dropped the check-setup-with-our-agent line. Pass no name for our own agent.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 907c18d0-d705-4c29-9785-e19329fa9270
📥 Commits

Reviewing files that changed from the base of the PR and between 0c6c11c and 76be395.

📒 Files selected for processing (2)
  • web/lib/agent-chat-snippet.ts
  • web/lib/test/agent-chat-snippet.test.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T06:58:00.777222Z 76be395 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployed!

Environment URL
Web https://b918d922-agentrelay-web.agent-workforce.workers.dev

This is a Cloudflare Workers preview version of this PR's build.

@khaliqgant
khaliqgant merged commit 666fe19 into main Oct 8, 2026
6 checks passed
@khaliqgant
khaliqgant deleted the fix/agent-relay-guide-identity branch October 8, 2026 07:33
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