Commit 4e1e885
fix(persona): restore agent-relay MCP injection for spawn-modal personas (#191)
* fix(persona): restore agent-relay MCP injection for spawn-modal personas
Persona spawns passed skipRelayPrompt: true to the broker, which not only
skips broker-side MCP arg injection (harmless — the agentworkforce wrapper
is not a CLI the broker recognizes) but also suppresses the
RELAY_AGENT_NAME / RELAY_AGENT_TOKEN env stamps on the worker. The
workforce CLI's resolveRelayMcpFromEnv requires RELAY_API_KEY +
RELAY_AGENT_NAME, so it silently skipped its own relay-MCP injection and
persona harnesses launched without the agent-relay MCP.
Drop the flag so the broker stamps the env, and export AGENT_RELAY_BIN to
the broker (inherited by workers) so the workforce CLI's
`agent-relay-broker mcp-args --register` path resolves the same binary
Pear runs instead of a PATH lookup that fails in packaged installs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(broker): return realBinaryPath from resolveHarnessBrokerBinary
Review follow-up: the AGENT_RELAY_BIN value was reverse-engineered from the
shim env key (PEAR_AGENT_RELAY_BROKER_BINARY ?? binaryPath); have the
resolver own that distinction explicitly instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 0a30e1f commit 4e1e885
2 files changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
873 | 879 | | |
874 | 880 | | |
875 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
428 | 431 | | |
429 | 432 | | |
430 | 433 | | |
| |||
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
438 | | - | |
| 441 | + | |
439 | 442 | | |
440 | 443 | | |
441 | 444 | | |
| |||
446 | 449 | | |
447 | 450 | | |
448 | 451 | | |
| 452 | + | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
| |||
1555 | 1559 | | |
1556 | 1560 | | |
1557 | 1561 | | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1558 | 1569 | | |
1559 | 1570 | | |
1560 | 1571 | | |
| |||
2858 | 2869 | | |
2859 | 2870 | | |
2860 | 2871 | | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
2861 | 2878 | | |
2862 | 2879 | | |
2863 | 2880 | | |
2864 | 2881 | | |
2865 | 2882 | | |
2866 | | - | |
2867 | | - | |
| 2883 | + | |
2868 | 2884 | | |
2869 | 2885 | | |
2870 | 2886 | | |
| |||
0 commit comments