feat: prepare Zhinian desktop client for pilot release
This commit is contained in:
@@ -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'],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user