feat: remove legacy OpenCode runtime
Cut product flows over to Coding/Pi and retain only the migration-owned v1 boundary. Promote supported native optional packages because electron-builder omitted pnpm transitive optional closure from the packaged ASAR.
This commit is contained in:
@@ -216,13 +216,13 @@ describe('host-api', () => {
|
||||
|
||||
const { createHostEventSource, ensureHostApiToken, getHostApiBase } = await import('@/lib/host-api');
|
||||
await ensureHostApiToken();
|
||||
createHostEventSource('/api/opencode/events?sessionId=ses_1');
|
||||
createHostEventSource('/api/coding/events?conversationId=conversation_1');
|
||||
|
||||
expect(invokeIpcMock).toHaveBeenCalledWith('hostapi:token');
|
||||
expect(invokeIpcMock).toHaveBeenCalledWith('hostapi:base-url');
|
||||
expect(getHostApiBase()).toBe('http://127.0.0.1:4567');
|
||||
expect(eventSourceMock).toHaveBeenCalledWith(
|
||||
'http://127.0.0.1:4567/api/opencode/events?sessionId=ses_1&token=secret-token',
|
||||
'http://127.0.0.1:4567/api/coding/events?conversationId=conversation_1&token=secret-token',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user