Skip to content

feat: wire workspaceName/relaycastBaseUrl options in AgentRelay#538

Merged
khaliqgant merged 3 commits intomainfrom
fix/remove-unused-relay-options
Mar 10, 2026
Merged

feat: wire workspaceName/relaycastBaseUrl options in AgentRelay#538
khaliqgant merged 3 commits intomainfrom
fix/remove-unused-relay-options

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Mar 10, 2026

Summary

Wires up the previously dead workspaceName and relaycastBaseUrl options in AgentRelayOptions:

  • workspaceName → used as fallback for brokerName (the --name passed to the broker process). If you set workspaceName: 'my-project' and don't set brokerName, the broker starts with --name my-project.
  • relaycastBaseUrl → injected as RELAYCAST_BASE_URL into the broker subprocess environment. Lets you point at a different Relaycast API endpoint (e.g., local dev, staging).

Before: Both options were stored in the constructor but never read — dead code in the public API.

After: Both options are functional.

Build ✅ | Typecheck ✅

Addresses Devin comment r2864600988 on PR #460.

Copy link
Copy Markdown
Contributor

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

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 potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Previously these options were stored but never used (dead code).
Now they're wired up:

- workspaceName: used as fallback for brokerName (the --name passed
  to the broker process) when brokerName is not explicitly set
- relaycastBaseUrl: injected as RELAYCAST_BASE_URL into the broker
  subprocess environment, overriding the default api.relaycast.dev

Addresses Devin comment r2864600988 on PR #460.
@khaliqgant khaliqgant force-pushed the fix/remove-unused-relay-options branch from 28c3f16 to df05c72 Compare March 10, 2026 16:10
@khaliqgant khaliqgant changed the title fix: remove unused workspaceName/relaycastBaseUrl from public API feat: wire workspaceName/relaycastBaseUrl options in AgentRelay Mar 10, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

Extracted wireRelaycastBaseUrl() helper and call it in all three
code paths (cached key, env key, auto-create) so the custom base
URL is always injected into the broker environment.
devin-ai-integration[bot]

This comment was marked as resolved.

@khaliqgant khaliqgant merged commit 618f3e9 into main Mar 10, 2026
32 of 33 checks passed
@khaliqgant khaliqgant deleted the fix/remove-unused-relay-options branch March 10, 2026 16:27
khaliqgant added a commit that referenced this pull request Mar 25, 2026
* feat: wire workspaceName and relaycastBaseUrl options in AgentRelay

Previously these options were stored but never used (dead code).
Now they're wired up:

- workspaceName: used as fallback for brokerName (the --name passed
  to the broker process) when brokerName is not explicitly set
- relaycastBaseUrl: injected as RELAYCAST_BASE_URL into the broker
  subprocess environment, overriding the default api.relaycast.dev

Addresses Devin comment r2864600988 on PR #460.

* fix: wire relaycastBaseUrl in all ensureRelaycastApiKey branches

Extracted wireRelaycastBaseUrl() helper and call it in all three
code paths (cached key, env key, auto-create) so the custom base
URL is always injected into the broker environment.

* fix: explicit relaycastBaseUrl option overrides inherited env var
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