Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- `agent-relay integration subscribe` now sends Relayfile path filters using Relaycast's `path_glob` wire field, preventing scoped subscriptions from silently receiving broader event sets.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- Broker bridge now treats a blank/whitespace-only nested `sessionRef` inside `metadata.attestation` as absent; a valid top-level `session_ref` correctly fills the field instead of being silently suppressed.

## [11.5.1] - 2026-08-10
Expand Down
19 changes: 19 additions & 0 deletions packages/cli/src/cli/commands/integration-subscribe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,25 @@ describe('integration subscribe', () => {
);
});

it('serializes the resolved path filter with the Relaycast wire key', async () => {
const resolved = '/github/repos/AgentWorkforce/relay/**';
const relayfile = createRelayfileMock([], {
resolveResourcePath: vi.fn(async () => ({ pathGlob: resolved })),
});
const { program } = harness({ relayfile });

await program.parseAsync(ARGS(), { from: 'user' });

const [, request] = vi.mocked(fetch).mock.calls[0]!;
const body = JSON.parse(String(request?.body)) as Record<string, unknown>;
expect(body).toEqual({
channel: 'general',
provider: 'slack',
path_glob: resolved,
});
expect(body).not.toHaveProperty('pathGlob');
});

it('fails loudly before provisioning when no workspace key is available', async () => {
const home = fs.mkdtempSync(path.join(os.tmpdir(), 'relay-no-workspace-'));
vi.stubEnv('AGENT_RELAY_HOME', home);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/commands/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ async function createRelayfileInboundTarget(
body: JSON.stringify({
channel: input.channel,
provider: input.provider,
pathGlob: input.pathGlob,
path_glob: input.pathGlob,
}),
});
let body: unknown;
Expand Down
Loading