From cd08e4e91c43bb34757c7a989fcf611a50b50db2 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 30 Aug 2026 21:17:06 -0700 Subject: [PATCH] test(preload): census split GitHub bridge owners --- src/main/ipc/github-ipc-channel-parity.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/ipc/github-ipc-channel-parity.test.ts b/src/main/ipc/github-ipc-channel-parity.test.ts index 928e0df9fbf..73fc291f4ca 100644 --- a/src/main/ipc/github-ipc-channel-parity.test.ts +++ b/src/main/ipc/github-ipc-channel-parity.test.ts @@ -85,7 +85,14 @@ describe('GitHub IPC channel parity', () => { it('preserves the facade and fixed IPC channel contract', () => { github.registerGitHubHandlers(harness.store as never, harness.stats as never) - const preloadSource = readFileSync(new URL('../../preload/index.ts', import.meta.url), 'utf8') + // The preload facade now composes the two GitHub bridge owners; inspect + // both owners so the channel census remains tied to the actual invokes. + const preloadSource = [ + '../../preload/api/gh-bridge-part-1.ts', + '../../preload/api/gh-bridge-part-2.ts' + ] + .map((relativePath) => readFileSync(new URL(relativePath, import.meta.url), 'utf8')) + .join('\n') const exposedChannels = [...preloadSource.matchAll(/ipcRenderer\.invoke\('(gh:[^']+)'/g)].map( (match) => match[1] )