Skip to content

fix(agent): pass --redeem referral code to registration endpoint#60

Merged
R-M-Naveen merged 1 commit intomainfrom
naveen/referral-system
Mar 17, 2026
Merged

fix(agent): pass --redeem referral code to registration endpoint#60
R-M-Naveen merged 1 commit intomainfrom
naveen/referral-system

Conversation

@R-M-Naveen
Copy link
Member

No description provided.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

AI Code Review - APPROVE. This PR adds support for passing a --redeem referral code flag to the agent registration endpoint. Clean, minimal change: reads the flag via getArgValue (consistent with --server), conditionally spreads referralCode into the request body only when provided, and updates help text and examples. No security concerns. Minor optional suggestion: validate the referral code format client-side (e.g. ref_ prefix) to give better UX with an early error vs server-side rejection. Overall well done.

@R-M-Naveen R-M-Naveen merged commit 7499691 into main Mar 17, 2026
2 checks passed
@R-M-Naveen R-M-Naveen deleted the naveen/referral-system branch March 17, 2026 01:47
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