Skip to content

test(cli): cover login --token defaulting to hosted relayfile - #401

Draft
khaliqgant wants to merge 1 commit into
mainfrom
fix/328-verify-hosted-server-default
Draft

test(cli): cover login --token defaulting to hosted relayfile#401
khaliqgant wants to merge 1 commit into
mainfrom
fix/328-verify-hosted-server-default

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Aug 5, 2026

Copy link
Copy Markdown
Member

Closes #328.

Verified — no production code change needed — that the CLI already defaults to `https://file.agentrelay.com\`. Traced `defaultServerURL` through `runLogin`, `loginWithAPIKey`, `newAPIClient`, and `resolveServer`; no Go code retains the stale `https://api.relayfile.dev\` default. Adds a real regression test asserting `login --token` with no `--server` issues its health check against, and persists, the hosted endpoint.

Test plan

  • `go build ./...`
  • `go test ./cmd/relayfile-cli/... -run TestLoginWithTokenDefaultsToHostedRelayfile -v -count=1`
  • `go test ./cmd/relayfile-cli/... -count=1` (full package suite)

Review in cubic

Verified — no production code change needed — that the CLI already
defaults to https://file.agentrelay.com. Traced defaultServerURL
through runLogin, loginWithAPIKey, newAPIClient, and resolveServer;
no Go code retains the stale https://api.relayfile.dev default. Adds
a real regression test asserting login --token with no --server
issues its health check against, and persists, the hosted endpoint.

Closes #328.

Verified:
- go build ./...
- go test ./cmd/relayfile-cli/... -run TestLoginWithTokenDefaultsToHostedRelayfile -v -count=1
- go test ./cmd/relayfile-cli/... -count=1 (full package suite)
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 99a96374-58d6-431e-a454-b1a512d61b57

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Relayfile Eval Review

Run: .relayfile/evals/runs/2026-08-05T12-08-09-164Z-HEAD-provider
Mode: provider
Git SHA: 430da93

Passed: 4 | Needs human: 0 | Reviewable: 0 | Missing output: 0 | Failed: 0 | Skipped: 0

Human Review Cases

No reviewable human-review cases captured Relayfile output.

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.

Bug: relayfile CLI should default to file.agentrelay.com

1 participant