-
Notifications
You must be signed in to change notification settings - Fork 59
fix(broker): forward harness to relaycast backend (SDK 2.3.0) #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1061,6 +1061,7 @@ pub(crate) async fn run_wrap( | |
| &channels, | ||
| Some(&child_workspaces_json), | ||
| default_workspace_id.as_deref(), | ||
| crate::telemetry::orchestrator_harness_opt(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For spawn actions where the requested child CLI differs from the broker's parent harness (for example a Codex-driven broker spawning Useful? React with 👍 / 👎. |
||
| ); | ||
| // Pre-register the child agent so its MCP server | ||
| // starts with a valid token (avoiding "Not registered" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include
AGENT_RELAY_HARNESSin broker-side harness detection.orchestrator_harness_opt()now drives relaycast forwarding, but the detector path it wraps does not checkAGENT_RELAY_HARNESS. If that key is the only explicit override, Line 455 resolves to inferred/"unknown"and drops the intended value.Suggested patch
fn detect_orchestrator_harness() -> String { for key in [ + "AGENT_RELAY_HARNESS", ORCHESTRATOR_HARNESS_ENV, "RELAYCAST_HARNESS", "X_RELAYCAST_HARNESS", ] {🤖 Prompt for AI Agents