feat: prepare Zhinian desktop client for pilot release

This commit is contained in:
inman
2026-04-29 10:23:20 +08:00
parent f9361e686a
commit 47b83b79fc
149 changed files with 15341 additions and 3590 deletions

View File

@@ -301,4 +301,38 @@ describe('configured channel account extraction', () => {
accountIds: ['2'],
});
});
it('hides AgentBus default compatibility mirrors when a real account is selected', async () => {
const { listConfiguredChannelAccountsFromConfig } = await import('@electron/utils/channel-config');
const result = listConfiguredChannelAccountsFromConfig({
channels: {
agentbus: {
enabled: true,
defaultAccount: 'acct-20260427-070043-65935ec0',
accounts: {
'acct-20260427-070043-65935ec0': {
id: 'acct-20260427-070043-65935ec0',
agentId: 'openclaw:public:acct-20260427-070043-65935ec0',
token: 'token',
wsUrl: 'wss://link.nianxx.com/ws',
enabled: true,
},
default: {
id: 'default',
agentId: 'openclaw:public:acct-20260427-070043-65935ec0',
token: 'token',
wsUrl: 'wss://link.nianxx.com/ws',
enabled: false,
},
},
},
},
});
expect(result.agentbus).toEqual({
defaultAccountId: 'acct-20260427-070043-65935ec0',
accountIds: ['acct-20260427-070043-65935ec0'],
});
});
});